[Bug c/20319] -fkeep-static-consts with -O asserted doesn't keep consts
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Mar 4 18:29:00 GMT 2005
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-04 18:29 -------
Nope, -fkeep-static-consts only control when optimization is not on:
>From the docs:
Emit variables declared @code{static const} when optimization ____isn't____ turned
on, even if the variables aren't referenced.
Enphise mine.
Use the "used" attribute if you want to keep unused constants.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20319
More information about the Gcc-bugs
mailing list