[PR89528] reset debug uses of return value when dropping dead RTL call
authorAlexandre Oliva <aoliva@redhat.com>
Tue, 16 Apr 2019 12:44:57 +0000 (12:44 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Tue, 16 Apr 2019 12:44:57 +0000 (12:44 +0000)
commit2689fcc80e2e34bf88f03c4ee69d31d9c8dcc368
tree4b097cd4b629ec708d3de2184eadf240d20e8e3d
parent1ce6a0f5b05487678082f205d1b14a207adf9970
[PR89528] reset debug uses of return value when dropping dead RTL call

When we remove an RTL call, we wouldn't clean up references to the
return value of the call in debug insns.  Make it so that we do.

for  gcc/ChangeLog

PR debug/89528
* valtrack.c (dead_debug_insert_temp): Reset debug references
to the return value of a call being removed.

for  gcc/testsuite/ChangeLog

PR debug/89528
* gcc.dg/guality/pr89528.c: New.

From-SVN: r270389
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/guality/pr89528.c [new file with mode: 0644]
gcc/valtrack.c