This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17480] collect2 on AIX calls static constructors of unreferenced object modules
- From: "ppluzhnikov at charter dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Sep 2004 14:48:10 -0000
- Subject: [Bug c++/17480] collect2 on AIX calls static constructors of unreferenced object modules
- References: <20040914152828.17480.harco.de.hilster@ATConsultancy.nl>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From ppluzhnikov at charter dot net 2004-09-24 14:48 -------
(In reply to comment #1)
> Technically this is not a bug, as static libraries on AIX also can
> contain the shared library
What's shared libraries got to do with the problem? Nothing (I think).
The facts are:
- test builds everywhere, except AIX (well, the test is missing main.cxx,
which is trivial "int main() { return 0; }").
- on AIX, the test fails with g++, but not with the native xlC compiler [1]
[1] The xlC *does* still call F::F() "unexpectedly" in main2, but such
behavior can be disabled with '-qtwolink' option.
Please consider re-opening.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17480