This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/54791] AIX-only: Constructors are not called in main program.
- From: "dje at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 07 Nov 2012 22:15:23 +0000
- Subject: [Bug target/54791] AIX-only: Constructors are not called in main program.
- Auto-submitted: auto-generated
- References: <bug-54791-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791
David Edelsohn <dje at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Depends on| |33704
--- Comment #19 from David Edelsohn <dje at gcc dot gnu.org> 2012-11-07 22:15:23 UTC ---
> Can you tell me a more elegant solution to this ?(if there is). If not at least
how can I do this more automatically? Now I do some steps manually(like going
to /tmp and modify that file and recompile it and relink).
For the shared library dependency order see PR 33704. The PR includes a patch,
but we never reached a final resolution and copyright assignment to include the
patch.
> I wonder how this has worked with xlC. There we used the -p flag when linking
the shared libraries with makeCCSharedLibs, and I think (not 100% sure )the
library got first initialized.
xlC now uses a program instead of a script. It generates some code to
explicitly run constructors in the right order and does not rely on AIX
semantics.