OSDN Git Service

gcc/
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Jul 2008 18:05:42 +0000 (18:05 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Jul 2008 18:05:42 +0000 (18:05 +0000)
* resource.c (mark_referenced_resources): Look inside
UNSPEC_VOLATILEs and ASM_INPUTs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@137375 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/resource.c

index 06314ea..fce6036 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 0530849..009fb6e 100644 (file)
@@ -266,13 +266,10 @@ 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;
 
     case ASM_OPERANDS: