From patchwork Mon Oct 25 23:39:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Segher Boessenkool X-Patchwork-Id: 46644 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CC9AE385380C for ; Mon, 25 Oct 2021 23:39:47 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from gcc1-power7.osuosl.org (gcc1-power7.osuosl.org [140.211.15.137]) by sourceware.org (Postfix) with ESMTP id A78A0385483A for ; Mon, 25 Oct 2021 23:39:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A78A0385483A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Authentication-Results: sourceware.org; spf=none smtp.mailfrom=gcc1-power7.osuosl.org Received: by gcc1-power7.osuosl.org (Postfix, from userid 10019) id 9D48312406C4; Mon, 25 Oct 2021 23:39:24 +0000 (UTC) From: Segher Boessenkool To: gcc-patches@gcc.gnu.org Subject: [PATCH] rs6000: Fix bootstrap (libffi) Date: Mon, 25 Oct 2021 23:39:19 +0000 Message-Id: <3eee26ca85f89aee42595ecdb20b4a67fbd3ab18.1635204640.git.segher@kernel.crashing.org> X-Mailer: git-send-email 1.8.3.1 X-Spam-Status: No, score=-12.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Segher Boessenkool , dje.gcc@gmail.com Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" This fixes bootstrap for the current problems building libffi. I'll work on getting this into upstream as well. If the maintainers want it done differently, at least we have bootstrap working again until then. Tested on powerpc64-linux {-m32,-m64}. Segher 2021-10-25 Segher Boessenkool libffi/ * src/powerpc/linux64.S: Enable AltiVec insns. * src/powerpc/linux64_closure.S: Ditto. --- libffi/src/powerpc/linux64.S | 2 ++ libffi/src/powerpc/linux64_closure.S | 2 ++ 2 files changed, 4 insertions(+) diff --git a/libffi/src/powerpc/linux64.S b/libffi/src/powerpc/linux64.S index e92d64af34fd..1f876ea39edd 100644 --- a/libffi/src/powerpc/linux64.S +++ b/libffi/src/powerpc/linux64.S @@ -29,6 +29,8 @@ #include #include + .machine altivec + #ifdef POWERPC64 .hidden ffi_call_LINUX64 .globl ffi_call_LINUX64 diff --git a/libffi/src/powerpc/linux64_closure.S b/libffi/src/powerpc/linux64_closure.S index 3469a2cbb01e..199981db3307 100644 --- a/libffi/src/powerpc/linux64_closure.S +++ b/libffi/src/powerpc/linux64_closure.S @@ -30,6 +30,8 @@ .file "linux64_closure.S" + .machine altivec + #ifdef POWERPC64 FFI_HIDDEN (ffi_closure_LINUX64) .globl ffi_closure_LINUX64