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