Message ID | 20240218091911.3077-1-mikpelinux@gmail.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp700373dyc; Sun, 18 Feb 2024 01:20:03 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVUvkY+ftXqonaGbuZHzcI7AUEMpcv2QpEOp57P/58d84jlzJ+dy67DbSYCr6Z8aGvHI0MjtNCeRNXG4IK1XKbAlBOvMQ== X-Google-Smtp-Source: AGHT+IGG3pDJxh7T9uNKLYYEBt7C1Iq812Y3Os3zsi8J5HA3Ihxkz6TCPWaE3EPj3qf7lfEoDy/f X-Received: by 2002:a05:6214:dcc:b0:68f:30b2:21e4 with SMTP id 12-20020a0562140dcc00b0068f30b221e4mr9554606qvt.19.1708248003481; Sun, 18 Feb 2024 01:20:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708248003; cv=pass; d=google.com; s=arc-20160816; b=uHbQoDKnb0dgG0ITvOD5Yj0W+j6EO4z6ckB2308sHc6fa2ZgnfIjAN1q3sSxCH/xxg jlzyZjsucOcp6apcnRhq7IdhAnbCCPMgZ7jyVCJn0OOrpigPNAOpYoJrQavH+tRVCEag i4C85OteevbhFSBxmGB+Bpy3iBlhxaPwO8XDg/deXokJUKJhDrjoJvFhoCfm+WYP3o0R DUxSGYhQNLvAV7QF51Gt/renkZEOotC9PTrK9j4csy9JtWoU/FAXTdG5W2EXJZlmrqh+ hRIKMPLyR1NI9ky0RZgstOrl51NCGqZAST8qFUTCnTNlkJ1np3eIc2YnaiL4UqwxLUZ5 9B/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=8zi2D/fJabcbCh1MF+JwYttjjxD3YnUSVnaj2mdE2UY=; fh=CBvKQ9y8NVWPMEa/Zl52//dWBs0GicMkUCU0rjesBbs=; b=U4BGe+1Z+gEC6eEn7g7OPxi2jMD2+yjZfS9pfiSl23XRDVe14T/PtsjtGAxZ4cjyZG Y2rHBoP1RtXwiNzR6egcrrh1dHB6mNdyEekx1isdBJagkaJ/ZvdLEpKPM1BBAf6IUxzF 7X7p+Z2zYkyso1sGkLK0Wpzj3ZZV5Cvr4yG3TjRwNydH3kAIKJsJW/XyyRZ0SL8b7mDV SaZFBV80Y5SlwAJMP8omjB0uyfFiwtFBjn3V7xsqq2dt97BifmVg+HfqGquWcaicHADB Hf5hGDZx0J9AD6SpDhg/mktbcUrBiQQEN3qUCXnK2QuGIIeBEm+m0HNrMByXhgFUU/oY sZvg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NLM5FEpD; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id 2-20020a0562140cc200b0068cfba18abbsi3768555qvx.418.2024.02.18.01.20.03 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 01:20:03 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NLM5FEpD; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 28BFD386102E for <ouuuleilei@gmail.com>; Sun, 18 Feb 2024 09:20:03 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by sourceware.org (Postfix) with ESMTPS id AB2C0385B509 for <gcc-patches@gcc.gnu.org>; Sun, 18 Feb 2024 09:19:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AB2C0385B509 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org AB2C0385B509 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::130 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708247966; cv=none; b=msSDhe1tJHM6Pp1tbC8Q115X3gDgGVddSpZ5omCx+lRihba/hmvbb2g9q+UGwPUM2GWBN2cDSnP4FtWuQEinWOAf0OMNUbsttBDw4PKewfWlFa9dW4k2K2GPnXuHvq4iqK5fLyliZ7od1Kq58HphUHMKs/IrPq2GLWZZnPjoT2A= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708247966; c=relaxed/simple; bh=ddO8aqFOuIBHBBBMi4PHD2IgkeqJYuVPYnwhkLcsIpc=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=a/PkktoEvI2tDNyzYputyRtSnSDEB9fW7dcB6gIggeqz7AeIrdMK5SqTuQBmJnNl1NtbDQolbEOjcrrmUNfgvUboIx1nNqAiSIgnP3If8/jH0mGcgXkgJqCes0iWp/NBrkJdRqHlv2JUL/WCExTXArAk1ORixS9NDM1QnHAzX/s= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-5128812662eso2942297e87.0 for <gcc-patches@gcc.gnu.org>; Sun, 18 Feb 2024 01:19:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708247963; x=1708852763; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=8zi2D/fJabcbCh1MF+JwYttjjxD3YnUSVnaj2mdE2UY=; b=NLM5FEpDHPpLzuQfiiR6rFwH7hZf23HzqlBjykKyYtVMTFXgOAz04d9X/HAiyYAfPe g3x5l49YtMk5eJhjxol3aCcYYygAhN1gLOtCUIDic+Dw+cDK7RUEE1fMOHEPUnKpXiGl Tz8F8lDU9amHfT9fWopMTO00QR8gpDqYCHDNrHlKu7vFo0QfNZuZLQkVg5E69Vc0zXju Zq0y19hRzzA9nDrw18x1gieSB619cQPPVpshh65Meqrrkh7J3ZB11Sag5sxyWm0odvy2 I39zYwl/gThrCkWcabTcFna9sOyxOEEc+TriGsFqJAqeikzotYrqQVwmP0J1RJgjCb4L ihNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708247963; x=1708852763; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8zi2D/fJabcbCh1MF+JwYttjjxD3YnUSVnaj2mdE2UY=; b=XkB49vzQKT7UysdKIMb9Rg1KuSMzhFlQTKLWMZnZcYyQrabdZ/5haCxFYZW+tEh+bM 6pNF2y7O96x1G7Pkz7jmmj2yGj8522EJmPHJXLlfM1ciPCQ0+6prpbaV9N4jW2mJfNzz zhdpubQfpeZV4d3arFOe04Nb96d7jMnDOpuvbkWk5TOEFmHcSjHThKJlvxq/PNX54Ihh eRYSocUfKUdO6XOMCI3wMe77f0Yhcm8jnhNX7mPe2dQXe48B7+3W4bl91MBuSS7HflAb Mji2FcM6j+Fwl3TjrLb/hmNbFMiTbirSFmaVqfW7eToR4q/NF0BdxI7KxMQCzOwYlXZI /WDg== X-Gm-Message-State: AOJu0Yy8eITl/8LUbxty32wArKkW27iCXHB/vYcihMuzsYLvJGNokcKw 6mXaE5TX5PUPX/+AZNgzhB03MCeletYvo7IobRfj3J3rLdKnh0dwwfMMcDXX X-Received: by 2002:ac2:47f3:0:b0:511:5569:680d with SMTP id b19-20020ac247f3000000b005115569680dmr6064539lfp.22.1708247962708; Sun, 18 Feb 2024 01:19:22 -0800 (PST) Received: from hallertau.. (ip006.net-192-176-117.koping.net. [192.176.117.6]) by smtp.gmail.com with ESMTPSA id a13-20020a19ca0d000000b005128da4818dsm516429lfg.197.2024.02.18.01.19.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 01:19:22 -0800 (PST) From: Mikael Pettersson <mikpelinux@gmail.com> To: gcc-patches@gcc.gnu.org Cc: Mikael Pettersson <mikpelinux@gmail.com> Subject: [PATCH] m68k: restore bootstrap Date: Sun, 18 Feb 2024 10:18:55 +0100 Message-ID: <20240218091911.3077-1-mikpelinux@gmail.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791227858243944537 X-GMAIL-MSGID: 1791227858243944537 |
Series |
m68k: restore bootstrap
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Mikael Pettersson
Feb. 18, 2024, 9:18 a.m. UTC
m68k fails to bootstrap since -ffold-mem-offsets was introduced, in what looks like wrong-code during stage2. To restore bootstrap this disables -ffold-mem-offsets on m68k. It's not ideal, but better than keeping bootstraps broken until the root cause is debugged and fixed. Tested with a bootstrap and regression test run on m68k-linux-gnu. Ok for master? (I'll need help getting it committed.) gcc/ PR target/113357 * config/m68k/m68k.cc (m68k_option_override): Disable -ffold-mem-offsets. Fix typo in comment. --- gcc/config/m68k/m68k.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
Comments
On 2/18/24 02:18, Mikael Pettersson wrote: > m68k fails to bootstrap since -ffold-mem-offsets was introduced, > in what looks like wrong-code during stage2. > > To restore bootstrap this disables -ffold-mem-offsets on m68k. > It's not ideal, but better than keeping bootstraps broken until > the root cause is debugged and fixed. > > Tested with a bootstrap and regression test run on m68k-linux-gnu. > > Ok for master? (I'll need help getting it committed.) > > gcc/ > PR target/113357 > * config/m68k/m68k.cc (m68k_option_override): Disable > -ffold-mem-offsets. Fix typo in comment. Definitely not OK. This needs to be debugged further, just disabling the pass is not the right solution here. It is also worth noting I'm bootstrapping and regression testing the m68k weekly. jeff
On Sun, 2024-02-18 at 08:42 -0700, Jeff Law wrote: > > On 2/18/24 02:18, Mikael Pettersson wrote: > > m68k fails to bootstrap since -ffold-mem-offsets was introduced, > > in what looks like wrong-code during stage2. > > > > To restore bootstrap this disables -ffold-mem-offsets on m68k. > > It's not ideal, but better than keeping bootstraps broken until > > the root cause is debugged and fixed. > > > > Tested with a bootstrap and regression test run on m68k-linux-gnu. > > > > Ok for master? (I'll need help getting it committed.) > > > > gcc/ > > PR target/113357 > > * config/m68k/m68k.cc (m68k_option_override): Disable > > -ffold-mem-offsets. Fix typo in comment. > Definitely not OK. This needs to be debugged further, just disabling > the pass is not the right solution here. > > It is also worth noting I'm bootstrapping and regression testing the > m68k weekly. > > Jeff, could you please consider sharing your test setup so that others can reproduce it as well? I'd be really better if more people had access to a unified test setup and methodology. Best regards, Oleg Endo
diff --git a/gcc/config/m68k/m68k.cc b/gcc/config/m68k/m68k.cc index b1c9238949f..700f8151286 100644 --- a/gcc/config/m68k/m68k.cc +++ b/gcc/config/m68k/m68k.cc @@ -587,7 +587,7 @@ m68k_option_override (void) : (m68k_cpu_flags & FL_COLDFIRE) != 0 ? FPUTYPE_COLDFIRE : FPUTYPE_68881); - /* Sanity check to ensure that msep-data and mid-sahred-library are not + /* Sanity check to ensure that msep-data and mid-shared-library are not * both specified together. Doing so simply doesn't make sense. */ if (TARGET_SEP_DATA && TARGET_ID_SHARED_LIBRARY) @@ -716,6 +716,9 @@ m68k_option_override (void) else m68k_sched_mac = MAC_NO; } + + /* -ffold-mem-offsets doesn't work for m68k (PR113357). */ + flag_fold_mem_offsets = 0; } /* Implement TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE. */