This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/86092] global constant pointer optimization


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

--- Comment #4 from Marc Glisse <glisse at gcc dot gnu.org> ---
(In reply to Srinivas Achary from comment #2)
> Is there any possibility to make this code work,

Remove the 'const', or add 'volatile'.

> without changing the variable attribute.

-O0

> GCC-4 has no issue with this code. What special flags
> have been included in the GCC-5.

We don't add a new flag for every little optimization that might break invalid
code.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]