This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/14272] [tree-ssa] miscompilation of __exchange_and_add (atomicity.h)
- From: "ehrhardt at mathematik dot uni-ulm dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Feb 2004 15:00:09 -0000
- Subject: [Bug optimization/14272] [tree-ssa] miscompilation of __exchange_and_add (atomicity.h)
- References: <20040224133459.14272.ehrhardt@mathematik.uni-ulm.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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