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]

Re: Missing global constructor


On Mar  8, 1999, "Steve Keppel-Jones" <stevekj@nortelnetworks.com> wrote:

> The exact bug is as follows: the compiler fails to generate a global
> constructor and destructor for the tcGlobal variable in this
> example.

Nope, it just doesn't name the global constructor after the tcGlobal
variable.  The name of the global constructor is generated based on
the first global symbol to be initialized.  Check the assembly code or
try to link the program and you'll notice the constructor is
referenced.

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org,computer.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Instituto de Computação, Universidade Estadual de Campinas, SP, Brasil



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