aboutsummaryrefslogtreecommitdiff
path: root/libgcc/config
diff options
context:
space:
mode:
authorsegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>2017-03-10 19:29:48 +0000
committersegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>2017-03-10 19:29:48 +0000
commitb97c2c61f328f7862dd07f4285cae8280530fa71 (patch)
treeea4d1ebb07acf3be88059e3afef7959dd4eebd84 /libgcc/config
parenta02fe1851f646267d38754fbb30c5bebca0b6762 (diff)
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@246051 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgcc/config')
-rw-r--r--libgcc/config/rs6000/crtrestvr.S1
-rw-r--r--libgcc/config/rs6000/crtsavevr.S1
2 files changed, 2 insertions, 0 deletions
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)