This is the mail archive of the gcc-prs@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: c++/278


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

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