This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug middle-end/41260] [4.5 Regression] major regressions on *-apple-darwin10 at -m64 caused by r147995
- From: "howarth at nitro dot med dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 19 Sep 2009 22:47:32 -0000
- Subject: [Bug middle-end/41260] [4.5 Regression] major regressions on *-apple-darwin10 at -m64 caused by r147995
- References: <bug-41260-11113@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #39 from howarth at nitro dot med dot uc dot edu 2009-09-19 22:47 -------
The patch...
Index: gcc/config/darwin.h
===================================================================
--- gcc/config/darwin.h (revision 151890)
+++ gcc/config/darwin.h (working copy)
@@ -372,7 +372,9 @@
/* Machine dependent libraries. */
-#define LIB_SPEC "%{!static:-lSystem}"
+#define LIB_SPEC "%{!static:\
+ %:version-compare(>= 10.6 mmacosx-version-min= -no_compact_unwind) \
+ -lSystem}"
/* Support -mmacosx-version-min by supplying different (stub) libgcc_s.dylib
libraries to link against, and by not linking against libgcc_s on
eliminates the regressions from r147995 as shown in the testsuite results...
http://gcc.gnu.org/ml/gcc-testresults/2009-09/msg01761.html.
Still it would be better to suppress the epilog unwind information on darwin
instead of resorting to -no_compact_unwind which leaves binaries built under
darwin8/9
with gcc 4.5 non-portable to darwin10 and later.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41260