{"id":2231885,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2231885/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/patch/yddh5or5hwf.fsf_-_@CeBiTec.Uni-Bielefeld.DE/","project":{"id":17,"url":"http://patchwork.ozlabs.org/api/1.1/projects/17/?format=json","name":"GNU Compiler Collection","link_name":"gcc","list_id":"gcc-patches.gcc.gnu.org","list_email":"gcc-patches@gcc.gnu.org","web_url":null,"scm_url":null,"webscm_url":null},"msgid":"<yddh5or5hwf.fsf_-_@CeBiTec.Uni-Bielefeld.DE>","date":"2026-05-01T14:22:24","name":"[v2,3/6] build: Remove --with-gnu-as","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"2457bacf8e70dc503612d9e8df8a31d3acddcb62","submitter":{"id":4362,"url":"http://patchwork.ozlabs.org/api/1.1/people/4362/?format=json","name":"Rainer Orth","email":"ro@CeBiTec.Uni-Bielefeld.DE"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/gcc/patch/yddh5or5hwf.fsf_-_@CeBiTec.Uni-Bielefeld.DE/mbox/","series":[{"id":502464,"url":"http://patchwork.ozlabs.org/api/1.1/series/502464/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/list/?series=502464","date":"2026-05-01T14:22:24","name":null,"version":2,"mbox":"http://patchwork.ozlabs.org/series/502464/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2231885/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2231885/checks/","tags":{},"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=cebitec.uni-bielefeld.de header.i=@cebitec.uni-bielefeld.de\n header.a=rsa-sha256 header.s=20200306 header.b=A/gitJR/;\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=cebitec.uni-bielefeld.de header.i=@cebitec.uni-bielefeld.de\n header.a=rsa-sha256 header.s=20200306 header.b=A/gitJR/","sourceware.org; dmarc=none (p=none dis=none)\n header.from=CeBiTec.Uni-Bielefeld.DE","sourceware.org;\n spf=pass smtp.mailfrom=cebitec.uni-bielefeld.de","server2.sourceware.org;\n arc=none smtp.remote-ip=129.70.160.84"],"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 4g6YD54rcRz1y04\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 02 May 2026 00:23:00 +1000 (AEST)","from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 3046C4374200\n\tfor <incoming@patchwork.ozlabs.org>; Fri,  1 May 2026 14:22:58 +0000 (GMT)","from smtp.CeBiTec.Uni-Bielefeld.DE (smtp.CeBiTec.Uni-Bielefeld.DE\n [129.70.160.84])\n by sourceware.org (Postfix) with ESMTPS id C108F4AA6FFC\n for <gcc-patches@gcc.gnu.org>; Fri,  1 May 2026 14:22:27 +0000 (GMT)","from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1])\n by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 9A4EEC7D77;\n Fri,  1 May 2026 16:22:26 +0200 (CEST)","from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1])\n by localhost (smtp.cebitec.uni-bielefeld.de [127.0.0.1]) (amavisd-new,\n port 10026)\n with ESMTP id wd0Ta-mOpqse; Fri,  1 May 2026 16:22:25 +0200 (CEST)","from manam.CeBiTec.Uni-Bielefeld.DE (p508551ea.dip0.t-ipconnect.de\n [80.133.81.234]) (Authenticated sender: ro)\n by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPSA id 5EC5DC7CD7;\n Fri,  1 May 2026 16:22:25 +0200 (CEST)"],"DKIM-Filter":["OpenDKIM Filter v2.11.0 sourceware.org 3046C4374200","OpenDKIM Filter v2.11.0 sourceware.org C108F4AA6FFC"],"DMARC-Filter":"OpenDMARC Filter v1.4.2 sourceware.org C108F4AA6FFC","ARC-Filter":"OpenARC Filter v1.0.0 sourceware.org C108F4AA6FFC","ARC-Seal":"i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777645348; cv=none;\n b=NIDauBAqcPuiLO1lZ2kFNaXhE3onJzVfwNDZpY8yNeRsO0at+bZOGQ/cmz72tfyQVzIBsT9LLNVhe7wOR9YCPSlozqAL4ZT5D6dqkEiRmiNF4eQ11yfQGjtv/ezXd2pG3eyuG8u7HZYo2sF0LhA4UhoH7oPIHG9cBQSNiEpQkGQ=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1777645348; c=relaxed/simple;\n bh=VrMt+F1CTsSwcbn4gF6ssQbLhIOwQ5pvNECI2IuiHaA=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=BvVwl4L9u1xZiv8E0sYbhvIu7pGIk5lN+dzrxHMKubwDqRz0OMVX6ttjpXZ3zpog8XjtiMklqhM70EUGBqIsigM9x7wWXt1q8gGvJamqKuZ30899gNfDWrI6LLQA561tzWkFFsGByzwa6AEjFnZM9O01AOZSvVGKRWRYNkVhRsw=","ARC-Authentication-Results":"i=1; server2.sourceware.org","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=\n cebitec.uni-bielefeld.de; h=content-type:content-type\n :mime-version:user-agent:message-id:date:date:references\n :in-reply-to:subject:subject:from:from:received:received; s=\n 20200306; t=1777645345; bh=VrMt+F1CTsSwcbn4gF6ssQbLhIOwQ5pvNECI2\n IuiHaA=; b=A/gitJR/BiZMerzmj09Zju3echazAFKzngfGuXJKsNdyQ9QtU1iE7\n Q5VAG3G/91rV2BykoeSAJfartbc5kV/sNwySWvGu6cnvlCUQxnmLJA6yAYmSeCSu\n JTIqzxOf6Qx6LcLwOXZWN5YV1xzhPsnI1LPq4c7ss7EJbf17v+nrowjsXFobAekP\n ldvTnSLiYwrGz4NQ0vrVd6amVGFCjr4GvG7Cl5Fcdl6M7HxEwW2HlyyV1rlNeRFU\n diN6QttA7+eV2svyh4vcnoYDVv/a+yFfKB2wvQ4U/lX774ZtREumlnWCiQpkHl0v\n GU/XDgfWSL5YALitejVCfXlBmxX6ukeaA==","X-Virus-Scanned":"amavisd-new at cebitec.uni-bielefeld.de","From":"Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>","To":"Alexandre Oliva <oliva@gnu.org>","Cc":"gcc-patches@gcc.gnu.org,  Sandra Loosemore <sloosemore@baylibre.com>","Subject":"[PATCH v2 3/6] build: Remove --with-gnu-as","In-Reply-To":"<orse8djf1h.fsf@lxoliva.fsfla.org> (Alexandre Oliva's message of\n \"Thu, 30 Apr 2026 00:35:54 -0300\")","References":"<yddwlxp985h.fsf@CeBiTec.Uni-Bielefeld.DE>\n <orse8djf1h.fsf@lxoliva.fsfla.org>","Date":"Fri, 01 May 2026 16:22:24 +0200","Message-ID":"<yddh5or5hwf.fsf_-_@CeBiTec.Uni-Bielefeld.DE>","User-Agent":"Gnus/5.13 (Gnus v5.13)","MIME-Version":"1.0","Content-Type":"multipart/mixed; boundary=\"=-=-=\"","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"},"content":"Hi Alex,\n\n> On Apr 29, 2026, Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> wrote:\n>\n>> \tgcc:\n>> \t* configure.ac: Remove --with-gnu-as, gas_flag.\n>> \t* configure: Regenerate.\n>> \t* config.gcc: Remove gas_flag.\n>\n> These look good,\n>\n>> \tcontrib:\n>> \t* config-list.mk (sparc64-sun-solaris2.11): Remove --with-gnu-as.\n>> \t* regression/btest-gcc.sh (withopt): Likewise.\n>\n>> \t* doc/invoke.texi (IA-64 Options, -mgnu-as): Remove comment.\n>\n> (reordered) and so do these.\n>\n>> \t* doc/install.texi (Configuration, --with-gnu-as): Remove.\n>> \t(Specific, hppa64-hp-hpux11*): Remove --with-gnu-as reference.\n>> \t(Specific, ia64-*-hpux*): Likewise.\n>\n> But these, I'd tweak a little, see below.\n>\n>\n>> @@ -4347,10 +4327,6 @@ for 32-bit @samp{hppa} was discontinued \n>  \n>>  We require using gas on all hppa platforms.\n>  \n>> -It may be helpful to configure GCC with the\n>> -@uref{./configure.html#with-gnu-as,,@option{--with-gnu-as}} and\n>> -@option{--with-as=@dots{}} options to ensure that GCC can find GAS@.\n>> -\n>>  Only the HP linker is supported.  Thus, it is best to explicitly\n>>  configure the target with the @option{--with-ld=@dots{}} option.\n>  \n> I think we should keep the recommendation of --with-as.\n>\n>> @@ -4399,8 +4375,7 @@ later.\n>>  @anchor{ia64-x-hpux}\n>>  @heading ia64-*-hpux*\n>>  Building GCC on this target requires the GNU Assembler.  The bundled HP\n>> -assembler will not work.  To prevent GCC from using the wrong assembler,\n>> -the option @option{--with-gnu-as} may be necessary.\n>> +assembler will not work.\n>  \n> And here I'd recommend --with-as instead.\n\nThis v2 should address all comments.\n\nThanks.\n\tRainer","diff":"# HG changeset patch\n# Parent  002345eaba3a50379586fbb64cc621f333e6c68d\nbuild: Remove --with-gnu-as\n\ndiff --git a/contrib/config-list.mk b/contrib/config-list.mk\n--- a/contrib/config-list.mk\n+++ b/contrib/config-list.mk\n@@ -99,7 +99,7 @@ LIST = \\\n   sh-rtems sh-wrs-vxworks sparc-elf \\\n   sparc-leon-elf sparc-rtems sparc-linux-gnu \\\n   sparc-leon3-linux-gnuOPT-enable-target=all sparc-netbsdelf \\\n-  sparc64-sun-solaris2.11OPT-with-gnu-ldOPT-with-gnu-asOPT-enable-threads=posix \\\n+  sparc64-sun-solaris2.11OPT-with-gnu-ldOPT-enable-threads=posix \\\n   sparc-wrs-vxworks sparc64-elf sparc64-rtems sparc64-linux \\\n   sparc64-netbsd sparc64-openbsd \\\n   v850e1-elf v850e-elf v850-elf v850-rtems vax-linux-gnu \\\ndiff --git a/contrib/regression/btest-gcc.sh b/contrib/regression/btest-gcc.sh\n--- a/contrib/regression/btest-gcc.sh\n+++ b/contrib/regression/btest-gcc.sh\n@@ -138,7 +138,7 @@ if [ $H_HOST = $H_TARGET ] ; then\n     make $dashj all || exit 1\n   fi\n else\n-  withopt=\"--with-gnu-ld --with-gnu-as\"\n+  withopt=\"--with-gnu-ld\"\n   case \"$H_TARGET\" in\n     *-linux*) ;;\n     *) withopt=\"$withopt --with-newlib\";;\ndiff --git a/gcc/config.gcc b/gcc/config.gcc\n--- a/gcc/config.gcc\n+++ b/gcc/config.gcc\n@@ -55,10 +55,6 @@\n #\t\t\t$default_gnu_indirect_function is set to\n #\t\t\t\"no\" except for targets which are known to be OK.\n #\n-#  gas_flag\t\tOne of yes, no or \"\" depending on whether GNU as was\n-#\t\t\texplicitly requested, explicitly not requested or\n-#\t\t\tunspecified.\n-#\n #  gnu_ld_flag\t\tOne of yes, no or \"\" depending on whether GNU ld was\n #\t\t\texplicitly requested, explicitly not requested or\n #\t\t\tunspecified.\ndiff --git a/gcc/configure b/gcc/configure\n--- a/gcc/configure\n+++ b/gcc/configure\n@@ -975,7 +975,6 @@ with_gnu_ld\n with_ld\n with_demangler_in_ld\n with_dsymutil\n-with_gnu_as\n with_as\n with_windres\n enable_largefile\n@@ -1875,7 +1874,6 @@ Optional Packages:\n   --with-demangler-in-ld  try to use demangler in GNU ld\n   --with-dsymutil         arrange to use the specified dsymutil (full\n                           pathname)\n-  --with-gnu-as           arrange to work with GNU as\n   --with-as               arrange to use the specified as (full pathname)\n   --with-windres          arrange to use the specified windres (full pathname)\n   --with-stack-clash-protection-guard-size=size\n@@ -4033,16 +4031,6 @@ fi\n # Find default assembler\n # ----------------------\n \n-# With GNU as\n-\n-# Check whether --with-gnu-as was given.\n-if test \"${with_gnu_as+set}\" = set; then :\n-  withval=$with_gnu_as; gas_flag=\"$with_gnu_as\"\n-else\n-  gas_flag=\n-fi\n-\n-\n \n # Check whether --with-as was given.\n if test \"${with_as+set}\" = set; then :\n@@ -4052,8 +4040,6 @@ fi\n if test x\"${DEFAULT_ASSEMBLER+set}\" = x\"set\"; then\n   if test ! -x \"$DEFAULT_ASSEMBLER\"; then\n     as_fn_error $? \"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER\" \"$LINENO\" 5\n-  elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then\n-    gas_flag=yes\n   fi\n \n cat >>confdefs.h <<_ACEOF\n@@ -4065,13 +4051,8 @@ fi\n { $as_echo \"$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified\" >&5\n $as_echo_n \"checking whether a default assembler was specified... \" >&6; }\n if test x\"${DEFAULT_ASSEMBLER+set}\" = x\"set\"; then\n-  if test x\"$gas_flag\" != x\"yes\"; then\n-    { $as_echo \"$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)\" >&5\n+  { $as_echo \"$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)\" >&5\n $as_echo \"yes ($DEFAULT_ASSEMBLER)\" >&6; }\n-  else\n-    { $as_echo \"$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)\" >&5\n-$as_echo \"yes ($DEFAULT_ASSEMBLER - GNU as)\" >&6; }\n-  fi\n else\n   { $as_echo \"$as_me:${as_lineno-$LINENO}: result: no\" >&5\n $as_echo \"no\" >&6; }\n@@ -21968,7 +21949,7 @@ else\n   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2\n   lt_status=$lt_dlunknown\n   cat > conftest.$ac_ext <<_LT_EOF\n-#line 21978 \"configure\"\n+#line 21952 \"configure\"\n #include \"confdefs.h\"\n \n #if HAVE_DLFCN_H\n@@ -22074,7 +22055,7 @@ else\n   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2\n   lt_status=$lt_dlunknown\n   cat > conftest.$ac_ext <<_LT_EOF\n-#line 22084 \"configure\"\n+#line 22058 \"configure\"\n #include \"confdefs.h\"\n \n #if HAVE_DLFCN_H\ndiff --git a/gcc/configure.ac b/gcc/configure.ac\n--- a/gcc/configure.ac\n+++ b/gcc/configure.ac\n@@ -411,20 +411,12 @@ fi\n # Find default assembler\n # ----------------------\n \n-# With GNU as\n-AC_ARG_WITH(gnu-as,\n-[AS_HELP_STRING([--with-gnu-as], [arrange to work with GNU as])],\n-gas_flag=\"$with_gnu_as\",\n-gas_flag=)\n-\n AC_ARG_WITH(as,\n [AS_HELP_STRING([--with-as], [arrange to use the specified as (full pathname)])],\n DEFAULT_ASSEMBLER=\"$with_as\")\n if test x\"${DEFAULT_ASSEMBLER+set}\" = x\"set\"; then\n   if test ! -x \"$DEFAULT_ASSEMBLER\"; then\n     AC_MSG_ERROR([cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER])\n-  elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then\n-    gas_flag=yes\n   fi\n   AC_DEFINE_UNQUOTED(DEFAULT_ASSEMBLER,\"$DEFAULT_ASSEMBLER\",\n \t[Define to enable the use of a default assembler.])\n@@ -432,11 +424,7 @@ fi\n \n AC_MSG_CHECKING([whether a default assembler was specified])\n if test x\"${DEFAULT_ASSEMBLER+set}\" = x\"set\"; then\n-  if test x\"$gas_flag\" != x\"yes\"; then\n-    AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])\n-  else\n-    AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)])\n-  fi\n+  AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])\n else\n   AC_MSG_RESULT(no)\n fi\ndiff --git a/gcc/doc/install.texi b/gcc/doc/install.texi\n--- a/gcc/doc/install.texi\n+++ b/gcc/doc/install.texi\n@@ -1175,26 +1175,6 @@ Specify that the @emph{host} executables\n symbols when the executables are started, and that in turn allows RELRO to\n mark the GOT read-only, resulting in better security.\n \n-@item @anchor{with-gnu-as}--with-gnu-as\n-Specify that the compiler should assume that the\n-assembler it finds is the GNU assembler.  However, this does not modify\n-the rules to find an assembler and will result in confusion if the\n-assembler found is not actually the GNU assembler.  (Confusion may also\n-result if the compiler finds the GNU assembler but has not been\n-configured with @option{--with-gnu-as}.)  If you have more than one\n-assembler installed on your system, you may want to use this option in\n-connection with @option{--with-as=@var{pathname}} or\n-@option{--with-build-time-tools=@var{pathname}}.\n-\n-The following systems are the only ones where it makes a difference\n-whether you use the GNU assembler.  On any other system,\n-@option{--with-gnu-as} has no effect.\n-\n-@itemize @bullet\n-@item @samp{hppa*-@var{any}-@var{any}}\n-@item @samp{*-*-solaris2.11}\n-@end itemize\n-\n @item @anchor{with-as}--with-as=@var{pathname}\n Specify that the compiler should use the assembler pointed to by\n @var{pathname}, rather than the one found by the standard rules to find\n@@ -4345,11 +4325,9 @@ Renesas H8/300 series of processors.\n Only the 64-bit @samp{hppa} target is supported on HP-UX.  Support\n for 32-bit @samp{hppa} was discontinued in GCC 13.\n \n-We require using gas on all hppa platforms.\n-\n-It may be helpful to configure GCC with the\n-@uref{./configure.html#with-gnu-as,,@option{--with-gnu-as}} and\n-@option{--with-as=@dots{}} options to ensure that GCC can find GAS@.\n+We require using gas on all hppa platforms.  It may be helpful to\n+configure GCC with the @option{--with-as=@dots{}} option to ensure\n+that GCC can find GAS@.\n \n The DCE thread library is not supported, so @option{--enable-threads=dce}\n does not work.\n@@ -4396,8 +4374,9 @@ later.\n @anchor{ia64-x-hpux}\n @heading ia64-*-hpux*\n Building GCC on this target requires the GNU Assembler.  The bundled HP\n-assembler will not work.  To prevent GCC from using the wrong assembler,\n-the option @option{--with-gnu-as} may be necessary.\n+assembler will not work.  It may be helpful to configure GCC with\n+the @option{--with-as=@dots{}} option to ensure that GCC can find\n+GAS@.\n \n @html\n <hr />\ndiff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi\n--- a/gcc/doc/invoke.texi\n+++ b/gcc/doc/invoke.texi\n@@ -27283,8 +27283,6 @@ and GNU/Linux.\n @item -mgnu-as\n @itemx -mno-gnu-as\n Generate (or don't) code for the GNU assembler.  This is the default.\n-@c Also, this is the default if the configure option @option{--with-gnu-as}\n-@c is used.\n \n @opindex mgnu-ld\n @opindex mno-gnu-ld\n","prefixes":["v2","3/6"]}