From: Iain Sandoe Date: Wed, 30 Oct 2019 20:12:17 +0000 (+0000) Subject: [Darwin, PPC] Move the out of line register save/restore to an endfile. X-Git-Tag: releases/gcc-9.3.0~447 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df5e162b4bb27b5c8605a9527d27f034397aac38;p=thirdparty%2Fgcc.git [Darwin, PPC] Move the out of line register save/restore to an endfile. Part 1 of fixes to build and link conditions for older Darwin versions. We have been including these endfiles in libgcc, which means that we have to append -lgcc even when using shared libgcc. In preparation for revision of libgcc split this into an endfile. 2019-10-30 Iain Sandoe Backport from mainline 2019-06-27 Iain Sandoe * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the spec. Backport from mainline 2019-06-25 Iain Sandoe * config/rs6000/darwin.h (ENDFILE_SPEC): New. From-SVN: r277641 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5178bd6daa14..1873defbe083 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,16 @@ +2019-10-30 Iain Sandoe + + Backport from mainline + 2019-06-27 Iain Sandoe + + * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the + spec. + + Backport from mainline + 2019-06-25 Iain Sandoe + + * config/rs6000/darwin.h (ENDFILE_SPEC): New. + 2019-10-30 Iain Sandoe Backport from mainline diff --git a/gcc/config/rs6000/darwin.h b/gcc/config/rs6000/darwin.h index 523ddb6900f6..0f458f8bec50 100644 --- a/gcc/config/rs6000/darwin.h +++ b/gcc/config/rs6000/darwin.h @@ -140,6 +140,11 @@ #define DARWIN_CRT2_SPEC \ "%{!m64:%:version-compare(!> 10.4 mmacosx-version-min= crt2.o%s)}" +/* The PPC regs save/restore functions are leaves and could, conceivably + be used by the tm destructor. */ +#undef ENDFILE_SPEC +#define ENDFILE_SPEC TM_DESTRUCTOR " -lef_ppc" + #undef SUBTARGET_EXTRA_SPECS #define SUBTARGET_EXTRA_SPECS \ DARWIN_EXTRA_SPECS \