From: Iain Sandoe Date: Sat, 3 Aug 2019 19:36:37 +0000 (+0000) Subject: Darwin, ppc, backport build fix for unwinder. X-Git-Tag: releases/gcc-9.2.0~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9535e8591c6b945d5f7fe988a3d0cf0f0c60d316;p=thirdparty%2Fgcc.git Darwin, ppc, backport build fix for unwinder. 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-08-03 Iain Sandoe Backport from mainline. 2019-06-06 Iain Sandoe * config/rs6000/t-darwin: Ensure that the unwinder is built with altivec enabled. From-SVN: r274043 --- diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index d39fec4dffd8..560089ab2de8 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,11 @@ +2019-08-03 Iain Sandoe + + Backport from mainline. + 2019-06-06 Iain Sandoe + + * config/rs6000/t-darwin: Ensure that the unwinder is built with + altivec enabled. + 2019-08-02 Iain Sandoe Backport from mainline. diff --git a/libgcc/config/rs6000/t-darwin b/libgcc/config/rs6000/t-darwin index abb41fc9bceb..61da0bdf13a7 100644 --- a/libgcc/config/rs6000/t-darwin +++ b/libgcc/config/rs6000/t-darwin @@ -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