aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2019-05-12 19:26:16 +0000
committerIain Sandoe <iains@gcc.gnu.org>2019-05-12 19:26:16 +0000
commitef5eb79dfd52ab58c3188eb5ca2ba0ad42328570 (patch)
tree4d84626bd7f1f166b8013367125b8748ac1dd0b2
parent0f8768f73440b040707deafd254d189c2887d00d (diff)
downloadgcc-ef5eb79dfd52ab58c3188eb5ca2ba0ad42328570.zip
gcc-ef5eb79dfd52ab58c3188eb5ca2ba0ad42328570.tar.gz
gcc-ef5eb79dfd52ab58c3188eb5ca2ba0ad42328570.tar.bz2
darwin, powerpc - set .machine in an asm file.
The asm file fails to build if we use a modern assembler which checks that the machine is consistent with the filetype. Fixed by adjusting in a similar manner to other assembler. libgcc/ 2019-05-12 Iain Sandoe <iain@sandoe.co.uk> * config/rs6000/darwin-vecsave.S: Set .machine appropriately. From-SVN: r271111
-rw-r--r--libgcc/ChangeLog4
-rw-r--r--libgcc/config/rs6000/darwin-vecsave.S8
2 files changed, 11 insertions, 1 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index c3c7a16..cf04573 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -1,3 +1,7 @@
+2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
+
+ * config/rs6000/darwin-vecsave.S: Set .machine appropriately.
+
2019-05-07 Hongtao Liu <hongtao.liu@intel.com>
* config/i386/cpuinfo.c (get_available_features): Detect BF16.
diff --git a/libgcc/config/rs6000/darwin-vecsave.S b/libgcc/config/rs6000/darwin-vecsave.S
index 7a4f509..df10b6f 100644
--- a/libgcc/config/rs6000/darwin-vecsave.S
+++ b/libgcc/config/rs6000/darwin-vecsave.S
@@ -31,8 +31,14 @@
(4 bytes) to do the operation; for Vector regs, 2 instructions are
required (8 bytes.). */
+/* With some assemblers, we need the correct machine directive to get the
+ right CPU type / subtype in the file header. */
+#if __ppc64__
+ .machine ppc64
+#else
.machine ppc7400
-.text
+#endif
+ .text
.align 2
.private_extern saveVEC