]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Darwin, PPC] Fix .machine directive in vecsave asm.
authorIain Sandoe <iain@sandoe.co.uk>
Tue, 3 Sep 2019 19:08:38 +0000 (19:08 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Tue, 3 Sep 2019 19:08:38 +0000 (19:08 +0000)
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.

2019-09-03  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>

* config/rs6000/darwin-vecsave.S: Set .machine appropriately.

From-SVN: r275348

libgcc/ChangeLog
libgcc/config/rs6000/darwin-vecsave.S

index 64fb43fdd2728f53759fedce8c85dc0eba1e98c1..ea5d1a8ee57b4065fc51cacf07d9da63b798efac 100644 (file)
@@ -1,3 +1,10 @@
+2019-09-03  Iain Sandoe  <iain@sandoe.co.uk>
+
+       Backport from mainline.
+       2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
+
+       * config/rs6000/darwin-vecsave.S: Set .machine appropriately.
+
 2018-12-06  Release Manager
 
        * GCC 7.4.0 released.
index 2574a168218b350ce4704c19a49ae5179ae76c78..574c327029b44e75555a172c4397bde345d09698 100644 (file)
    (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