Fix ppc-darwin bootstrap failure.
authorJames E Wilson <wilson@specifixinc.com>
Mon, 6 Sep 2004 21:05:44 +0000 (21:05 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Mon, 6 Sep 2004 21:05:44 +0000 (14:05 -0700)
* emit-rtl.c (try_split): Check INSN_P before may_trap_p call.

From-SVN: r87125

gcc/ChangeLog
gcc/emit-rtl.c

index 1188b6100f7fc6eca28bcd92cad90b816c4ca481..37260d7d0eedd65bd042a645ff4815059e68a531 100644 (file)
@@ -1,3 +1,7 @@
+2004-09-06  James E Wilson  <wilson@specifixinc.com>
+
+       * emit-rtl.c (try_split): Check INSN_P before may_trap_p call.
+
 2004-09-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        * final.c (output_in_slot): Delete.
index 4d40705d1bcf85f4abae9f2233fa1917a39e549d..61b62e5618cf8a37a40785ad99c9c8a3d052f4e1 100644 (file)
@@ -3327,7 +3327,7 @@ try_split (rtx pat, rtx trial, int last)
          while (insn != NULL_RTX)
            {
              if (CALL_P (insn)
-                 || (flag_non_call_exceptions
+                 || (flag_non_call_exceptions && INSN_P (insn)
                      && may_trap_p (PATTERN (insn))))
                REG_NOTES (insn)
                  = gen_rtx_EXPR_LIST (REG_EH_REGION,