Article View: gnu.gcc.bug
Article #1240Re: 2.2.2 - Global object constructors called in wrong order
From: Sebastian Wangnick
Date: Thu, 01 Oct 1992 07:26
Date: Thu, 01 Oct 1992 07:26
12 lines
1130 bytes
1130 bytes
The sequence in which global objects in different source files are initialised is not determined by the language, so gcc is correct. What we did in our library (which depends on a certain sequence as well): Put all initialisations in routines <filename>_INIT, run nm $OBJS, fgrep _INIT, check filename and generate one initialisation routine in source from this information. Thus we have control over the exact sequence. -- Sebastian Wangnick Orthogon System GmbH (basti@orthogo.uucp) Linzer Strasse 4 Tel +49 421 219136 D-2800 Bremen 33 Fax +49 421 213093 Germany
Technical Details
Message-ID:
<1558@dino.orthogo.uucp>Path:
arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!spool.mu.edu!uwm.edu!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!orthogo.UUCP!bastiReferences:
<9209281830.AA28962@_mlogic_>Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!spool.mu.edu!uwm.edu!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!orthogo.UUCP!basti From: basti@orthogo.UUCP (Sebastian Wangnick) Subject: Re: 2.2.2 - Global object constructors called in wrong order Message-ID: <1558@dino.orthogo.uucp> Sender: gnulists@ai.mit.edu Organization: Orthogon System GmbH, Bremen, Germany References: <9209281830.AA28962@_mlogic_> Distribution: gnu Date: Thu, 1 Oct 1992 07:26:35 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 13