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/42818] Static C++ linking breakage "undefined reference to ___real__Znwj" and others in libcygwin.a(_cygwin_crt0_common.o)



------- Comment #3 from davek at gcc dot gnu dot org  2010-01-21 04:00 -------
Created an attachment (id=19670)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19670&action=view)
Simple stage-3-safe fix

This is the simple fix that is safe for stage 3.  By trivially tweaking the
specs, we remove the don't-redirect-via-wrappers-if-statically-linking
optimisation.

This is a minor performance hit, but correctness combines with the need for
low-risk changes in stage 3 to win out here.  I'll talk about the more optimal
fix (and the complications that mean it has to wait for next stage 1) next.

As I've already run all the tests, and as I've just been appointed a
maintainer, I'll check this in shortly :-)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42818


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