------- Comment #1 from pinskia at gcc dot gnu dot org 2006-11-15 21:45 -------
static char *__g_data_init_f=(char *)__G_DATA_INIT;
static void __G_DATA_CTOR() {
asm(".section .ctors");
asm(".long __G_DATA_INIT");
asm(".section .text ");
}
Since both __g_data_init_f and __G_DATA_CTOR are unused, they get removed.
Your code is invalid and should be changed to use the attrubute constructor (on
__G_DATA_INIT) instead.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29850