re PR debug/89892 (gcc generates wrong debug information at -O2)
authorRichard Biener <rguenther@suse.de>
Fri, 5 Apr 2019 11:55:45 +0000 (11:55 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 5 Apr 2019 11:55:45 +0000 (11:55 +0000)
commit25eafae67f186cfa4c0fd0f89f743d7707d5bf21
treef9f02b361b7c7daecd0478253904defd40599532
parent2723350fc6fd336768abd93e568babe032d97228
re PR debug/89892 (gcc generates wrong debug information at -O2)

2019-04-05  Richard Biener  <rguenther@suse.de>

PR debug/89892
PR debug/89905
* tree-cfgcleanup.c (remove_forwarder_block): Always move
debug bind stmts but reset them if they are not valid at the
destination.

* gcc.dg/guality/pr89892.c: New testcase.
* gcc.dg/guality/pr89905.c: Likewise.
* gcc.dg/guality/loop-1.c: Likewise.

From-SVN: r270165
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/guality/loop-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/guality/pr89892.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/guality/pr89905.c [new file with mode: 0644]
gcc/tree-cfgcleanup.c