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: "dnovillo at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Feb 2004 14:08:44 -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 dnovillo at redhat dot com 2004-02-25 14:08 -------
Subject: Re: [tree-ssa] miscompilation of
__exchange_and_add (atomicity.h)
On Wed, 2004-02-25 at 09:06, amacleod at redhat dot com wrote:
> Diego? Its like this right from the very beginning...
>
> Thats why TER is doing the replacement.. no virtual operands mean no side
> effects....
>
Yes. TER is unlikely to be at fault here. It should be relying on
whatever dataflow info we give it. It should not be special casing
volatile. I'll take a look today.
Diego.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14272