This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/55981] std::atomic store is split in two smaller stores
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 15 Jan 2013 20:01:41 +0000
- Subject: [Bug target/55981] std::atomic store is split in two smaller stores
- Auto-submitted: auto-generated
- References: <bug-55981-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55981
--- Comment #10 from Uros Bizjak <ubizjak at gmail dot com> 2013-01-15 20:01:41 UTC ---
(In reply to comment #9)
> (In reply to comment #4)
> > (In reply to comment #2)
> > > Btw, the same happens if atomic is replaced with "volatile unsigned long y" -
> > > which does not violate the standard, but may be considered undesirable by some.
> > > I don't have a strong opinion about this.
> >
> > This really does need to be fixed in the "volatile unsigned long y" case, or
> > device drivers storing constants to device registers will break. So please fix
> > this for volatiles as well as atomics.
>
> Please open a new PR for this.
It looks to me that volatiles should not be allowed as offsetable operands, but
let's discuss this in a separate PR.