This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug optimization/14272] [tree-ssa] miscompilation of __exchange_and_add (atomicity.h)


------- Additional Comments From ehrhardt at mathematik dot uni-ulm dot de  2004-02-26 15:00 -------
Subject: Re:  [tree-ssa] miscompilation of __exchange_and_add (atomicity.h)

On Thu, Feb 26, 2004 at 01:02:00PM -0000, amacleod at redhat dot com wrote:
> I've checked this into the tree-ssa branch

Thanks for the patch! But wouldn't this additional hunk be needed as well?

@@ -2429,7 +2428,7 @@
        }
 
       /* A VDEF kills any expression using a virtual operand.  */
-      if (NUM_VDEFS (VDEF_OPS (ann)) > 0)
+      if ((NUM_VDEFS (VDEF_OPS (ann)) > 0) || ann->has_volatile_ops)
         kill_virtual_exprs (tab, true);
     }
 }

    regards  Christian



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14272


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]