Re: [PATCH] Fix a SPARC -mcbcond compare-and-branch out of range failure.

2017-05-24 Thread Sheldon Lobo
Thanks for the review. On 05/24/2017 02:52 AM, Eric Botcazou wrote: OK for all active branches, but the ChangeLog entry should be something like: * config/sparc/sparc.md (length): Return the correct value for -mflat sibcalls to match output_sibcall. Will do. Note that we

[PATCH] Fix a SPARC -mcbcond compare-and-branch out of range failure.

2017-05-23 Thread Sheldon Lobo
@@ +2017-05-23 Sheldon Lobo <sml...@sheldon.us.oracle.com> + + * config/sparc/sparc.md: Set the number of instructions correctly + for -mflat sibcalls, to match output_sibcall(). + 2017-05-18 Michael Meissner <meiss...@linux.vnet.ibm.com> PR target/80510 diff

Re: [PATCH 4/4] Set function alignment for M7 to 8 bytes.

2017-05-19 Thread Sheldon Lobo
On 05/19/2017 02:45 PM, Eric Botcazou wrote: This 4/4 commit needs to contain gcc/config/sparc/sparc.c, gcc/ChangeLog, gcc/testsuite/gcc.target/sparc/niagara7-align.c and gcc/testsuite/ChangeLog. The rule is that you put the ChangeLog entry into the ChangeLog file of the directory where the

Re: [PATCH 4/4] Set function alignment for M7 to 8 bytes.

2017-05-17 Thread Sheldon Lobo
On 05/17/2017 04:11 PM, Eric Botcazou wrote: * config/sparc/sparc.c (sparc_option_override): Set function alignment for -mcpu=niagara7 to 64 to match the I$ line. * testsuite/gcc.target/sparc/niagara7-align.c: Test case with -mcpu=niagara7 -falign-functions.

[PATCH 3/4] Add a branch cost for SPARC M7.

2017-05-17 Thread Sheldon Lobo
* config/sparc/sparc.h (BRANCH_COST): Set the SPARC M7 branch latency to 1. --- gcc/config/sparc/sparc.h |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h index 6277738..686a3d5 100644 ---

[PATCH 4/4] Set function alignment for M7 to 8 bytes.

2017-05-17 Thread Sheldon Lobo
* config/sparc/sparc.c (sparc_option_override): Set function alignment for -mcpu=niagara7 to 64 to match the I$ line. * testsuite/gcc.target/sparc/niagara7-align.c: Test case with -mcpu=niagara7 -falign-functions. --- gcc/config/sparc/sparc.c

[PATCH 2/4] Add a branch cost for SPARC T4.

2017-05-17 Thread Sheldon Lobo
* config/sparc/sparc.h (BRANCH_COST): Set the SPARC T4 branch latency to 2. --- gcc/config/sparc/sparc.h |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h index 590a5f4..6277738 100644 ---

[PATCH 0/4] Minor SPARC T4 and M7 fixes and additions

2017-05-17 Thread Sheldon Lobo
bytes. Thanks! Sheldon Lobo (4): Fix typo in config/sparc/sol2.h Add a branch cost for SPARC T4. Add a branch cost for SPARC M7. Set function alignment for M7 to 8 bytes. gcc/config/sparc/sol2.h |2 +- gcc/config/sparc/sparc.c| 13

[PATCH 1/4] Fix typo in config/sparc/sol2.h

2017-05-17 Thread Sheldon Lobo
* config/sparc/sol2.h: Fix a ASM_CPU32_DEFAULT_SPEC typo. --- gcc/config/sparc/sol2.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/gcc/config/sparc/sol2.h b/gcc/config/sparc/sol2.h index db24ca3..8a50bfe 100644 --- a/gcc/config/sparc/sol2.h +++