| Message ID | 20260111161258.3157574-2-mikpelinux@gmail.com |
|---|---|
| State | New |
| Headers |
Return-Path: <gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 7AE844BA2E06 for <patchwork@sourceware.org>; Sun, 11 Jan 2026 16:15:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7AE844BA2E06 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=ClmApmKJ X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) by sourceware.org (Postfix) with ESMTPS id 929484BA2E04 for <gcc-patches@gcc.gnu.org>; Sun, 11 Jan 2026 16:15:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 929484BA2E04 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 929484BA2E04 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=209.85.167.46 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1768148111; cv=none; b=WDLZRUy55qMXe/DNgLanndit9ThkhZFiCmWAAunX5/bUNVkvqnmsHpT0J/sgCvMTwREeSU25oG2jJtARe0BDDbz3LG6NiMCK2ioerQzBXFKzu5WvG2moGbARJVUEWvuz/KrtWwQ9bMPOMOVH6fW7tg3AMvcgrzkksnNTRR+Dj8w= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1768148111; c=relaxed/simple; bh=wzNUEP33rxAEb+PJh4An301qGiwvQfrWvkVH57X39bw=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=GLbFGLI2B5O1Wu8tR1S0twT7l2gElgYY0G3v8ltfNwuG6l3oERQFC+PHS1s3xrIWaRhig6JNnIRf4Wz7ZCMgH4kilacsyiNwQa2f5lX18AoLKibAYRO1PmD5+9qNUP9VWMAPC+gkoRnIScMx0B9+JwTRjOVbM1BbshMONTS1aLc= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 929484BA2E04 Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-59b8364e4ccso2438682e87.3 for <gcc-patches@gcc.gnu.org>; Sun, 11 Jan 2026 08:15:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768148110; x=1768752910; 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=kNdyAoHhWPcWdlZtLA7sJWfQosvdHiEAnHuG8XAYrOg=; b=ClmApmKJnYpmisN9JcfmO+8D7MU2vDUr5Qbi5EvHsBMkv9shmNa4z4FQN9TPEDNsFQ JeJAHrMZhg2n3cJuUVCjgNwQ8YfV2yHYFlPx/PdDtJiB78vJqKcVrnG6AE9ovZiFNqYk gWElDghCw7KlTt9OxiJC/+yAq1LME0PKVV1yTzSeI05Xi1KmCqxzbt0Jt2AyvjLD5GUi 3droGYmT4HpwF6Tt214re4oqDDm/V3qNgkwe82LIAQiREp9Mu6MUDqz1o619qiqaVs7s RTpgKiXjckEeHc6NFDbYGGxlR2UqXah7fOjNXKW2RztIOfrp+rUN8Ij3r+QdlKvoXdG4 Pk1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768148110; x=1768752910; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=k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OVPWnDOu2zI7rznhFG2lqDIL0QOchhusQ3OA== X-Received: by 2002:a05:6512:3b85:b0:59b:7b59:a4a3 with SMTP id 2adb3069b0e04-59b7b59a4fdmr3293904e87.17.1768148109720; Sun, 11 Jan 2026 08:15:09 -0800 (PST) Received: from hallertau (ip006.net-192-176-117.koping.net. [192.176.117.6]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-59b67e87b17sm4002667e87.85.2026.01.11.08.15.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Jan 2026 08:15:09 -0800 (PST) From: Mikael Pettersson <mikpelinux@gmail.com> To: gcc-patches@gcc.gnu.org Cc: Mikael Pettersson <mikpelinux@gmail.com> Subject: [PATCH] m68k: Enable LRA by default. Date: Sun, 11 Jan 2026 17:12:59 +0100 Message-ID: <20260111161258.3157574-2-mikpelinux@gmail.com> X-Mailer: git-send-email 2.52.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_BLOCKED, RCVD_IN_MSPIKE_H2, RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on 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~patchwork=sourceware.org@gcc.gnu.org |
| Series |
m68k: Enable LRA by default.
|
|
Commit Message
Mikael Pettersson
Jan. 11, 2026, 4:12 p.m. UTC
For now you can still switch to reload with -mno-lra. Successful bootstrap with c,c++ natively on m68k-linux-gnu. Test suite results on par with previous non-LRA bootstrap. A previous version also bootstrapped Ada. Is this Ok for trunk? gcc/ PR target/113939 * config/m68k/m68k.opt (mlra): Default to LRA instead of reload. --- gcc/config/m68k/m68k.opt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 1/11/2026 9:12 AM, Mikael Pettersson wrote: > For now you can still switch to reload with -mno-lra. > > Successful bootstrap with c,c++ natively on m68k-linux-gnu. > Test suite results on par with previous non-LRA bootstrap. > A previous version also bootstrapped Ada. > > Is this Ok for trunk? > > gcc/ > PR target/113939 > * config/m68k/m68k.opt (mlra): Default to LRA instead of reload. Failed configuring libgfortran for me. Unfortunately it's all run out of a docker container, so I don't have the actual log files. So all we get out of it is: > libtool.m4: error: problem compiling FC test program > This worked find without the LRA patch. jeff
On Wed, Jan 14, 2026 at 6:04 AM Jeffrey Law <jeffrey.law@oss.qualcomm.com> wrote: > > > > On 1/11/2026 9:12 AM, Mikael Pettersson wrote: > > For now you can still switch to reload with -mno-lra. > > Successful bootstrap with c,c++ natively on m68k-linux-gnu. > Test suite results on par with previous non-LRA bootstrap. > A previous version also bootstrapped Ada. > > Is this Ok for trunk? > > gcc/ > PR target/113939 > * config/m68k/m68k.opt (mlra): Default to LRA instead of reload. > > Failed configuring libgfortran for me. Unfortunately it's all run out of a docker container, so I don't have the actual log files. So all we get out of it is: > > libtool.m4: error: problem compiling FC test program > > > > This worked find without the LRA patch. That's probably PR120165. I'll take a look. (Is there a concept of "primary languages" similar to primary targets? If so, is Fortran one?) /Mikael
On 1/14/2026 5:09 AM, Mikael Pettersson wrote: > On Wed, Jan 14, 2026 at 6:04 AM Jeffrey Law > <jeffrey.law@oss.qualcomm.com> wrote: >> >> >> On 1/11/2026 9:12 AM, Mikael Pettersson wrote: >> >> For now you can still switch to reload with -mno-lra. >> >> Successful bootstrap with c,c++ natively on m68k-linux-gnu. >> Test suite results on par with previous non-LRA bootstrap. >> A previous version also bootstrapped Ada. >> >> Is this Ok for trunk? >> >> gcc/ >> PR target/113939 >> * config/m68k/m68k.opt (mlra): Default to LRA instead of reload. >> >> Failed configuring libgfortran for me. Unfortunately it's all run out of a docker container, so I don't have the actual log files. So all we get out of it is: >> >> libtool.m4: error: problem compiling FC test program >> >> >> >> This worked find without the LRA patch. > That's probably PR120165. I'll take a look. > > (Is there a concept of "primary languages" similar to primary targets? > If so, is Fortran one?) There are such concepts. But this appears to be broken so badly that I can't in good conscience ACK it into the tree. jeff
On Wed, Jan 14, 2026 at 3:29 PM Jeffrey Law <jeffrey.law@oss.qualcomm.com> wrote: > > > > On 1/14/2026 5:09 AM, Mikael Pettersson wrote: > > On Wed, Jan 14, 2026 at 6:04 AM Jeffrey Law > > <jeffrey.law@oss.qualcomm.com> wrote: > >> > >> > >> On 1/11/2026 9:12 AM, Mikael Pettersson wrote: > >> > >> For now you can still switch to reload with -mno-lra. > >> > >> Successful bootstrap with c,c++ natively on m68k-linux-gnu. > >> Test suite results on par with previous non-LRA bootstrap. > >> A previous version also bootstrapped Ada. > >> > >> Is this Ok for trunk? > >> > >> gcc/ > >> PR target/113939 > >> * config/m68k/m68k.opt (mlra): Default to LRA instead of reload. > >> > >> Failed configuring libgfortran for me. Unfortunately it's all run out of a docker container, so I don't have the actual log files. So all we get out of it is: > >> > >> libtool.m4: error: problem compiling FC test program > >> > >> > >> > >> This worked find without the LRA patch. > > That's probably PR120165. I'll take a look. > > > > (Is there a concept of "primary languages" similar to primary targets? > > If so, is Fortran one?) > There are such concepts. But this appears to be broken so badly that I > can't in good conscience ACK it into the tree. We in principle agree to wipe reload for GCC 16 but tis did not materialize (aka nobody did the work). For the principle of keeping a port live it would be fine to break fortran given you can build a cross with its C runtime and do basic testing to re-surrect fortran support from such state. But no, Fortran isn't a "primary" language and m68k isn't a primary or secondary target so primary or secondary (or sth else) status of a language does not matter here anyway. Richard. > > jeff
diff --git a/gcc/config/m68k/m68k.opt b/gcc/config/m68k/m68k.opt index a97fac654d8..e9693ff681b 100644 --- a/gcc/config/m68k/m68k.opt +++ b/gcc/config/m68k/m68k.opt @@ -147,7 +147,7 @@ Target RejectNegative Mask(LONG_JUMP_TABLE_OFFSETS) Use 32-bit offsets in jump tables rather than 16-bit offsets. mlra -Target Var(m68k_lra_p) Undocumented +Target Var(m68k_lra_p) Init(1) Undocumented Use LRA for reload instead of the old reload framework. This option is experimental, and it may be removed in future versions of the compiler.