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 c++/17480] collect2 on AIX calls static constructors of unreferenced object modules


------- 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


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