https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113106
--- Comment #8 from Andrew Pinski ---
(In reply to Uroš Bizjak from comment #1)
> Perhaps related,
>
> --cut here--
> int a;
>
> int foo(void)
> {
> return *(volatile int *) + *(volatile int *)
> }
> --cut here--
>
> compiles with -O2
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113106
--- Comment #7 from Uroš Bizjak ---
(In reply to Richard Biener from comment #6)
> > BTW: I also checked with clang, and it creates expected code in all cases.
>
> But you don't get
>
>movl%gs:b(%rip), %eax
>addl%eax,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113106
Richard Biener changed:
What|Removed |Added
Component|c |rtl-optimization
Ever confirmed|0