This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Missing global constructor
- To: "Steve Keppel-Jones" <stevekj at nortelnetworks dot com>
- Subject: Re: Missing global constructor
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 08 Mar 1999 16:43:57 -0300
- Cc: egcs-bugs at egcs dot cygnus dot com
- References: <199903081439.LAA24909@grande.dcc.unicamp.br>
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