This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

[Bug target/54791] AIX-only: Constructors are not called in main program.


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.


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