This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/278
- To: nobody at gcc dot gnu dot org
- Subject: Re: c++/278
- From: loewis at gcc dot gnu dot org
- Date: 27 Jun 2000 21:56:00 -0000
- Cc: gcc-prs at gcc dot gnu dot org,
- Reply-To: loewis at gcc dot gnu dot org
The following reply was made to PR c++/278; it has been noted by GNATS.
From: loewis@gcc.gnu.org
To: fjeske@ricardo-us.com, gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org
Cc:
Subject: Re: c++/278
Date: 27 Jun 2000 21:46:59 -0000
Synopsis: problem with static initialization of C++ data from C main()
State-Changed-From-To: open->closed
State-Changed-By: loewis
State-Changed-When: Tue Jun 27 14:46:59 2000
State-Changed-Why:
The behaviour is by design. GCC adds a call to __main when
it compiles main; if a different compiler compiles main,
initializers won't get executed. The problem *is* specific
to the AIX port, as the platform does not provide a compiler-
independent mechanism for initializers (or gcc does not use it)
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=278&database=gcc