From: Iain Sandoe Date: Tue, 3 Sep 2019 19:08:38 +0000 (+0000) Subject: [Darwin, PPC] Fix .machine directive in vecsave asm. X-Git-Tag: releases/gcc-7.5.0~179 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de935e9c93236d42be620fde0ba39b74097281a8;p=thirdparty%2Fgcc.git [Darwin, PPC] Fix .machine directive in vecsave asm. 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 Backport from mainline. 2019-05-12 Iain Sandoe * config/rs6000/darwin-vecsave.S: Set .machine appropriately. From-SVN: r275348 --- diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index 64fb43fdd272..ea5d1a8ee57b 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,10 @@ +2019-09-03 Iain Sandoe + + Backport from mainline. + 2019-05-12 Iain Sandoe + + * config/rs6000/darwin-vecsave.S: Set .machine appropriately. + 2018-12-06 Release Manager * GCC 7.4.0 released. diff --git a/libgcc/config/rs6000/darwin-vecsave.S b/libgcc/config/rs6000/darwin-vecsave.S index 2574a168218b..574c327029b4 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