This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/86092] global constant pointer optimization
- From: "glisse at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 08 Jun 2018 16:35:00 +0000
- Subject: [Bug c/86092] global constant pointer optimization
- Auto-submitted: auto-generated
- References: <bug-86092-4@http.gcc.gnu.org/bugzilla/>
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.