resource.c (mark_referenced_resources): Look inside UNSPEC_VOLATILEs and ASM_INPUTs.
authorRichard Sandiford <rdsandiford@googlemail.com>
Wed, 2 Jul 2008 18:05:42 +0000 (18:05 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 2 Jul 2008 18:05:42 +0000 (18:05 +0000)
gcc/
* resource.c (mark_referenced_resources): Look inside
UNSPEC_VOLATILEs and ASM_INPUTs.

From-SVN: r137375

gcc/ChangeLog
gcc/resource.c

index 06314eaed0093e032513763fc5e86f8bdc4e8411..fce6036e027893fdbf9773e60f8159bfe43928c3 100644 (file)
@@ -1,3 +1,8 @@
+2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
+
+       * resource.c (mark_referenced_resources): Look inside
+       UNSPEC_VOLATILEs and ASM_INPUTs.
+
 2008-07-02  Ian Lance Taylor  <iant@google.com>
 
        * rtlanal.c (add_reg_note): New function.
index 05308491f61fe10e71ab733e3b3858dde3a707d8..009fb6e609b601446a59eb4a718eff8f7cc5cc7f 100644 (file)
@@ -266,12 +266,9 @@ mark_referenced_resources (rtx x, struct resources *res,
       return;
 
     case UNSPEC_VOLATILE:
+    case TRAP_IF:
     case ASM_INPUT:
       /* Traditional asm's are always volatile.  */
-      res->volatil = 1;
-      return;
-
-    case TRAP_IF:
       res->volatil = 1;
       break;