[{"id":3687113,"web_url":"http://patchwork.ozlabs.org/comment/3687113/","msgid":"<CAGWvnyk=YbNRP_32xC7WvvRkSCihaQ1vef1wSBM6TOE0_fC=xQ@mail.gmail.com>","list_archive_url":null,"date":"2026-05-06T14:21:45","subject":"Re: [PATCH v2 1/6] Remove HAVE_GNU_AS","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:00 AM Rainer Orth <ro@cebitec.uni-bielefeld.de>\nwrote:\n\n> Hi David,\n>\n> >>> >> * AIX: native as and ld\n> >>> >\n> >>> > AIX supports both native as/ld and GNU as/ld.  GNU ld is more common\n> than\n> >>> > GNU as.\n> >>> > It would have been nice to handle both, like Solaris, but I\n> understand\n> >>> that\n> >>> > supporting both is more\n> >>> > of a hassle.\n> >>>\n> >>> I missed that in the AIX install.texi section.  Maybe it would be good\n> >>> to weed that out a bit.\n> >>>\n> >>> Anyway, handling those cases isn't really hard: just like the\n> >>> solaris_as/solaris_ld handling in gcc/configure.ac, and hpux_ld in\n> the v2\n> >>>\n> >>>         build: Remove $gnu_ld\n> >>>         https://gcc.gnu.org/pipermail/gcc-patches/2026-May/715430.html\n> >>>\n> >>> patch one can just check $gcc_cv_as/$gcc_cv_ld for the output of the\n> >>> native commands, assuming gas/gld otherwise.  Depending on that, one\n> >>> would define AIX_{AS,LD} just like SOLARIS_{AS,LD} and use that to\n> >>> restrict the ASM_V_SPEC redefinition to AIX as.\n> >>>\n> >>> It's quite trivial, actually.  I could give it a try on cfarm119 (AIX\n> >>> 7.3) if you like.\n> >>>\n> >>\n> >> If you can handle both, that would be nicer, but I'm not going to make\n> >> that a requirement for the patch if you don't have time.\n> >\n> > fine.  I'll go ahead with the patch as is for now, but handle the AIX\n> > as/ld as a follow-up.  I have a similar patch for ASM_V_SPEC with gas on\n> > Solaris already done, to be installed after this series is in.\n>\n> this is the revised patch, handling both AIX and Solaris as.  That's the\n> only change relative to v1.\n>\n> So the only part that needs approval is this rs6000/aix.h change.\n>\n> ---------------------------------------------------------------------------\n>\n> This patch removes or replaces the remaining uses of HAVE_GNU_AS:\n>\n> * gcc.cc (asm_options) has a sub-spec to map the gcc -v/-w/-I options to\n>   their assembler equivalents.  It is replaced by ASM_V_SPEC, defaulting\n>   to the gas version.  Non-gas configurations define their own versions.\n>\n> * Darwin has ASM_OPTIONS which is identical to the default ASM_V_SPEC\n>   and can just be removed.\n>\n> * sol2.h currently handles -v in ASM_SPEC_BASE.  This patch moves this\n>   to an Solaris-as only version of ASM_V_SPEC.  This also handles the\n>   gcc -w -> as -n mapping.  The spec doesn't pass on -I, though:\n>   preprocessing .S files is handled by gcc itself, the -I option is only\n>   used for gas' .include directive which as doesn't support.  Solaris as\n>   instead could handle preprocessing by passing the source through cpp\n>   when the -P option is given.  It also uses -D/-U/-I for that.\n>\n> * ia64/hpux.h guards AS_NEEDS_DASH_FOR_PIPED_INPUT with !HAVE_GNU_AS,\n>   but according to install.texi ia64-*-hpux* requires gas so this can\n>   just go.\n>\n> * nvptx/nvptx.h handles the mapping in ASM_SPEC.  This is done in\n>   ASM_V_SPEC now.  The nvptx as has no equivalents of -w and -I.\n>\n> * AIX as only supports -v and -W, so rs6000/aix.h gets a matching\n>   ASM_V_SPEC when as is in use.\n\n\n> Ok for trunk?\n>\n\nOkay.\n\nDavid\n\n\n>\n>         Rainer\n>\n> --\n>\n> -----------------------------------------------------------------------------\n> Rainer Orth, Center for Biotechnology, Bielefeld University\n>\n>\n> 2026-04-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>\n>\n>         gcc:\n>         * gcc.cc (asm_options) [HAVE_GNU_AS]: Move to ...\n>         (ASM_V_SPEC) ... this.\n>         * config/nvptx/nvptx.h (ASM_SPEC): Rename to ASM_V_SPEC.\n>         Adjust comment.\n>         * config/rs6000/aix.h [HAVE_AIX_AS] (ASM_V_SPEC): Define.\n>         * config/sol2.h (ASM_SPEC_BASE): Move -v handling to ...\n>         [HAVE_SOLARIS_AS] (ASM_V_SPEC): ... this.  Also handle -w.\n>         * doc/tm.texi.in (Driver, ASM_V_SPEC): Document.\n>         * doc/tm.texi: Regenerate.\n>\n>         * config/darwin.h (ASM_OPTIONS): Remove.\n>         * config/i386/darwin.h (ASM_SPEC): Remove ASM_OPTIONS.\n>\n>         * config/ia64/hpux.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.\n>\n>         * configure.ac (HAVE_GNU_AS): Remove.\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=IQL/dVsL;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=38.145.34.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=IQL/dVsL","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 [38.145.34.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 4g9czf1dTHz1yJV\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 07 May 2026 00:22:52 +1000 (AEST)","from vm01.sourceware.org (localhost [IPv6:::1])\n\tby sourceware.org (Postfix) with ESMTP id C2ADC4BA23C9\n\tfor <incoming@patchwork.ozlabs.org>; Wed,  6 May 2026 14:22:50 +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 CF4674BA23C9\n for <gcc-patches@gcc.gnu.org>; Wed,  6 May 2026 14:21:59 +0000 (GMT)","by mail-wr1-x436.google.com with SMTP id\n ffacd0b85a97d-44a786a9a35so3630750f8f.3\n for <gcc-patches@gcc.gnu.org>; Wed, 06 May 2026 07:21:59 -0700 (PDT)"],"DKIM-Filter":["OpenDKIM Filter v2.11.0 sourceware.org C2ADC4BA23C9","OpenDKIM Filter v2.11.0 sourceware.org CF4674BA23C9"],"DMARC-Filter":"OpenDMARC Filter v1.4.2 sourceware.org CF4674BA23C9","ARC-Filter":"OpenARC Filter v1.0.0 sourceware.org CF4674BA23C9","ARC-Seal":["i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1778077320; cv=pass;\n b=AgxxlXARZwWFY6SaJ1ooOUHthY0vuQBlatt8NKe4Q/9bWvNO1ui70qAiB5IBR6SYTQZC61CHfllUPabTCXZybYbhdYbKTs0tt76BAXbBhYMzd1v89siWRgPMhiM2EWnhGHSe+ZQINX90fzIkC+GlAYNo6rkegRXTFVGSFOmeSfE=","i=1; a=rsa-sha256; t=1778077319; cv=none;\n d=google.com; s=arc-20240605;\n b=EJ4PIpyCsCvMu01DjbV/UJNNkqMVY9csKGlaGRHL/aW4+nrrd4ELjhPi/qByMb4yuw\n ZRfkYJnSEWIa8Ma2kzims/AFtJNEdxJaSAPg+U8M9/4zb+37P2ZtOAF6uoBxHkdhDkZd\n VXWDzyXgEcch+XJAOa1vDDQ23Rs1WOMn/R2flb98j36ezIQItNE6aBOKYmnUqnssZx7k\n nQUSFIfZDAwOkd3CRClnCQ4hsrIfL06v5w6zY3WhIKWIy3O5qpjhEIv4dxnafwF7kE9j\n UXF3bsxMwC/BBaxHeRIVRrO3TNVutP9xqSV5W/XISCh1E/SYHsoWm2GqH4SXDI2B+0i6\n XfpQ=="],"ARC-Message-Signature":["i=2; a=rsa-sha256; d=sourceware.org; s=key;\n t=1778077320; c=relaxed/simple;\n bh=GO3NKMIIH48YWwme+SbNn7Qv66PjmmxOmu4DpwOUhKU=;\n h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;\n b=DkTFBm+iu+yJLHtCs8ULXOB1R7vbhD/y+Wxznd3oWh9C1PYgWjfwCsqmv8WWJFjYyRWgPrJRV4OoHc2v5fAnpcMeb60HO1tDd0E5xrnSLZtzzy1EQA6S4rSJxwqaUOfmNn42v9tREIdDdlLOPm84OQPLav94Hcp6qtCCwaUoISU=","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=9swgjtKJ9jJA8432gQcO++y2+jnurzVVUk2mbuJmgh0=;\n fh=0rMidICrATg5etiQ1h7G7Dk573Dj1hl1yW3sba0BF+0=;\n b=CPilKLbSl+IP+b1k0jLrDimMYDjTvy1oHOeXIMzT7wwxl8arM/9X1svwVkNehRbhRI\n i+8OtZ+Eod3iBinwhJWp51WNT5Jv7qkGvecEVXXTCSWDdmZaYN+NLIwAP5j4wtSCHgkA\n eUFOv6Xnb/4doYB82hWh/9y+EtZDYHnYFIVxisJKnigZCKFgIF6sZaWS2yJU2aMNZhGB\n 24FR/0dQNvCapBhXgY2l71ELkohuk18z8iVXQXzDKAEfgUOPiNFiw0WNteC//vzP+W0b\n 9FgwtF/8qX98UwYTugEUt6J7eYXUQU9XexRKnevznMfhIKp48UWRW6tD3z8zrvSgbVAU\n neYA==; 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=IQL/dVsL","i=1; mx.google.com; arc=none"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1778077319; x=1778682119; 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=9swgjtKJ9jJA8432gQcO++y2+jnurzVVUk2mbuJmgh0=;\n b=IQL/dVsL8905VHZhJpEJ+TISupyl0Fb9kGXeulOAfL06/weUukvytmoeCKS/Yt5n3p\n s5ohQmcsv8iPFEh4C9XleIrnG+4IZOPL9WDBhAQb036CTrAZ7xJgCThG5NgT2V2BfdiL\n 0tOm5jEO6L+s2/bseZCAygfT1gk8ahtTgJ3ScfSGT6mrSXzonFQM1w45uhg4JpamlDKK\n 5boYbPbIIcnk4pTLm6dS5L2gkUVTeAD+opjZWKKCI8ApgsMHLan62SPwA5WutHCXXbJ5\n 1a3JOELMyPjyow1ZqKIwFzhKAngUXmH5/YI2IUWZiOrMqGBco3mFn5xbpc1ZqTZ780Od\n idlw==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1778077319; x=1778682119;\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=9swgjtKJ9jJA8432gQcO++y2+jnurzVVUk2mbuJmgh0=;\n b=qQkhZmSUVsYLUQFHXc9XmPeDgDlIuxP3srXq/D+aNSDKFyfDgnCasNoMn9FZBMo2t9\n XqHncQeOSQoKCN0qgx+TCfVNpq+YBXCbWYxhdkWyuufVIDgPQ1MXyffZUafZbkJDdGVV\n jIpf+yDrfHif3xbVF0q/p20Zxu8YhysCDlvadLYTHbKtn9yJiXOlRd0gMCuabGnNQgKG\n Vd2pojux59bO7gF1ZPp25CPbThee6HltNtLyzoIMwAVeP3odpcoPwjyt0djENFkzPrus\n a6JqR61HMaKgliEFB1bcEdVaGYC0USLxSPCLimjchs/amEW51GwctkgGZCJhXIjoeWbJ\n VtAQ==","X-Forwarded-Encrypted":"i=1;\n AFNElJ87hNUIn11DJ6hMIu/OU2E7vMXMOhyFtcz/rMuyasbA8JEOKndtikCRyrqtT4WJnfHntjqC3ytJGdPJcw==@gcc.gnu.org","X-Gm-Message-State":"AOJu0Yw0IlicEJXt8DURzsPGEv//PF2F5A4ssFQOqpSLaBQUnrWmWLBC\n K/v1kT0g95Mq3Lf941B53VAFjoFH9lWUhI4rkNiji8fiYvJJoMEJk+2G7X4MfRhJL4xh0aRaE8d\n sVMTUPHDnfQGbgI9EnHbf6ar7CnjZoA8=","X-Gm-Gg":"AeBDietcS0VmFoL0E1/wCvLPY5+6/vlOdBOQ9tZSuzmR5tspdJsNb6QugU1TEuymuFk\n z3GyFAB95rIhhjwh3/h7Bh7YnG6leyFD1EhTkbuZ5jZ7mh5B535rPlSwGUles3DmwfYMlDi+V6z\n /Xd7k3/gUYc32tzHNid3ztW17ZA3/SMx6M01m+J5gOBt24eXQgf684SIZ/gk9kc0PmEiBo9e5LD\n C5ns3ZFtNvlw+Ngd6SYCjyracRJ2qX4anPSCu09CaNWmfT5Vfz27lGh+SyQoAU90GixGc4vjv2K\n zqqXvnCYX3nvgvIuvI7Ve5EhI6/H","X-Received":"by 2002:a05:6000:1281:b0:451:c239:d3a2 with SMTP id\n ffacd0b85a97d-451c239d401mr3018881f8f.3.1778077318240; Wed, 06 May 2026\n 07:21:58 -0700 (PDT)","MIME-Version":"1.0","References":"<yddmryj5z2j.fsf@CeBiTec.Uni-Bielefeld.DE>\n <BDC664D1-DDB2-463B-918B-10A571418DEF@suse.de>\n <CAGWvny=P6gUrsjTsgp6zPhkKZv17ou-ZM5Pm0rg+Pud1ZARw=w@mail.gmail.com>\n <yddse8b2ca0.fsf@CeBiTec.Uni-Bielefeld.DE>\n <CAGWvny=vGjDXNOtdMzV58gGLXmyu-oxJQZ5348NL6tZv3SMzmA@mail.gmail.com>\n <yddo6iz2bg2.fsf@CeBiTec.Uni-Bielefeld.DE>\n <yddecjpq86p.fsf_-_@CeBiTec.Uni-Bielefeld.DE>","In-Reply-To":"<yddecjpq86p.fsf_-_@CeBiTec.Uni-Bielefeld.DE>","From":"David Edelsohn <dje.gcc@gmail.com>","Date":"Wed, 6 May 2026 10:21:45 -0400","X-Gm-Features":"AVHnY4LBz8lNHIiB1c_TArtLEZ9C3uJoDm0rFzf1_k9nVBO1EbOB--EouGCFwaY","Message-ID":"\n <CAGWvnyk=YbNRP_32xC7WvvRkSCihaQ1vef1wSBM6TOE0_fC=xQ@mail.gmail.com>","Subject":"Re: [PATCH v2 1/6] Remove HAVE_GNU_AS","To":"Rainer Orth <ro@cebitec.uni-bielefeld.de>","Cc":"Richard Biener <rguenther@suse.de>, Alexandre Oliva <oliva@gnu.org>,\n gcc-patches@gcc.gnu.org,\n Iain Sandoe <iain@sandoe.co.uk>, John David Anglin <dave.anglin@bell.net>,\n Thomas Schwinge <tschwinge@baylibre.com>, Jakub Jelinek <jakub@redhat.com>","Content-Type":"multipart/alternative; boundary=\"000000000000efdf73065126e27d\"","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"}}]