From: Segher Boessenkool Date: Fri, 10 Mar 2017 19:29:48 +0000 (+0100) Subject: Build crt*vr.S with AltiVec enabled X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4144e4e3010cb49a3659055de45acbf7a96b2da4;p=gcc.git Build crt*vr.S with AltiVec enabled These files won't build on targets that do not have AltiVec enabled, breaking the build, unless we tell GAS that Altivec insns are fine. The alternative is to not build these files in that case, which is much more complicated. libgcc/ * config/rs6000/crtrestvr.s: Use .machine altivec. * config/rs6000/crtsavevr.s: Ditto. From-SVN: r246051 --- diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index 470fbb7266c..a78bc43468c 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,8 @@ +2017-03-10 Segher Boessenkool + + * config/rs6000/crtrestvr.s: Use .machine altivec. + * config/rs6000/crtsavevr.s: Ditto. + 2017-03-10 Segher Boessenkool * configure.ac (test for libgcc_cv_powerpc_float128): Temporarily diff --git a/libgcc/config/rs6000/crtrestvr.S b/libgcc/config/rs6000/crtrestvr.S index 592a2b4e42b..a44ab89c867 100644 --- a/libgcc/config/rs6000/crtrestvr.S +++ b/libgcc/config/rs6000/crtrestvr.S @@ -31,6 +31,7 @@ /* Called with r0 pointing just beyond the end of the vector save area. */ + .machine altivec .section ".text" CFI_STARTPROC HIDDEN_FUNC(_restvr_20) diff --git a/libgcc/config/rs6000/crtsavevr.S b/libgcc/config/rs6000/crtsavevr.S index 2fd54c4a734..bc0201923fd 100644 --- a/libgcc/config/rs6000/crtsavevr.S +++ b/libgcc/config/rs6000/crtsavevr.S @@ -31,6 +31,7 @@ /* Called with r0 pointing just beyond the end of the vector save area. */ + .machine altivec .section ".text" CFI_STARTPROC HIDDEN_FUNC(_savevr_20)