diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index c3c7a16b106..cf045733843 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,7 @@ +2019-05-12 Iain Sandoe + + * config/rs6000/darwin-vecsave.S: Set .machine appropriately. + 2019-05-07 Hongtao Liu * 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 7a4f509b372..df10b6f6ce4 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