diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2017-12-21 18:14:21 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2017-12-21 18:14:21 +0000 |
commit | 056cf43428e87bff0703ab4a6ec3558a90328be4 (patch) | |
tree | 60034773156af884394ff38decf779dd751a8978 /gcc/tree-ssa-phiopt.c | |
parent | cb6332333854a698cbfc2ea4b1e52ce9bd59f664 (diff) | |
download | gcc-056cf43428e87bff0703ab4a6ec3558a90328be4.zip gcc-056cf43428e87bff0703ab4a6ec3558a90328be4.tar.gz gcc-056cf43428e87bff0703ab4a6ec3558a90328be4.tar.bz2 |
[-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.
From-SVN: r255948
Diffstat (limited to 'gcc/tree-ssa-phiopt.c')
0 files changed, 0 insertions, 0 deletions