[Bug target/42818] Static C++ linking breakage "undefined reference to ___real__Znwj" and others in libcygwin.a(_cygwin_crt0_common.o)

davek at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Jan 21 04:00:00 GMT 2010



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



More information about the Gcc-bugs mailing list