get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.1/patches/2230239/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2230239,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2230239/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/yddwlxp985h.fsf@CeBiTec.Uni-Bielefeld.DE/",
    "project": {
        "id": 17,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/17/?format=api",
        "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": "<yddwlxp985h.fsf@CeBiTec.Uni-Bielefeld.DE>",
    "date": "2026-04-29T14:02:34",
    "name": "[3/6] build: Remove --with-gnu-as",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "f6fdcf06d760adb139151f1f365e32ddc2013d91",
    "submitter": {
        "id": 4362,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/4362/?format=api",
        "name": "Rainer Orth",
        "email": "ro@CeBiTec.Uni-Bielefeld.DE"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/yddwlxp985h.fsf@CeBiTec.Uni-Bielefeld.DE/mbox/",
    "series": [
        {
            "id": 502070,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/502070/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=502070",
            "date": "2026-04-29T13:59:25",
            "name": "Remove HAVE_GNU_{AS,LD} etc.",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/502070/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2230239/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2230239/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=Ict0MUSa;\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=cebitec.uni-bielefeld.de header.i=@cebitec.uni-bielefeld.de\n header.a=rsa-sha256 header.s=20200306 header.b=Ict0MUSa",
            "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\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 4g5JtK2Tglz1yHZ\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 00:03:21 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 82B7A4BA798F\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 14:03:19 +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 C6F0E4BBCDAB;\n Wed, 29 Apr 2026 14:02:36 +0000 (GMT)",
            "from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1])\n by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id E62AAC04B1;\n Wed, 29 Apr 2026 16:02:35 +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 hZm_Q4Hk_tkS; Wed, 29 Apr 2026 16:02:35 +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 1E34EC1FE4;\n Wed, 29 Apr 2026 16:02:35 +0200 (CEST)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 82B7A4BA798F",
            "OpenDKIM Filter v2.11.0 sourceware.org C6F0E4BBCDAB"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org C6F0E4BBCDAB",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org C6F0E4BBCDAB",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777471357; cv=none;\n b=VCirzek2ZMwJpqkEInLDx2JOEhlz/uuwBuDnuJ8gabHG3bmU2V3dSI8Rd+ttITC4evZsHbvBTfkwC74IZ3FxD/Legix6KIiP5pX0AH/RexPXyqLcrDbmfy8e/ZyG2JuXnV11MPpDdznERHV3EjebLG331qsvBH/mKRByCTlqs+U=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1777471357; c=relaxed/simple;\n bh=IM96VrF/epkxijyfnPfvNle67cANxTvaYbcf7FJnjbs=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=Md/bcm2RAtck5Znaz0+bCkIPBXrH/x6+llNkph5BOb165ZiEd1jIyNA74iaTSB73UW4qBwxSWB+ypzvCjXOHgb69eEwecRIbOw3AGZJTiOY+6OSkomVwUaUI6eLuq5YVv1at+aCXwLeIkzt0OqxzC+EN4jOOXXiLrwfhfTcH+TM=",
        "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:subject:subject\n :from:from:received:received; s=20200306; t=1777471355; bh=IM96V\n rF/epkxijyfnPfvNle67cANxTvaYbcf7FJnjbs=; b=Ict0MUSae7zsjmjXLxDhO\n SuLYUo30XB1yIbDGSD4PMDN7Txj/TYSGNaXQ+byMu3t/sw+wB5S+VY2DmrIPVgV5\n bM2yoUN+D//pdl3vKKpKP7rluc1iRrKYtHITkyTv/P3mhvv7759TQiUzjaxpKw3h\n ci0DuU4Z6o/24ticdaxDa8UyNv0MMt2lNCDgzGIzwFrIX5diodDpHVSV7yYWWULq\n NPxHzcKdKsKgnnM8bUMHYzPh2rXstVZc6stlIR0sReFSaHTbjKM48IYQHRHGiD/7\n 2hZnqaavR4/CyjIbMG6Pdfxsajl17QYqqrLMOWvOes2xrfsd87V0/hGcTwhQxKj2\n Q==",
        "X-Virus-Scanned": "amavisd-new at cebitec.uni-bielefeld.de",
        "From": "Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>",
        "To": "gcc-patches@gcc.gnu.org",
        "Cc": "Alexandre Oliva <aoliva@gcc.gnu.org>, Sandra Loosemore\n <sloosemore@baylibre.com>",
        "Subject": "[PATCH 3/6] build: Remove --with-gnu-as",
        "Date": "Wed, 29 Apr 2026 16:02:34 +0200",
        "Message-ID": "<yddwlxp985h.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": "The removal of HAVE_GNU_AS and the gas variable in config.gcc etc. also\nmakes the --with-gnu-as configure option unnecessary.  This patch\nremoves it together with gas_flag.\n\nThe latter is also used to annotate the DEFAULT_ASSEMBLER message in\nconfigure.ac.  Given that the vast majority of configurations uses gas,\nthis doesn't carry much information and is also removed.\n\nOk for trunk?\n\n\tRainer",
    "diff": "# HG changeset patch\n# Parent  7437e01e841eae7de3ba9d3e63da9738f13630fc\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@@ -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@@ -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 @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@@ -27217,8 +27217,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": [
        "3/6"
    ]
}