From patchwork Mon Aug 14 02:13:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans-Peter Nilsson X-Patchwork-Id: 1820820 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=) 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 (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RPHyK2cP8z1yfS for ; Mon, 14 Aug 2023 12:14:01 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3C8613858C31 for ; Mon, 14 Aug 2023 02:13:59 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from arjuna.pair.com (arjuna.pair.com [209.68.5.131]) by sourceware.org (Postfix) with ESMTPS id 451193858D39 for ; Mon, 14 Aug 2023 02:13:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 451193858D39 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=bitrange.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=bitrange.com Received: by arjuna.pair.com (Postfix, from userid 3006) id E67EF8A701; Sun, 13 Aug 2023 22:13:46 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by arjuna.pair.com (Postfix) with ESMTP id E5E078A6B0 for ; Sun, 13 Aug 2023 22:13:46 -0400 (EDT) Date: Sun, 13 Aug 2023 22:13:46 -0400 (EDT) From: Hans-Peter Nilsson X-X-Sender: hp@arjuna.pair.com To: gcc-patches@gcc.gnu.org Subject: [committed] Disable LRA for MMIX. Message-ID: User-Agent: Alpine 2.20.16 (BSF 172 2016-09-29) MIME-Version: 1.0 X-Scanned-By: mailmunge 3.11 on 209.68.5.131 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP, WEIRD_PORT 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.29 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 Sender: "Gcc-patches" Since the change r14-383-gfaf8bea79b6256 "Enable LRA on several ports", mmix has been broken building libstdc++-v3: libtool: compile: /obj/./gcc/xgcc -shared-libgcc -B/obj/./gcc -nostdinc++ -L/obj/mmix/libstdc++-v3/src -L/obj/mmix/libstdc++-v3/src/.libs -L/obj/mmix/libstdc++-v3/libsupc++/.libs -nostdinc -B/obj/mmix/newlib/ -isystem /obj/mmix/newlib/targ-include -isystem /gcctop/newlib/libc/include -B/obj/mmix/libgloss/mmix -L/obj/mmix/libgloss/libnosys -L/gcctop/libgloss/mmix -B/home/hp/tmp/mmix230811-00/pre/mmix/bin/ -B/home/hp/tmp/mmix230811-00/pre/mmix/lib/ -isystem /home/hp/tmp/mmix230811-00/pre/mmix/include -isystem /home/hp/tmp/mmix230811-00/pre/mmix/sys-include -I/gcctop/libstdc++-v3/../libgcc -I/obj/mmix/libstdc++-v3/include/mmix -I/obj/mmix/libstdc++-v3/include -I/gcctop/libstdc++-v3/libsupc++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2 -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=eh_type.lo -g -O2 -c /gcctop/libstdc++-v3/libsupc++/eh_type.cc -o eh_type.o /gcctop/libstdc++-v3/libsupc++/eh_terminate.cc: In function 'void __cxxabiv1::__terminate(std::terminate_handler)': /gcctop/libstdc++-v3/libsupc++/eh_terminate.cc:53:1: error: unable to generate reloads for: 53 | } | ^ (insn 31 36 44 4 (parallel [ (unspec_volatile [ (plus:DI (reg/f:DI 253 $253) (const_int 24 [0x18])) ] 1) (clobber (reg:DI 275)) (clobber (reg:DI 259 rJ)) ]) "/gcctop/libstdc++-v3/libsupc++/eh_terminate.cc":51:3 discrim 1 63 {*nonlocal_goto_receiver_expanded} (expr_list:REG_UNUSED (reg:DI 275) (expr_list:REG_UNUSED (reg:DI 259 rJ) (nil)))) during RTL pass: reload /gcctop/libstdc++-v3/libsupc++/eh_terminate.cc:53:1: internal compiler error: in curr_insn_transform, at lra-constraints.cc:4281 This commit temporarily reverts the MMIX part of r14-383-gfaf8bea79b6256 back to reload. * config/mmix/mmix.cc: Disable LRA for MMIX. --- gcc/config/mmix/mmix.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/config/mmix/mmix.cc b/gcc/config/mmix/mmix.cc index 347430927499..5160794d9d03 100644 --- a/gcc/config/mmix/mmix.cc +++ b/gcc/config/mmix/mmix.cc @@ -274,6 +274,9 @@ static HOST_WIDE_INT mmix_starting_frame_offset (void); #undef TARGET_PREFERRED_OUTPUT_RELOAD_CLASS #define TARGET_PREFERRED_OUTPUT_RELOAD_CLASS mmix_preferred_output_reload_class +#undef TARGET_LRA_P +#define TARGET_LRA_P hook_bool_void_false + #undef TARGET_LEGITIMATE_ADDRESS_P #define TARGET_LEGITIMATE_ADDRESS_P mmix_legitimate_address_p #undef TARGET_LEGITIMATE_CONSTANT_P