From patchwork Sat Oct 5 22:44:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 1993189 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XLgTx1G92z1xtN for ; Sun, 6 Oct 2024 09:45:09 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8B443385ED76 for ; Sat, 5 Oct 2024 22:45:03 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from dellerweb.de (dellerweb.de [173.249.48.176]) by sourceware.org (Postfix) with ESMTPS id 77BAF386F465 for ; Sat, 5 Oct 2024 22:44:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 77BAF386F465 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=parisc-linux.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=parisc-linux.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 77BAF386F465 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=173.249.48.176 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728168282; cv=none; b=V6qmN6TD6UZ9ZKQrstWNeHIZcXh2i0f0q++su7HVIUPsAPLDb2O03RTcC0mJ0K10ZyAFbYW4plns6muj94ejZpyUIah/Ic4ub3AfuYn1z3WRcapUBrJ1fKjKjqj90cS/V4EoSeviPguW26hofIF2WKRGl1gswHFuPWPcGElESts= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728168282; c=relaxed/simple; bh=IiHYlf6K+8zEnFpoLDIuBjsYW7hlomzPWDuRYBaClbE=; h=Date:From:To:Subject:Message-ID:MIME-Version; b=RAGwm9UiZgBYjgNGe+7eLD2pLgixtsQqljnrYN7YpCU0ppkj0gUcvFP59dETVFBJQ/mExvp00POJY/4/3eT/g2iGXTMkyrbyo/HVgaImFj0WCFkZrdaea2QHgUJQpeHSRSVeGCQ4xB0vWLdPgKxep5nksJuFsn+FQGN3sZ3brzY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from mx3210.localdomain (bras-base-otwaon0906w-grc-03-142-126-114-136.dsl.bell.ca [142.126.114.136]) by dellerweb.de (Postfix) with ESMTPSA id 8DDB21600061; Sun, 6 Oct 2024 00:44:31 +0200 (CEST) Received: by mx3210.localdomain (Postfix, from userid 1000) id 0F578D6031F; Sat, 5 Oct 2024 18:44:29 -0400 (EDT) Date: Sat, 5 Oct 2024 18:44:29 -0400 From: John David Anglin To: GCC Patches Subject: [committed] hppa: Don't clobber frame_pointer_rtx in expanders Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, URIBL_DBL_SPAM autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org Tested on hppa-unknown-linux-gnu and hppa64-hp-hpux11.11. Committed to trunk. Dave --- hppa: Don't clobber frame_pointer_rtx in expanders Noticed testing LRA. Clobbers cause internal compiler errors. 2024-10-05 John David Anglin gcc/ChangeLog: * config/pa/pa.md (nonlocal_goto): Don't clobber frame_pointer_rtx. (builtin_longjmp): Likewise. diff --git a/gcc/config/pa/pa.md b/gcc/config/pa/pa.md index f0520bb2c35..2f82b431c0c 100644 --- a/gcc/config/pa/pa.md +++ b/gcc/config/pa/pa.md @@ -7411,7 +7411,6 @@ /* Ensure the frame pointer move is not optimized. */ emit_insn (gen_blockage ()); emit_clobber (hard_frame_pointer_rtx); - emit_clobber (frame_pointer_rtx); emit_move_insn (hard_frame_pointer_rtx, fp); emit_use (hard_frame_pointer_rtx); @@ -9202,7 +9201,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)" /* Ensure the frame pointer move is not optimized. */ emit_insn (gen_blockage ()); emit_clobber (hard_frame_pointer_rtx); - emit_clobber (frame_pointer_rtx); emit_move_insn (hard_frame_pointer_rtx, fp); emit_use (hard_frame_pointer_rtx);