]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Darwin, PPC] Move the out of line register save/restore to an endfile.
authorIain Sandoe <iain@sandoe.co.uk>
Wed, 30 Oct 2019 20:12:17 +0000 (20:12 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Wed, 30 Oct 2019 20:12:17 +0000 (20:12 +0000)
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  <iain@sandoe.co.uk>

Backport from mainline
2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>

* config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
spec.

Backport from mainline
2019-06-25  Iain Sandoe  <iain@sandoe.co.uk>

* config/rs6000/darwin.h (ENDFILE_SPEC): New.

From-SVN: r277641

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

index 5178bd6daa144926b4f64258866bcc9c30de949c..1873defbe083e469b7a8b0101f148afe169b4453 100644 (file)
@@ -1,3 +1,16 @@
+2019-10-30  Iain Sandoe  <iain@sandoe.co.uk>
+
+       Backport from mainline
+       2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
+
+       * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
+       spec.
+
+       Backport from mainline
+       2019-06-25  Iain Sandoe  <iain@sandoe.co.uk>
+
+       * config/rs6000/darwin.h (ENDFILE_SPEC): New.
+
 2019-10-30  Iain Sandoe  <iain@sandoe.co.uk>
 
        Backport from mainline
index 523ddb6900f65eab5c0668e46975593bc9e05aa0..0f458f8bec5063208eaef0a2480dc497e449f48c 100644 (file)
 #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                            \