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

Reply via email to