[Bug middle-end/41260] [4.5 Regression] major regressions on *-apple-darwin10 at -m64 caused by r147995
howarth at nitro dot med dot uc dot edu
gcc-bugzilla@gcc.gnu.org
Sat Sep 19 22:47:00 GMT 2009
------- 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
More information about the Java-prs
mailing list