[{"id":3687115,"web_url":"http://patchwork.ozlabs.org/comment/3687115/","msgid":"<CAGWvnyk6XcjX5NzCGCoLewb9g-_+2Sw1r6aFgvhGW3=OwmFquQ@mail.gmail.com>","list_archive_url":null,"date":"2026-05-06T14:22:23","subject":"Re: [PATCH -1/6] build: Introduce {as,ld}_flavor","submitter":{"id":4375,"url":"http://patchwork.ozlabs.org/api/people/4375/","name":"David Edelsohn","email":"dje.gcc@gmail.com"},"content":"On Wed, May 6, 2026 at 4:05 AM Rainer Orth <ro@cebitec.uni-bielefeld.de>\nwrote:\n\n> When working to handle more vendor assemblers and linkers for the patch\n> series described in\n>\n>         [PATCH 0/6] Remove HAVE_GNU_{AS,LD} etc.\n>         https://gcc.gnu.org/pipermail/gcc-patches/2026-April/715161.html\n>\n> it turned out that the original plan to follow what I'd done for Solaris\n> so far with the solaris_{as,ld} variables leads to code that is hard to\n> understand.\n>\n> Therefore this patch uses a different approach: it introduces two new\n> variables, as_flavor, and ld_flavor.  They both default to gnu, i.e. the\n> GNU Binutils toolchain or compatible assemblers and linkers.\n>\n> To deal with incompatible vendor toolchains, those variables can take\n> other values.  In addition to solaris, there are aix, darwin, hpux, and\n> nvptx. More could be added as necessary.\n>\n> In preparation for the patch series above, this patch switches existing\n> code from solaris_{as,ld} to {as,ld}_flavor=solaris.\n>\n> It also checks the configured assembler and linker for the vendor\n> toolchains above.  If there's a choice between native and GNU toolchains\n> (AIX, HP-UX, Solaris), the as and ld version outputs are examined.\n> Otherwise (Darwin, NVPTX), the values are hardcoded and only used in\n> configure messages.\n>\n> In addition to {as,ld}_flavor, HAVE_<FLAVOR>_{AS,LD} macros are defined\n> in cases they are actually needed, matching existing HAVE_SOLARIS_{AS,LD}.\n>\n> Tested together with a reworked version of the patch series above on\n> x86_64-pc-linux-gnu, powerpc-ibm-aix7.3.1.0 (as/ld and gas/gld),\n> x86_64-apple-darwin17.7.0, i386-pc-solaris2.11 and sparc-sun-solaris2.11\n> (as/ld, gas/ld, and gas/gld).  Also tested by Dave on HP-UX.\n>\n> For the time being, I've ignored VMS which would also need handling: the\n> support status of VMS support in GCC is completely unknown, AFAIK there\n> are no public build systems and there's no information on the targets in\n> install.texi.\n>\n> Ok for trunk?\n>\n\nOkay.\n\nThanks for adjusting the design.\n\nDavid\n\n\n>\n>         Rainer\n>\n> --\n>\n> -----------------------------------------------------------------------------\n> Rainer Orth, Center for Biotechnology, Bielefeld University\n>\n>\n> 2026-05-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>\n>\n>         gcc:\n>         * acinclude.m4: Check as_flavor, ld_flavor instead of solaris_as,\n>         solaris_ld.\n>         * configure.ac: Likewise.\n>         (as_flavor, ld_flavor): New variables.\n>         Adapt messages.\n>         Set based on as, ld version output.\n>         (HAVE_AIX_AS): Define.\n>         * configure: Regenerate.\n>         * config.in: Regenerate.\n>\n>","headers":{"Return-Path":"<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>","X-Original-To":["incoming@patchwork.ozlabs.org","gcc-patches@gcc.gnu.org"],"Delivered-To":["patchwork-incoming@legolas.ozlabs.org","gcc-patches@gcc.gnu.org"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=cJg45HNv;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=2620:52:6:3111::32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)","sourceware.org;\n\tdkim=pass (2048-bit key,\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=cJg45HNv","sourceware.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com","sourceware.org; spf=pass smtp.mailfrom=gmail.com","sourceware.org;\n arc=pass smtp.remote-ip=2a00:1450:4864:20::436"],"Received":["from vm01.sourceware.org (vm01.sourceware.org\n [IPv6:2620:52:6:3111::32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g9d0W1wbjz1yJV\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 07 May 2026 00:23:39 +1000 (AEST)","from vm01.sourceware.org (localhost [IPv6:::1])\n\tby sourceware.org (Postfix) with ESMTP id 2BD7A4BA7995\n\tfor <incoming@patchwork.ozlabs.org>; Wed,  6 May 2026 14:23:37 +0000 (GMT)","from mail-wr1-x436.google.com (mail-wr1-x436.google.com\n [IPv6:2a00:1450:4864:20::436])\n by sourceware.org (Postfix) with ESMTPS id F3DF24BA23EA\n for <gcc-patches@gcc.gnu.org>; Wed,  6 May 2026 14:22:36 +0000 (GMT)","by mail-wr1-x436.google.com with SMTP id\n ffacd0b85a97d-44dd5cb0f81so655080f8f.0\n for <gcc-patches@gcc.gnu.org>; Wed, 06 May 2026 07:22:36 -0700 (PDT)"],"DKIM-Filter":["OpenDKIM Filter v2.11.0 sourceware.org 2BD7A4BA7995","OpenDKIM Filter v2.11.0 sourceware.org F3DF24BA23EA"],"DMARC-Filter":"OpenDMARC Filter v1.4.2 sourceware.org F3DF24BA23EA","ARC-Filter":"OpenARC Filter v1.0.0 sourceware.org F3DF24BA23EA","ARC-Seal":["i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1778077357; cv=pass;\n b=HD6x7a154+/+l/qxWX6O4QHZB3XMA02YNY5hI/tZSCxig8c23jGXz8ywQcTGrykm1kmhhhOWx3SGsKQ4wTDFzB2+mqBXIiRNN8qDZD6L7okx3488HY+zPSeT9KF+WUly4AiCKFoaou2Fz3sKpZyz5I93FjogcaVVjekxm6mXF5A=","i=1; a=rsa-sha256; t=1778077356; cv=none;\n d=google.com; s=arc-20240605;\n b=bKQFkXBtYg9F48WQg5BDPyqPCnyaDoGhWI0YtWP1K34lYqL0yd9OSf6p42vlsY9rWV\n d+yEjFXvYvJnjJ1vPNIXWIoVQhbIb89xMlqgtypN/JFyQxW5OeadU/MXX1PJJ6c5kkPT\n yYFiyBdgW4x9M4EvDU6u8iSZyZBhWF7ijLHejOgYjKRwJmFmWgDNQ9FtKi1Osr230BuJ\n a6Dd+WODqJ7Xo7H0/eKchIXn6I8jaa5p6UurCHTZ06ZOh4W3jM2GTHTc6zezqk39NyWa\n imZQfKFnXP1CYPbkhAr2EOmD37NEv4nYvjW+86vmxFAL62LkDbkCPMQ4k5qjzsvK3ahY\n oZwQ=="],"ARC-Message-Signature":["i=2; a=rsa-sha256; d=sourceware.org; s=key;\n t=1778077357; c=relaxed/simple;\n bh=7xvg+QIOmFJ/Mmr8fW6LU71IR+W5e1ivaP6DV2PQrX8=;\n h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;\n b=eHwILggJ3ie6JHbl4bStdBwxM7DBp/N/GnYU3bLO01M9atFroiopXUBhVzpg9tZF0eGpAdnTGT1hpY4xnXR5steyG2rpW+M+VNY55/d/XKhnF3t2yTjpHHrxifUFrP763cx+jX6Rj3lcWcuBmPiHhc9iAC89UHoDLeEkWBAS/P8=","i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n h=cc:to:subject:message-id:date:from:in-reply-to:references\n :mime-version:dkim-signature;\n bh=KA4SVOrhhBBy3lJY5+dkJ4naqRLji+ec2mcZvCm6owQ=;\n fh=zmtnUaXyG990fx5a0cBvuS2X2MlxDXn2DEHr6thu+9k=;\n b=A3FmfUG8ggkt6UgOXP2xvm7J71t4GYDvXlTB9tVdY01mwoUKfKvj1Ii3H9SmugD6cE\n I4DDsUb2Y6/P0+t1tFmgIZUJsMmjgsP3osZR+ivFQ2x3n8LThPS25D+Jx3sbH9ul6GhX\n j3ZFO6VgQlMALn//RU1ZqWLbyNm51cUS27EPrU+QmFHEbVzn4qTrfBiY75Qlcsh4jhEk\n WD/sMTYiBVq+G0p/WhnNG3SJUW4pfVLqj/HPCi4gfKpmipQWyYYU58vf8IP85HFWeSMd\n m+kooNN63mKtEWDHlaUb1AwrfudHeZYT4EQi6TvR7yArCtjxju0oyHQaitevqCcCUGw+\n wmjg==; darn=gcc.gnu.org"],"ARC-Authentication-Results":["i=2; sourceware.org;\n dkim=pass (2048-bit key, unprotected)\n header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104\n header.b=cJg45HNv","i=1; mx.google.com; arc=none"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1778077356; x=1778682156; darn=gcc.gnu.org;\n h=cc:to:subject:message-id:date:from:in-reply-to:references\n :mime-version:from:to:cc:subject:date:message-id:reply-to;\n bh=KA4SVOrhhBBy3lJY5+dkJ4naqRLji+ec2mcZvCm6owQ=;\n b=cJg45HNvEf4uVSBv42K1EsL4n4nAUbKVMgkl6cwRcyg2FcUaWk5f33C+6i4n+ZAYTC\n iqIP94rn4PAodSsR11WH/JKdgRu5w82XXPNBsWdyMhkAWvVTFDP8yVJqz99Vo/g3V5Dx\n RlnEwKJzXt3uvpd/UMipao/ktVMXG7Cdv0guLHOrBe8iaXpbQ2Houb0f3HTmSrU3CrVv\n 5T9Bx4zAPrAc7M99cGYcFDcxz+lvV4ZE2uLnxApzcrq3kBWz1z0SYaHCYidFA7Fnoy/9\n 3IXNVzUqBqHvT1z/mk8NzB+DFdFhD+p5m2LueDrfHWcr2bYinAxhEcvKwe5vqByKOM5O\n zN4A==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1778077356; x=1778682156;\n h=cc:to:subject:message-id:date:from:in-reply-to:references\n :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=KA4SVOrhhBBy3lJY5+dkJ4naqRLji+ec2mcZvCm6owQ=;\n b=QdgSipAb56mDaHvd4CVZVqUgeSlYQnaBDrnh/AGid02kRT9vAIFh6hbV0F73OaF3W9\n NS/bLKyYNqjQ89QyVbYcGAAsu+e8DujkIjY7YHpvhrp7TzL7NoA0rqMIzDYZaY9se9P3\n CFmhdOqeEWTgO6W8Y6BAiygvzr0t4R/wCtjbcvbIL7pUixFreCByKp1zHwsxQ5/3vwNX\n nEQts+ZT4RSDcfAgIp2E632vZC9Ay/Y/XHCbGolNRJjGwVEll5g52ZkHFZJSV8OOxM+p\n SXfIBWHl14UJiJHEf4WVkoc9k17H9eoHvk9hCckm1CsrLtDI/ZjWxnBapO4v53+ve9Fl\n urmg==","X-Gm-Message-State":"AOJu0Yxbrx+H2lmr7L8rrxwFHFSs1u7iedj0Flf0gdhecKYS6VjNKRYh\n 6bZSvd2q//u/YCOtH0Wa7HQdJjpDcVzxP2Vo97tXUa6j+ycQ9aCGtenKSwF0/4LqU8UtbIuIsyB\n fAql3ex94Hv4Qj6S4mfbvrh8yP7bHCW0RPg==","X-Gm-Gg":"AeBDiev/bvH2sP0T4IxDIFxhFXUeIt3kJAWTsIg8EwUdcvbOS1zPNwG+VJrp2wvLEGw\n Su+VmXNrpJ0UcfGNo2rdn9FTeZmFq8v9dLO+r8rOhMPMkCRFX8ch/Juhb+39+wSdV4637I6haN0\n CnBRonI0k8Kl3qaA8++NIpAt0cryacAY7yg/NTfcwD4DBmuXe0bqrMWFNqANHcCEA/8JoS68qfY\n qzmzJ/Dp+OffTd8a1oRw44Pyu4N6rPBtlFAAXwu+IwxzR5wjz6UJjTs8QcjHBVbfAlaOCibeP2l\n FvslMUC/JG+92qamjA==","X-Received":"by 2002:a05:6000:2f89:b0:446:708e:1e8d with SMTP id\n ffacd0b85a97d-44fe007e545mr12111019f8f.30.1778077355728; Wed, 06 May 2026\n 07:22:35 -0700 (PDT)","MIME-Version":"1.0","References":"<ydd8q9xq7y5.fsf@CeBiTec.Uni-Bielefeld.DE>","In-Reply-To":"<ydd8q9xq7y5.fsf@CeBiTec.Uni-Bielefeld.DE>","From":"David Edelsohn <dje.gcc@gmail.com>","Date":"Wed, 6 May 2026 10:22:23 -0400","X-Gm-Features":"AVHnY4Km4mFsBKMvBcBS8qZUhmwDyhee90TZv4Kp_VLAuoh46qajTcH6cOpvhKM","Message-ID":"\n <CAGWvnyk6XcjX5NzCGCoLewb9g-_+2Sw1r6aFgvhGW3=OwmFquQ@mail.gmail.com>","Subject":"Re: [PATCH -1/6] build: Introduce {as,ld}_flavor","To":"Rainer Orth <ro@cebitec.uni-bielefeld.de>","Cc":"gcc-patches@gcc.gnu.org, Alexandre Oliva <aoliva@gcc.gnu.org>,\n Iain Sandoe <iain@sandoe.co.uk>, John David Anglin <dave.anglin@bell.net>,\n Thomas Schwinge <tschwinge@baylibre.com>,\n Douglas Rupp <douglas.b.rupp@gmail.com>,\n Tristan Gingold <tgingold@free.fr>","Content-Type":"multipart/alternative; boundary=\"0000000000002be709065126e59f\"","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>,\n <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>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>","Errors-To":"gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org"}}]