From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22482 invoked by alias); 19 Sep 2009 22:47:46 -0000 Received: (qmail 22336 invoked by uid 48); 19 Sep 2009 22:47:33 -0000 Date: Sat, 19 Sep 2009 22:47:00 -0000 Message-ID: <20090919224733.22335.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/41260] [4.5 Regression] major regressions on *-apple-darwin10 at -m64 caused by r147995 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "howarth at nitro dot med dot uc dot edu" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-09/txt/msg01826.txt.bz2 ------- 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