This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/42818] Static C++ linking breakage "undefined reference to ___real__Znwj" and others in libcygwin.a(_cygwin_crt0_common.o)
- From: "davek at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jan 2010 04:00:37 -0000
- Subject: [Bug target/42818] Static C++ linking breakage "undefined reference to ___real__Znwj" and others in libcygwin.a(_cygwin_crt0_common.o)
- References: <bug-42818-14373@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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