re PR bootstrap/51796 (internal compiler error: in distribute_notes, at combine.c...
authorJakub Jelinek <jakub@redhat.com>
Wed, 11 Jan 2012 22:59:12 +0000 (23:59 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 11 Jan 2012 22:59:12 +0000 (23:59 +0100)
commit319638ed5cd91621c8164eca42bd96bbd8139f02
treefbdc23d46078139f7cb8428d4b8b9ecfefb8f37b
parent11d8e1a4cbf1a47eb3fe0a673cff6b820ffdda2c
re PR bootstrap/51796 (internal compiler error: in distribute_notes, at combine.c:13285 for libgomp/alloc.c on m68k-linux)

PR bootstrap/51796
* combine.c (distribute_notes): If i3 is a noreturn call,
allow old_size to be equal to args_size and make sure the
noreturn call gets REG_ARGS_SIZE note.
* expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
on noreturn calls even when the delta is 0.

* gcc.dg/pr51796.c: New test.

From-SVN: r183111
gcc/ChangeLog
gcc/combine.c
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr51796.c [new file with mode: 0644]