tree-ssa-operands.c (add_virtual_operand): Only mark stores as has_volatile_ops if...
authorRichard Biener <rguenth@gcc.gnu.org>
Tue, 4 Sep 2007 15:29:15 +0000 (15:29 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 4 Sep 2007 15:29:15 +0000 (15:29 +0000)
2007-09-04  Richard Guenther  <rguenther@suse.de>

* tree-ssa-operands.c (add_virtual_operand): Only mark
stores as has_volatile_ops if alias information is not available.

From-SVN: r128089

gcc/ChangeLog
gcc/tree-ssa-operands.c

index 8cd808069e8d4f3ae88418a9b4ebbb3c5ef7fb4e..3ade7f81d827ea9b625b881f56f5a5291879f5ee 100644 (file)
@@ -1,8 +1,13 @@
-2007-08-29  Andrew Haley  <aph@redhat.com>
+2007-09-04  Richard Guenther  <rguenther@suse.de>
+
+       * tree-ssa-operands.c (add_virtual_operand): Only mark
+       stores as has_volatile_ops if alias information is not available.
+
+2007-09-04  Andrew Haley  <aph@redhat.com>
 
         * config/arm/libgcc-bpabi.ver: Add _Unwind_Backtrace as GCC_4.3.0.
 
-2007-08-08  Andrew Haley  <aph@redhat.com>
+2007-09-04  Andrew Haley  <aph@redhat.com>
 
        * config/arm/libunwind.S (UNWIND_WRAPPER _Unwind_Backtrace): New.
        * config/arm/unwind-arm.h (__gnu_Unwind_Backtrace): New.
index 4996e09e8549602921b01a9f375b0b20358638e9..b01dd9952354f633705c0df07bd178c38645dc23 100644 (file)
@@ -1494,7 +1494,8 @@ add_virtual_operand (tree var, stmt_ann_t s_ann, int flags,
 
   if (aliases == NULL)
     {
-      if (!gimple_aliases_computed_p (cfun))
+      if (!gimple_aliases_computed_p (cfun)
+         && (flags & opf_def))
         s_ann->has_volatile_ops = true;
 
       /* The variable is not aliased or it is an alias tag.  */