combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.

* combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
	* gcc.dg/20030702-1.c: New test.

From-SVN: r70779
This commit is contained in:
Ulrich Weigand 2003-08-25 20:14:45 +00:00 committed by Ulrich Weigand
parent c62793785d
commit b01e3e3802
4 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
* combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
2003-08-25 Ulrich Weigand <uweigand@de.ibm.com> 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
* combine.c (combine_simplify_rtx): Fix RTL sharing bug. * combine.c (combine_simplify_rtx): Fix RTL sharing bug.

View File

@ -12498,6 +12498,7 @@ distribute_notes (rtx notes, rtx from_insn, rtx i3, rtx i2)
abort (); abort ();
break; break;
case REG_ALWAYS_RETURN:
case REG_NORETURN: case REG_NORETURN:
case REG_SETJMP: case REG_SETJMP:
/* These notes must remain with the call. It should not be /* These notes must remain with the call. It should not be

View File

@ -1,3 +1,7 @@
2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
* gcc.dg/20030702-1.c: New test.
2003-08-25 Mark Mitchell <mark@codesourcery.com> 2003-08-25 Mark Mitchell <mark@codesourcery.com>
PR c++/8795 PR c++/8795

View File

@ -0,0 +1,10 @@
/* This tests whether REG_ALWAYS_RETURN notes are handled
correctly in combine. */
/* { dg-do compile } */
/* { dg-options "-O2 -fpic -fprofile-arcs" } */
void test (void)
{
fork ();
}