diff options
author | Segher Boessenkool <segher@kernel.crashing.org> | 2017-03-10 20:29:48 +0100 |
---|---|---|
committer | Segher Boessenkool <segher@gcc.gnu.org> | 2017-03-10 20:29:48 +0100 |
commit | 4144e4e3010cb49a3659055de45acbf7a96b2da4 (patch) | |
tree | ea4d1ebb07acf3be88059e3afef7959dd4eebd84 | |
parent | fdb1880f3d218d76768ebb3f1d1adedbfb166f6f (diff) | |
download | gcc-4144e4e3010cb49a3659055de45acbf7a96b2da4.zip gcc-4144e4e3010cb49a3659055de45acbf7a96b2da4.tar.gz gcc-4144e4e3010cb49a3659055de45acbf7a96b2da4.tar.bz2 |
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
-rw-r--r-- | libgcc/ChangeLog | 5 | ||||
-rw-r--r-- | libgcc/config/rs6000/crtrestvr.S | 1 | ||||
-rw-r--r-- | libgcc/config/rs6000/crtsavevr.S | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index 470fbb7..a78bc43 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,5 +1,10 @@ 2017-03-10 Segher Boessenkool <segher@kernel.crashing.org> + * config/rs6000/crtrestvr.s: Use .machine altivec. + * config/rs6000/crtsavevr.s: Ditto. + +2017-03-10 Segher Boessenkool <segher@kernel.crashing.org> + * configure.ac (test for libgcc_cv_powerpc_float128): Temporarily modify CFLAGS. Add -mabi=altivec -mvsx -mfloat128. (test for libgcc_cv_powerpc_float128_hw): Add -mpower9-vector and diff --git a/libgcc/config/rs6000/crtrestvr.S b/libgcc/config/rs6000/crtrestvr.S index 592a2b4..a44ab89 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 2fd54c4..bc02019 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) |