| Message ID | aWIQNPl_-SQUgscs@tucnak |
|---|---|
| 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 2F2934BA2E1E for <patchwork@sourceware.org>; Sat, 10 Jan 2026 08:40:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2F2934BA2E1E Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=PWX/+hvy X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id A12F84BA2E07 for <gcc-patches@gcc.gnu.org>; Sat, 10 Jan 2026 08:39:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A12F84BA2E07 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A12F84BA2E07 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1768034369; cv=none; b=LIxOUQJ7HmztlPgpjDRLKl48EJAYBpnWxM+jerNVOz0cQ9DXQ8L+/Yw7kjH3puc4RpQmW7dlTz8SInad2DXmPiPFn0ZcH16W6+iDSMkADiWIFdTfIiRA45VqFfPJmz/M8IbrYwllZRA553utN9lPauBsImcfPnYVRnoQaGyZnGo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1768034369; c=relaxed/simple; bh=D/SFeeOuVWjFN4a+8OUm+2OztBFys5kw1+0DK+GIh4U=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=eClVlZLzYCSVuvCFxnUNdJW1bYhlQTDj/KbMlmmOP88Egs1fLnNhr8F4vlXHI9LrGaIL1RwxU90rOfwmUygfm9GV9nU5tLxExIA6ZwPUfYiJYKvkjdS+6dATG611oDFCWcdEaugkwKKjPUj/87NblcfifhOS6ucqh1qKM5qSmTc= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A12F84BA2E07 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1768034369; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type; bh=x4dHAOfVorYkcYouOsZe2NggwDcURcUoGyOOpuSGK28=; b=PWX/+hvypuuFK07/rojvpIbcXfaCNqzBqk0n9TwDgCEoCI7Cq827suAYKSICM713Q+OP68 fw4tiD6bnmUEuzuOCqmFn76X7vne7w89kS8K7igT9JmMAY6h+JNAlRYc140JY7Sl0n+8ZS HhkUl7qVee6sEIF48lS6o1+tFSfiCdE= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-512-LB48681bMVGiLqZCegzpUw-1; Sat, 10 Jan 2026 03:39:22 -0500 X-MC-Unique: LB48681bMVGiLqZCegzpUw-1 X-Mimecast-MFC-AGG-ID: LB48681bMVGiLqZCegzpUw_1768034361 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 9687219560A3; Sat, 10 Jan 2026 08:39:20 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.44.32.27]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id C6A111956048; Sat, 10 Jan 2026 08:39:19 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.18.1/8.18.1) with ESMTPS id 60A8dGPV3647556 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Sat, 10 Jan 2026 09:39:17 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.18.1/8.18.1/Submit) id 60A8dGiN3647555; Sat, 10 Jan 2026 09:39:16 +0100 Date: Sat, 10 Jan 2026 09:39:16 +0100 From: Jakub Jelinek <jakub@redhat.com> To: Aleksandar Rakic <aleksandar.rakic@htecgroup.com>, Jeff Law <jeffreyalaw@gmail.com>, Richard Biener <rguenther@suse.de>, Eric Botcazou <ebotcazou@libertysurf.fr> Cc: gcc-patches@gcc.gnu.org Subject: [PATCH] toplevel: Unbreak Ada build [PR123490] Message-ID: <aWIQNPl_-SQUgscs@tucnak> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: zD1YS35o7YNwKlx6LMNyVV8Ola6h7DsB1N2RKDuZ3b8_1768034361 X-Mimecast-Originator: redhat.com Content-Type: multipart/mixed; boundary="eTmvdWVre9hdULXN" Content-Disposition: inline X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED, SPF_HELO_PASS, SPF_NONE, TXREP, URIBL_BLOCKED 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> Reply-To: Jakub Jelinek <jakub@redhat.com> Errors-To: gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org |
| Series |
toplevel: Unbreak Ada build [PR123490]
|
|
Commit Message
Jakub Jelinek
Jan. 10, 2026, 8:39 a.m. UTC
Hi! As written earlier, the config-ml.in change from the --with-multi-buildlist patch broke build of Ada, Ada uses RTSDIR = rts$(subst /,_,$(MULTISUBDIR)) and expects that the primary multilib will result in rts rather than rts_. it results in after the --with-multi-buildlist changes. The following patch fixes it by restoring previous behavior for ml_subdir / MULTISUBDIR such that for primary multilib it is still empty rather than /. Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? Another possibility would be the attached untested patch. 2026-01-10 Jakub Jelinek <jakub@redhat.com> PR ada/123490 * config-ml.in: Restore ml_subdir being empty instead of /. for the primary multilib. Jakub --- gcc/ada/Makefile.in.jj 2026-01-09 22:20:06.232570746 +0100 +++ gcc/ada/Makefile.in 2026-01-10 09:37:44.588334213 +0100 @@ -196,7 +196,11 @@ GNAT_SRC=$(fsrcpfx)ada # Multilib handling MULTISUBDIR = +ifeq ($(MULTISUBDIR),/.) +RTSDIR = rts +else RTSDIR = rts$(subst /,_,$(MULTISUBDIR)) +fi # Link flags used to build gnat tools. By default we prefer to statically # link with libgcc to avoid a dependency on shared libgcc (which is tricky
Comments
> Am 10.01.2026 um 09:40 schrieb Jakub Jelinek <jakub@redhat.com>: > > Hi! > > As written earlier, the config-ml.in change from the > --with-multi-buildlist patch broke build of Ada, Ada uses > RTSDIR = rts$(subst /,_,$(MULTISUBDIR)) > and expects that the primary multilib will result in rts > rather than rts_. it results in after the --with-multi-buildlist > changes. > > The following patch fixes it by restoring previous behavior for > ml_subdir / MULTISUBDIR such that for primary multilib it is > still empty rather than /. > > Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? Ok Richard > Another possibility would be the attached untested patch. > > 2026-01-10 Jakub Jelinek <jakub@redhat.com> > > PR ada/123490 > * config-ml.in: Restore ml_subdir being empty instead of /. > for the primary multilib. > > --- config-ml.in.jj 2026-01-09 12:06:40.247967156 +0100 > +++ config-ml.in 2026-01-09 22:15:02.891647668 +0100 > @@ -615,7 +615,11 @@ fi > > if [ -z "${with_multisubdir}" ]; then > ml_top_subdir=`${CC-gcc} --print-multi-directory 2>/dev/null` > - ml_subdir=/$ml_top_subdir > + if [ "$ml_top_subdir" = . ]; then > + ml_subdir= > + else > + ml_subdir=/$ml_top_subdir > + fi > ml_builddotdot= > : # ml_srcdotdot= # already set > else > > Jakub > <X>
--- config-ml.in.jj 2026-01-09 12:06:40.247967156 +0100 +++ config-ml.in 2026-01-09 22:15:02.891647668 +0100 @@ -615,7 +615,11 @@ fi if [ -z "${with_multisubdir}" ]; then ml_top_subdir=`${CC-gcc} --print-multi-directory 2>/dev/null` - ml_subdir=/$ml_top_subdir + if [ "$ml_top_subdir" = . ]; then + ml_subdir= + else + ml_subdir=/$ml_top_subdir + fi ml_builddotdot= : # ml_srcdotdot= # already set else