From: Iain Sandoe Date: Fri, 20 Aug 2010 16:12:14 +0000 (+0000) Subject: darwin.h (LIB_SPEC): New. X-Git-Tag: releases/gcc-4.6.0~4907 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bf794e41ee84bb4bc8b02a89694c8cccd417ba45;p=thirdparty%2Fgcc.git darwin.h (LIB_SPEC): New. * config/rs6000/darwin.h (LIB_SPEC): New. Provide save/restFP by linking libgcc.a. From-SVN: r163410 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a6bb71835a75..3c3af514a389 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-08-20 Iain Sandoe + + * config/rs6000/darwin.h (LIB_SPEC): New. Provide save/restFP by + linking libgcc.a. + 2010-08-20 Jakub Jelinek Michael Matz diff --git a/gcc/config/rs6000/darwin.h b/gcc/config/rs6000/darwin.h index 810563e0ed0c..d2d1a1fb0735 100644 --- a/gcc/config/rs6000/darwin.h +++ b/gcc/config/rs6000/darwin.h @@ -120,6 +120,11 @@ extern int darwin_emit_branch_islands; mcpu=G5:ppc970; \ :ppc}}" +/* Linked libs might refer to save/restFP - we still need to append -lgcc to + provide these. */ +#undef LIB_SPEC +#define LIB_SPEC "%{!static:-lgcc -lSystem}" + /* crt2.o is at least partially required for 10.3.x and earlier. */ #define DARWIN_CRT2_SPEC \ "%{!m64:%:version-compare(!> 10.4 mmacosx-version-min= crt2.o%s)}"