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 *

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

2017-05-23 Thread Eric Botcazou
> The compare-and-branch distance was calculated incorrectly. This occurred > because a -mflat sibcall returned an instruction count of 2 instead of 3. > Fix sparc.md to match the output_sibcall() code in sparc.c. > > * config/sparc/sparc.md: Set the number of instructions correctly >

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

2017-05-23 Thread Sheldon Lobo
The compare-and-branch distance was calculated incorrectly. This occurred because a -mflat sibcall returned an instruction count of 2 instead of 3. Fix sparc.md to match the output_sibcall() code in sparc.c. * config/sparc/sparc.md: Set the number of instructions correctly for -mfl