[Bug target/80817] [missed optimization][x86] relaxed atomics

glisse at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu May 18 20:49:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80817

--- Comment #2 from Marc Glisse <glisse at gcc dot gnu.org> ---
(In reply to Alexander Monakov from comment #1)
> void f(volatile int *p)
> {
>   ++*p;
> }


That's PR 50677 for instance. Some targets do handle it, there have been
discussions in the past, this seems to require special care for every
instruction of every target that wants to allow the simplification.


More information about the Gcc-bugs mailing list