This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/20319] -fkeep-static-consts with -O asserted doesn't keep consts
- From: "palvarez at palvarez dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 05 Nov 2013 21:18:40 +0000
- Subject: [Bug middle-end/20319] -fkeep-static-consts with -O asserted doesn't keep consts
- Auto-submitted: auto-generated
- References: <bug-20319-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20319
Pablo Alvarez <palvarez at palvarez dot net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |palvarez at palvarez dot net
--- Comment #11 from Pablo Alvarez <palvarez at palvarez dot net> ---
I was just bitten by this bug myself when upgrading to gcc-4.6. The symptom was
exactly the same as Oleg describes:
-g -O2 kept the constants under gcc-4.1
-g -O2 removes the constants under gcc-4.6
This has been a problem for the users of the library I maintain, and I agree
with previous posters (Gary, Oleg, etc...) that a fix would be very welcome.
Could we have a comment from the gcc team as to whether a patch would be
welcome?
Best regards