r255948 - in /trunk/gcc: ChangeLog reorg.c

aoliva@gcc.gnu.org aoliva@gcc.gnu.org
Thu Dec 21 18:14:00 GMT 2017


Author: aoliva
Date: Thu Dec 21 18:14:21 2017
New Revision: 255948

URL: https://gcc.gnu.org/viewcvs?rev=255948&root=gcc&view=rev
Log:
[-fcompare-debug] retain insn locations when turning dbr seq into return

A number of -fcompare-debug errors on sparc arise as we split a dbr
SEQUENCE back into separate insns to turn the branch into a return.
If we just take the location from the PREV_INSN, it might be a debug
insn without INSN_LOCATION, or an insn with an unrelated location.
But that's silly: each of the SEQUENCEd insns is still an insn with
its own INSN_LOCATION, so use that instead, even though some may have
been adjusted while constructing the SEQUENCE.

for  gcc/ChangeLog

	* reorg.c (make_return_insns): Reemit each insn with its own
	location.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/reorg.c



More information about the Gcc-cvs mailing list