From b5fbe4b03b3e1b9eb694df87daee19618e2d86b7 Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Fri, 2 Aug 2019 14:19:42 +0000 Subject: [PATCH] Darwin, ppc, backport build fix. libgcc/ 2019-08-02 Iain Sandoe Backport from mainline. 2019-05-12 Iain Sandoe * config/rs6000/darwin-vecsave.S: Set .machine appropriately. From-SVN: r274013 --- libgcc/ChangeLog | 7 +++++++ libgcc/config/rs6000/darwin-vecsave.S | 8 +++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index e98288569725..d39fec4dffd8 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,10 @@ +2019-08-02 Iain Sandoe + + Backport from mainline. + 2019-05-12 Iain Sandoe + + * config/rs6000/darwin-vecsave.S: Set .machine appropriately. + 2019-05-26 John David Anglin * config/pa/linux-unwind.h (pa32_fallback_frame_state): Add cast. diff --git a/libgcc/config/rs6000/darwin-vecsave.S b/libgcc/config/rs6000/darwin-vecsave.S index 7a4f509b3725..df10b6f6ce4d 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 -- 2.47.2