diff options
author | Iain Sandoe <iains@gcc.gnu.org> | 2010-08-20 16:12:14 +0000 |
---|---|---|
committer | Iain Sandoe <iains@gcc.gnu.org> | 2010-08-20 16:12:14 +0000 |
commit | bf794e41ee84bb4bc8b02a89694c8cccd417ba45 (patch) | |
tree | 197d06458e327a5bc1b12491ceb64d2f2697b697 | |
parent | 521fdcda19a886315e0d39a32674329e0e2edf01 (diff) | |
download | gcc-bf794e41ee84bb4bc8b02a89694c8cccd417ba45.zip gcc-bf794e41ee84bb4bc8b02a89694c8cccd417ba45.tar.gz gcc-bf794e41ee84bb4bc8b02a89694c8cccd417ba45.tar.bz2 |
darwin.h (LIB_SPEC): New.
* config/rs6000/darwin.h (LIB_SPEC): New. Provide save/restFP by
linking libgcc.a.
From-SVN: r163410
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/rs6000/darwin.h | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a6bb718..3c3af51 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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> diff --git a/gcc/config/rs6000/darwin.h b/gcc/config/rs6000/darwin.h index 810563e..d2d1a1f 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)}" |