rtlanal.c (may_trap_p): Consider old-style and volatile asms to trap.
authorRichard Henderson <rth@cygnus.com>
Tue, 9 May 2000 04:58:44 +0000 (21:58 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 9 May 2000 04:58:44 +0000 (21:58 -0700)
        * rtlanal.c (may_trap_p): Consider old-style and volatile
        asms to trap.

From-SVN: r33787

gcc/ChangeLog
gcc/rtlanal.c

index 4b7e955c9a6bb5e870c73ddcd49f1acb4301c515..6ad054e802439e0b1801340610d5842ead1d3a79 100644 (file)
@@ -1,3 +1,8 @@
+2000-05-08  Richard Henderson  <rth@cygnus.com>
+
+       * rtlanal.c (may_trap_p): Consider old-style and volatile
+       asms to trap.
+
 Mon May  8 17:16:48 2000  Jim Wilson  <wilson@cygnus.com>
 
        * config/ia64/ia64.h (RETURN_ADDR_RTX): Use COUNT not count.
index 8a3eb62ad112c79fd359f176411a385ee7738d7e..891799b11301f82ad235e1f8edd58c71cdf4d03a 100644 (file)
@@ -1743,11 +1743,14 @@ may_trap_p (x)
     case SCRATCH:
       return 0;
 
-      /* Conditional trap can trap!  */
+    case ASM_INPUT:
     case UNSPEC_VOLATILE:
     case TRAP_IF:
       return 1;
 
+    case ASM_OPERANDS:
+      return MEM_VOLATILE_P (x);
+
       /* Memory ref can trap unless it's a static var or a stack slot.  */
     case MEM:
       return rtx_addr_can_trap_p (XEXP (x, 0));