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 middle-end/20319] -fkeep-static-consts with -O asserted doesn't keep consts


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


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