]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Darwin, PPC, libgcc] Ensure unwinder is built with altivec enabled.
authorIain Sandoe <iain@sandoe.co.uk>
Wed, 4 Sep 2019 19:21:07 +0000 (19:21 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Wed, 4 Sep 2019 19:21:07 +0000 (19:21 +0000)
Fix bootstrap fail when building for 10.4.

When libgcc is built on Darwin, it is usually built for the earliest potential
target (Darwin8, 10.4). Build for that revision default to assuming that the
processor might be G3 (without vector ops) and there is an outlined function
used for save/restore that checks whether the processor is G3 or G4+ at run-
time. However, the unwinder itself needs to be built with the assumption of
vector usage so that the relevant outlined functions are called.

2019-09-04  Iain Sandoe  <iain@sandoe.co.uk>

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

* config/rs6000/t-darwin: Ensure that the unwinder is built with
altivec enabled.

From-SVN: r275383

libgcc/ChangeLog
libgcc/config/rs6000/t-darwin

index ea5d1a8ee57b4065fc51cacf07d9da63b798efac..67d064a6347f880adf7b30a5881aa78431f2457a 100644 (file)
@@ -1,3 +1,11 @@
+2019-09-04  Iain Sandoe  <iain@sandoe.co.uk>
+
+       Backport from mainline.
+       2019-06-06  Iain Sandoe  <iain@sandoe.co.uk>
+
+       * config/rs6000/t-darwin: Ensure that the unwinder is built with
+       altivec enabled.
+
 2019-09-03  Iain Sandoe  <iain@sandoe.co.uk>
 
        Backport from mainline.
index abb41fc9bceb88246bb488f23e08c326579a64e7..61da0bdf13a700f7ebf130fc23f97e310a1cd12d 100644 (file)
@@ -20,4 +20,7 @@ LIB2ADD_ST = \
 # earlier OSX versions.
 HOST_LIBGCC2_CFLAGS += -Wa,-force_cpusubtype_ALL -mmacosx-version-min=10.4
 
+unwind-dw2_s.o: HOST_LIBGCC2_CFLAGS += -maltivec
+unwind-dw2.o: HOST_LIBGCC2_CFLAGS += -maltivec
+
 LIB2ADDEH += $(srcdir)/config/rs6000/darwin-fallback.c