This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/20319] -fkeep-static-consts with -O asserted doesn't keep consts
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Mar 2005 20:33:50 -0000
- Subject: [Bug c/20319] -fkeep-static-consts with -O asserted doesn't keep consts
- References: <20050304170516.20319.gary@intrepid.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-04 20:33 -------
Don't belive the comments in the source. Also the --help is way out of date. you want to use the used
attribute like so:
static char const rcsid[]__attribute__((used)) =
"$Id: f.c,v 5.4 1993/11/09 17:40:15 eggert Exp $";
And this works for me.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20319