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

Eric Botcazou ebotcazou@adacore.com
Wed May 24 07:02:00 GMT 2017


> 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 -mflat sibcalls, to match output_sibcall().

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.

Note that we *never* use a pair of parentheses after function names.

-- 
Eric Botcazou



More information about the Gcc-patches mailing list