get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2233384,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2233384/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/ydd4iklq7sr.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": "<ydd4iklq7sr.fsf_-_@CeBiTec.Uni-Bielefeld.DE>",
    "date": "2026-05-06T08:08:36",
    "name": "[v2,2/6] build: Remove $gas",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "eec1a7e889fc8249fb66775fe74712405ad136bd",
    "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/ydd4iklq7sr.fsf_-_@CeBiTec.Uni-Bielefeld.DE/mbox/",
    "series": [
        {
            "id": 502953,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/502953/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=502953",
            "date": "2026-05-06T08:00:14",
            "name": "[v2,1/6] Remove HAVE_GNU_AS",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/502953/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2233384/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2233384/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=aoOxJ+VW;\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=aoOxJ+VW",
            "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",
            "sourceware.org; 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 4g9Wwx3gzcz1yJV\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 06 May 2026 20:35:13 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [IPv6:::1])\n\tby sourceware.org (Postfix) with ESMTP id 595244BA901D\n\tfor <incoming@patchwork.ozlabs.org>; Wed,  6 May 2026 10:35:11 +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 D572B4BA7981\n for <gcc-patches@gcc.gnu.org>; Wed,  6 May 2026 08:08:42 +0000 (GMT)",
            "from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1])\n by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id C8040E3881;\n Wed,  6 May 2026 10:08:41 +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 FzfsfyJN-f1t; Wed,  6 May 2026 10:08:37 +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 14631E361F;\n Wed,  6 May 2026 10:08:37 +0200 (CEST)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 595244BA901D",
            "OpenDKIM Filter v2.11.0 sourceware.org D572B4BA7981"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org D572B4BA7981",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org D572B4BA7981",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1778054923; cv=none;\n b=rvv4SSO8UobG442tHpYIfv/CzdQcNlXjKRyPT3ZP8YfcMTWMubzANw4WL3Qzc75GrNOyLm1xmIykxFl+d1GOr45Vz5XOZYnocIyTLQm39BnDXGvL9zVCDw/FfBmU/OkWHZlT0RQhdmXeAo6ONChfjXTICh5tX0NsWihgHRRKytc=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1778054923; c=relaxed/simple;\n bh=MIVDm13liu3cBH2PemX16vCmWE3sa2XF/nt+p6PXagA=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=C44KlaWpTpf+g0THBh/QN7WRn3wcloyZKv3aPcS/4JiZPpqX/r7J8CbxOuIG25li0mcc6oUHoiMYsV2iL/N3u2DmAM+XbVfPOpHVXjBWZTfXGex+bSognGt/7D8H3kaD2RjaCVP4Tp3y2lN8r2Je/jqMswKfgbspvBLT+ZqOzks=",
        "ARC-Authentication-Results": "i=1; sourceware.org;\n dkim=pass (2048-bit key, unprotected)\n header.d=cebitec.uni-bielefeld.de header.i=@cebitec.uni-bielefeld.de\n header.a=rsa-sha256 header.s=20200306 header.b=aoOxJ+VW",
        "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=1778054917; bh=MIVDm13liu3cBH2PemX16vCmWE3sa2XF/nt+p\n 6PXagA=; b=aoOxJ+VWaUe4/mEGKpzuPFYQhqgn+zShC+pvQgivBjATTb4QppxuU\n Gk2a5OChDMNXjA2bT6Rv1iCY+4VQfDaIdH6QXGBLVDFYYzsWAwcw7YOyADGvH7Dl\n XZBSWSGv8NDdPLbhRTDV7dfcH+I01l7zkKxH+pQxCVgkykVMoD4es2Sge60/n9vP\n pe6lf1Xvg5XV1yc/ZH56ISzOzek1DntIqIdT9I9btlJWS/pKdCqHj1xW9AUEdH0E\n 2AVTMuPba/zlBcmuuJIt/3U3nrEe8+zUo3E0BXDcuTru1v5Sfh/9wzX6ZVXNNcxi\n EwxAQuqvLwPCG7RgRf1UKupOwSmLqkeyQ==",
        "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,  Douglas Rupp <douglas.b.rupp@gmail.com>,\n Tristan Gingold <tgingold@free.fr>",
        "Subject": "[PATCH v2 2/6] build: Remove $gas",
        "In-Reply-To": "<orwlxpjfes.fsf@lxoliva.fsfla.org> (Alexandre Oliva's message of\n \"Thu, 30 Apr 2026 00:27:55 -0300\")",
        "References": "<ydd340damrm.fsf@CeBiTec.Uni-Bielefeld.DE>\n <orwlxpjfes.fsf@lxoliva.fsfla.org>",
        "Date": "Wed, 06 May 2026 10:08:36 +0200",
        "Message-ID": "<ydd4iklq7sr.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>> * The check in configure.ac to require gas on mips*-*-*, loongarch*-*,\n>>   and *-*-hpux* can be done unconditionally.\n>\n> This makes me a little worried that we will error out in cases we didn't\n> because the targets set gas=yes as a given.  No biggie, one can always\n> use a configure flag to work around that, but it makes me wonder if\n> dropping that prior knowledge is really desirable.\n>\n> No objections, though.\n>\n>> \tgcc:\n>> \t* config.gcc <ia64*-*-elf*> (target_cpu_defaults): Always add\n>> \tMASK_GNU_AS.\n>> \t<ia64-hp-*vms*>: Likewise.\n>> \t<hppa*-*-*> (target_cpu_default2): Always add MASK_GAS.\n>> \t(gas): Remove.\n>> \t* acinclude.m4 (gcc_GAS_FLAGS): Check solaris_as instead of gas.\n>> \t* configure.ac: Don't set gas.\n>> \t* configure: Regenerate.\n\ncompared to the v1 patch, this revision checks the new as_flavor instead\nof solaris_as.\n\nOk for trunk?\n\n\tRainer",
    "diff": "# HG changeset patch\n# Parent  58258bddc64283fb44a68570871274315e4543bd\nbuild: Remove $gas\n\ndiff --git a/gcc/acinclude.m4 b/gcc/acinclude.m4\n--- a/gcc/acinclude.m4\n+++ b/gcc/acinclude.m4\n@@ -461,7 +461,7 @@ dnl # Used by gcc_GAS_CHECK_FEATURE\n dnl #\n AC_DEFUN([gcc_GAS_FLAGS],\n [AC_CACHE_CHECK([assembler flags], gcc_cv_as_flags,\n-[ case \"$target:$gas\" in\n+[ case \"$target:$as_flavor\" in\n   *-*-darwin*:*)\n     dnl Darwin with the native assembler uses -arch i386/x86_64/ppc/ppc64.\n     dnl\n@@ -489,7 +489,7 @@ AC_DEFUN([gcc_GAS_FLAGS],\n \t;;\n     esac\n     ;;\n-  *-*-solaris2*:no)\n+  *-*-solaris2*:solaris)\n     dnl Solaris with the native assembler uses -m32/-m64 consistently.\n     case \"$target\" in\n       i?86-*-* | sparc-*-*)\ndiff --git a/gcc/config.gcc b/gcc/config.gcc\n--- a/gcc/config.gcc\n+++ b/gcc/config.gcc\n@@ -179,9 +179,6 @@\n #\n #  thread_file\t\tSet to control which thread package to use.\n #\n-#  gas\t\t\tSet to yes or no depending on whether the target\n-#\t\t\tsystem normally uses GNU as.\n-#\n #  configure_default_options\n #\t\t\tSet to an initializer for configure_default_options\n #\t\t\tin configargs.h, based on --with-cpu et cetera.\n@@ -252,9 +249,6 @@ target_cpu_default=\n gdb_needs_out_file_path=\n # Set this to control which thread package will be used.\n thread_file=\n-# Reinitialize these from the flag values every loop pass, since some\n-# configure entries modify them.\n-gas=\"$gas_flag\"\n gnu_ld=\"$gnu_ld_flag\"\n default_use_cxa_atexit=no\n default_gnu_indirect_function=no\n@@ -855,7 +849,6 @@ case ${target} in\n   esac\n   ;;\n *-*-dragonfly*)\n-  gas=yes\n   gnu_ld=yes\n   tmake_file=\"t-slibgcc\"\n   case ${enable_threads} in\n@@ -895,7 +888,6 @@ case ${target} in\n   # The machine-specific section should not tamper with this\n   # ordering but may order all other entries of tm_file as it\n   # pleases around the provided core setting.\n-  gas=yes\n   gnu_ld=yes\n   fbsd_major=`echo ${target} | sed -e 's/.*freebsd//g' | sed -e 's/\\..*//g'`\n   if test \"$fbsd_major\" = \"\"; then\n@@ -940,7 +932,6 @@ case ${target} in\n   ;;\n *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu | *-*-uclinuxfdpiceabi)\n   extra_options=\"$extra_options gnu-user.opt\"\n-  gas=yes\n   gnu_ld=yes\n   case ${enable_threads} in\n     \"\" | yes | posix) thread_file='posix' ;;\n@@ -1029,7 +1020,6 @@ case ${target} in\n   tmake_file=\"t-netbsd t-slibgcc\"\n   extra_objs=\"${extra_objs} netbsd.o\"\n   d_target_objs=\"${d_target_objs} netbsd-d.o\"\n-  gas=yes\n   gnu_ld=yes\n   use_gcc_stdint=wrap\n   case ${enable_threads} in\n@@ -1064,7 +1054,6 @@ case ${target} in\n   target_has_targetrustm=yes\n   ;;\n *-*-phoenix*)\n-  gas=yes\n   gnu_ld=yes\n   default_use_cxa_atexit=yes\n   ;;\n@@ -1750,7 +1739,6 @@ bpf-*-*)\n cris-*-elf | cris-*-none)\n \ttm_file=\"elfos.h newlib-stdint.h ${tm_file}\"\n \ttmake_file=\"cris/t-cris cris/t-elfmulti\"\n-\tgas=yes\n \textra_options=\"${extra_options} cris/elf.opt\"\n \tuse_gcc_stdint=wrap\n \t;;\n@@ -1851,7 +1839,6 @@ frv-*-*linux*)\n \ttmake_file=\"${tmake_file} frv/t-frv frv/t-linux\"\n \t;;\n ft32-*-elf)\n-\tgas=yes\n \tgnu_ld=yes\n \ttm_file=\"elfos.h newlib-stdint.h ${tm_file}\"\n \ttmake_file=\"${tmake_file} ft32/t-ft32\"\n@@ -1879,13 +1866,11 @@ amdgcn-*-amdhsa)\n \tthread_file=gcn\n \t;;\n moxie-*-elf)\n-\tgas=yes\n \tgnu_ld=yes\n \ttm_file=\"elfos.h newlib-stdint.h ${tm_file}\"\n \ttmake_file=\"${tmake_file} moxie/t-moxie\"\n \t;;\n moxie-*-uclinux*)\n-\tgas=yes\n \tgnu_ld=yes\n \ttm_file=\"elfos.h ${tm_file} gnu-user.h linux.h glibc-stdint.h moxie/uclinux.h\"\n \ttmake_file=\"${tmake_file} moxie/t-moxie\"\n@@ -1895,7 +1880,6 @@ moxie-*-rtems*)\n \ttm_file=\"moxie/moxie.h elfos.h moxie/rtems.h rtems.h newlib-stdint.h\"\n \t;;\n moxie-*-moxiebox*)\n-\tgas=yes\n \tgnu_ld=yes\n \ttm_file=\"${tm_file} elfos.h moxie/moxiebox.h newlib-stdint.h\"\n \ttmake_file=\"${tmake_file} moxie/t-moxiebox\"\n@@ -1915,7 +1899,7 @@ hppa*64*-*-linux*)\n \t\t pa/pa64-linux.h\"\n \ttmake_file=\"${tmake_file} pa/t-pa pa/t-linux\"\n \td_target_objs=\"${d_target_objs} pa-d.o\"\n-\tgas=yes gnu_ld=yes\n+\tgnu_ld=yes\n \t;;\n hppa*-*-linux*)\n \ttarget_cpu_default=\"MASK_PA_11|MASK_NO_SPACE_REGS|MASK_CALLER_COPIES\"\n@@ -1931,7 +1915,6 @@ hppa*-*-openbsd*)\n \textra_options=\"${extra_options} openbsd.opt\"\n \ttmake_file=\"pa/t-pa\"\n \td_target_objs=\"${d_target_objs} pa-d.o\"\n-\tgas=yes\n \tgnu_ld=yes\n \t;;\n hppa*-*-netbsd*)\n@@ -1973,7 +1956,6 @@ hppa*64*-*-hpux11*)\n \t\tthread_file=posix\n \t\t;;\n \tesac\n-\tgas=yes\n \tcase ${target} in\n \t  *-*-hpux11.[01]*)\n \t\tuse_gcc_stdint=provide\n@@ -2052,14 +2034,12 @@ i[34567]86-*-openbsd*)\n \ttm_file=\"${tm_file} i386/unix.h i386/att.h elfos.h\"\n \ttm_file=\"${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h i386/openbsdelf.h\"\n \textra_options=\"${extra_options} openbsd.opt\"\n-\tgas=yes\n \tgnu_ld=yes\n \t;;\n x86_64-*-openbsd*)\n \ttm_file=\"${tm_file} i386/unix.h i386/att.h elfos.h\"\n \ttm_file=\"${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h i386/x86-64.h i386/openbsdelf.h\"\n \textra_options=\"${extra_options} openbsd.opt\"\n-\tgas=yes\n \tgnu_ld=yes\n \t;;\n i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu)\n@@ -2167,7 +2147,6 @@ i[34567]86-pc-msdosdjgpp*)\n \tnative_system_header_dir=/dev/env/DJDIR/include\n \textra_options=\"${extra_options} i386/djgpp.opt\"\n \tgnu_ld=yes\n-\tgas=yes\n \tuse_gcc_stdint=wrap\n \t;;\n i[34567]86-*-lynxos*)\n@@ -2177,13 +2156,11 @@ i[34567]86-*-lynxos*)\n \textra_options=\"${extra_options} lynx.opt\"\n \tthread_file=lynx\n \tgnu_ld=yes\n-\tgas=yes\n \t;;\n i[34567]86-*-nto-qnx*)\n \ttm_file=\"${tm_file} i386/att.h tm-dwarf2.h elfos.h i386/unix.h i386/nto.h\"\n \textra_options=\"${extra_options} i386/nto.opt\"\n \tgnu_ld=yes\n-\tgas=yes\n \t;;\n i[34567]86-*-rtems*)\n \ttm_file=\"${tm_file} i386/unix.h i386/att.h elfos.h i386/i386elf.h i386/rtemself.h rtems.h newlib-stdint.h\"\n@@ -2354,7 +2331,6 @@ i[34567]86-*-mingw* | x86_64-*-mingw*)\n \textra_objs=\"${extra_objs} winnt.o winnt-stubs.o winnt-dll.o\"\n \tc_target_objs=\"${c_target_objs} msformat-c.o\"\n \tcxx_target_objs=\"${cxx_target_objs} winnt-cxx.o msformat-c.o\"\n-\tgas=yes\n \tgnu_ld=yes\n \tdefault_use_cxa_atexit=yes\n \tuse_gcc_stdint=wrap\n@@ -2382,10 +2358,7 @@ ia64*-*-elf*)\n \ttm_file=\"${tm_file} elfos.h newlib-stdint.h ia64/sysv4.h ia64/elf.h\"\n \ttmake_file=\"ia64/t-ia64\"\n \ttarget_cpu_default=\"0\"\n-\tif test x$gas = xyes\n-\tthen\n-\t\ttarget_cpu_default=\"${target_cpu_default}|MASK_GNU_AS\"\n-\tfi\n+\ttarget_cpu_default=\"${target_cpu_default}|MASK_GNU_AS\"\n \tif test x$gnu_ld = xyes\n \tthen\n \t\ttarget_cpu_default=\"${target_cpu_default}|MASK_GNU_LD\"\n@@ -2429,10 +2402,7 @@ ia64-hp-*vms*)\n \ttm_file=\"${tm_file} elfos.h ia64/sysv4.h vms/vms.h ia64/vms.h\"\n \ttmake_file=\"${tmake_file} ia64/t-ia64\"\n \ttarget_cpu_default=\"0\"\n-\tif test x$gas = xyes\n-\tthen\n-\t\ttarget_cpu_default=\"${target_cpu_default}|MASK_GNU_AS\"\n-\tfi\n+\ttarget_cpu_default=\"${target_cpu_default}|MASK_GNU_AS\"\n \textra_options=\"${extra_options} ia64/vms.opt\"\n \t;;\n iq2000*-*-elf*)\n@@ -2586,7 +2556,6 @@ riscv*-*-linux*)\n \ttmake_file=\"${tmake_file} riscv/t-riscv riscv/t-linux\"\n \ttm_defines=\"${tm_defines} TARGET_DEFAULT_ASYNC_UNWIND_TABLES=1\"\n \tgnu_ld=yes\n-\tgas=yes\n \tcase $target in\n \triscv32be-*|riscv64be-*)\n \t\ttm_defines=\"${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1\"\n@@ -2601,7 +2570,6 @@ riscv*-*-gnu*)\n \ttm_file=\"elfos.h gnu-user.h gnu.h glibc-stdint.h ${tm_file} riscv/gnu.h\"\n \ttmake_file=\"${tmake_file} riscv/t-riscv\"\n \tgnu_ld=yes\n-\tgas=yes\n \tcase $target in\n \triscv32be-*|riscv64be-*)\n \t\ttm_defines=\"${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1\"\n@@ -2629,7 +2597,6 @@ riscv*-*-elf* | riscv*-*-rtems*)\n \tesac\n \ttmake_file=\"${tmake_file} riscv/t-riscv\"\n \tgnu_ld=yes\n-\tgas=yes\n \tcase $target in\n \triscv32be-*|riscv64be-*)\n \t\ttm_defines=\"${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1\"\n@@ -2643,7 +2610,6 @@ riscv*-*-freebsd*)\n \ttm_file=\"${tm_file} elfos.h ${fbsd_tm_file} riscv/freebsd.h\"\n \ttmake_file=\"${tmake_file} riscv/t-riscv\"\n \tgnu_ld=yes\n-\tgas=yes\n \tcase $target in\n \triscv32be-*|riscv64be-*)\n \t\ttm_defines=\"${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1\"\n@@ -2664,7 +2630,6 @@ loongarch*-*-linux*)\n \textra_options=\"${extra_options} linux-android.opt\"\n \ttmake_file=\"${tmake_file} loongarch/t-multilib loongarch/t-linux\"\n \tgnu_ld=yes\n-\tgas=yes\n \n \t# Force .init_array support.  The configure script cannot always\n \t# automatically detect that GAS supports it, yet we require it.\n@@ -2676,7 +2641,6 @@ loongarch*-*-elf*)\n \ttm_file=\"${tm_file} loongarch/elf.h loongarch/loongarch-driver.h\"\n \ttmake_file=\"${tmake_file} loongarch/t-multilib\"\n \tgnu_ld=yes\n-\tgas=yes\n \n \t# For .init_array support.  The configure script cannot always\n \t# automatically detect that GAS supports it, yet we require it.\n@@ -2696,7 +2660,6 @@ mips*-img-linux*)\n \twith_arch_32=\"mips32r6\"\n \twith_arch_64=\"mips64r6\"\n \tgnu_ld=yes\n-\tgas=yes\n \t;;\n mips*-mti-linux*)\n \ttm_file=\"elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h ${tm_file} mips/gnu-user.h mips/linux.h mips/linux-common.h mips/mti-linux.h\"\n@@ -2706,7 +2669,6 @@ mips*-mti-linux*)\n \twith_arch_32=\"mips32r2\"\n \twith_arch_64=\"mips64r2\"\n \tgnu_ld=yes\n-\tgas=yes\n \t;;\n mips*-*-linux*)\t\t\t\t# Linux MIPS, either endian.\n \ttm_file=\"elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h ${tm_file} mips/gnu-user.h mips/linux.h mips/linux-common.h\"\n@@ -3246,7 +3208,6 @@ powerpc-*-lynxos*)\n \textra_options=\"${extra_options} rs6000/sysv4.opt lynx.opt\"\n \tthread_file=lynx\n \tgnu_ld=yes\n-\tgas=yes\n \t;;\n powerpcle-*-elf*)\n \ttm_file=\"${tm_file} elfos.h gnu-user.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/sysv4le.h\"\n@@ -3610,7 +3571,7 @@ sparc64-*-openbsd*)\n \ttm_file=\"${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h sparc/openbsd64.h\"\n \textra_options=\"${extra_options} openbsd.opt\"\n \textra_options=\"${extra_options}\"\n-\tgas=yes gnu_ld=yes\n+\tgnu_ld=yes\n \twith_cpu=ultrasparc\n \ttmake_file=\"${tmake_file} sparc/t-sparc\"\n \t;;\n@@ -3702,7 +3663,7 @@ xtensa*-*-uclinux*)\n \t;;\n am33_2.0-*-linux*)\n \ttm_file=\"mn10300/mn10300.h elfos.h gnu-user.h linux.h glibc-stdint.h mn10300/linux.h\"\n-\tgas=yes gnu_ld=yes\n+\tgnu_ld=yes\n \tuse_collect2=no\n \t;;\n m32c-*-elf*)\n@@ -6097,10 +6058,7 @@ case ${target} in\n \t\t;;\n \n \thppa*-*-*)\n-\t\tif test x$gas = xyes\n-\t\tthen\n-\t\t\ttarget_cpu_default2=\"MASK_GAS\"\n-\t\tfi\n+\t\ttarget_cpu_default2=\"MASK_GAS\"\n \t\t;;\n \n \tfido*-*-* | m68k*-*-*)\ndiff --git a/gcc/configure b/gcc/configure\n--- a/gcc/configure\n+++ b/gcc/configure\n@@ -25498,34 +25498,23 @@ case $target in\n   *-*-aix*)\n     if $gcc_cv_as -v 2>&1 | grep '^as V' > /dev/null; then\n       as_flavor=aix\n-      gas=no\n-    else\n-      gas=yes\n     fi\n     ;;\n   *-*-darwin*)\n     as_flavor=darwin\n-    gas=no\n     ;;\n   *-*-solaris2*)\n     if $gcc_cv_as -V 2>&1 | grep 'Compiler Common.*SunOS' > /dev/null; then\n       as_flavor=solaris\n-      gas=no\n-    else\n-      gas=yes\n     fi\n     ;;\n   hppa*64*-*-hpux11*)\n     if $gcc_cv_as -V 2>&1 | grep 'UX.11.*PA-RISC.*Assembler' > /dev/null; then\n       as_flavor=hpux\n-      gas=no\n-    else\n-      gas=yes\n     fi\n     ;;\n   nvptx-*-*)\n     as_flavor=nvptx\n-    gas=no\n     ;;\n esac\n { $as_echo \"$as_me:${as_lineno-$LINENO}: result: $as_flavor\" >&5\n@@ -25551,15 +25540,6 @@ case \"$ORIGINAL_AS_FOR_TARGET\" in\n  ;;\n esac\n \n-# Check if we are using GNU as if not already set.\n-if test -z \"$gas\"; then\n-  if $gcc_cv_as --version 2>/dev/null | grep GNU > /dev/null; then\n-    gas=yes\n-  else\n-    gas=no\n-  fi\n-fi\n-\n if $gcc_cv_as --help 2>&1 | grep -- --fatal-warnings > /dev/null; then\n   fw_as_opt=--fatal-warnings\n fi\n@@ -26256,7 +26236,7 @@ $as_echo_n \"checking assembler flags... \n if ${gcc_cv_as_flags+:} false; then :\n   $as_echo_n \"(cached) \" >&6\n else\n-   case \"$target:$gas\" in\n+   case \"$target:$as_flavor\" in\n   *-*-darwin*:*)\n                         case \"$target\" in\n       i?86-*-*)\n@@ -26279,7 +26259,7 @@ else\n \t;;\n     esac\n     ;;\n-  *-*-solaris2*:no)\n+  *-*-solaris2*:solaris)\n         case \"$target\" in\n       i?86-*-* | sparc-*-*)\n \tgcc_cv_as_flags=-m32\n@@ -31801,8 +31781,7 @@ esac\n \n case \"$target\" in\n   mips*-*-* | loongarch*-*-* | *-*-hpux* )\n-    if test x$gas = xyes \\\n-       || test x\"$host\" != x\"$build\" \\\n+    if test x\"$host\" != x\"$build\" \\\n        || test ! -x \"$gcc_cv_as\" \\\n        || \"$gcc_cv_as\" -v < /dev/null 2>&1 | grep GNU > /dev/null; then\n       :\ndiff --git a/gcc/configure.ac b/gcc/configure.ac\n--- a/gcc/configure.ac\n+++ b/gcc/configure.ac\n@@ -2741,34 +2741,23 @@ case $target in\n   *-*-aix*)\n     if $gcc_cv_as -v 2>&1 | grep '^as V' > /dev/null; then\n       as_flavor=aix\n-      gas=no\n-    else\n-      gas=yes\n     fi\n     ;;\n   *-*-darwin*)\n     as_flavor=darwin\n-    gas=no\n     ;;\n   *-*-solaris2*)\n     if $gcc_cv_as -V 2>&1 | grep 'Compiler Common.*SunOS' > /dev/null; then\n       as_flavor=solaris\n-      gas=no\n-    else\n-      gas=yes\n     fi\n     ;;\n   hppa*64*-*-hpux11*)\n     if $gcc_cv_as -V 2>&1 | grep 'UX.11.*PA-RISC.*Assembler' > /dev/null; then\n       as_flavor=hpux\n-      gas=no\n-    else\n-      gas=yes\n     fi\n     ;;\n   nvptx-*-*)\n     as_flavor=nvptx\n-    gas=no\n     ;;\n esac\n AC_MSG_RESULT($as_flavor)\n@@ -2787,15 +2776,6 @@ case \"$ORIGINAL_AS_FOR_TARGET\" in\n   *) AC_CONFIG_FILES(as:exec-tool.in, [chmod +x as]) ;;\n esac \n \n-# Check if we are using GNU as if not already set.\n-if test -z \"$gas\"; then\n-  if $gcc_cv_as --version 2>/dev/null | grep GNU > /dev/null; then\n-    gas=yes\n-  else\n-    gas=no\n-  fi\n-fi\n-\n if $gcc_cv_as --help 2>&1 | grep -- --fatal-warnings > /dev/null; then\n   fw_as_opt=--fatal-warnings\n fi\n@@ -5611,8 +5591,7 @@ esac\n \n case \"$target\" in\n   mips*-*-* | loongarch*-*-* | *-*-hpux* )\n-    if test x$gas = xyes \\\n-       || test x\"$host\" != x\"$build\" \\\n+    if test x\"$host\" != x\"$build\" \\\n        || test ! -x \"$gcc_cv_as\" \\\n        || \"$gcc_cv_as\" -v < /dev/null 2>&1 | grep GNU > /dev/null; then\n       :\n",
    "prefixes": [
        "v2",
        "2/6"
    ]
}