]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
darwin.h (LIB_SPEC): New.
authorIain Sandoe <iains@gcc.gnu.org>
Fri, 20 Aug 2010 16:12:14 +0000 (16:12 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Fri, 20 Aug 2010 16:12:14 +0000 (16:12 +0000)
* config/rs6000/darwin.h (LIB_SPEC): New. Provide save/restFP by
linking libgcc.a.

From-SVN: r163410

gcc/ChangeLog
gcc/config/rs6000/darwin.h

index a6bb71835a75dcab41c768f79151e91ebf31376b..3c3af514a389251d147c0699e06b909fc6f9a59d 100644 (file)
@@ -1,3 +1,8 @@
+2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
+
+       * config/rs6000/darwin.h (LIB_SPEC): New. Provide save/restFP by 
+       linking libgcc.a.
+       
 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
            Michael Matz  <matz@suse.de>
 
index 810563e0ed0cc603e9134e7c8cc592ae6c27f37b..d2d1a1fb07353ae2ed44759bf1c6c14887269f8e 100644 (file)
@@ -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)}"