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


------- 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


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