Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2230238/?format=api
{ "id": 2230238, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2230238/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/ydd340damrm.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": "<ydd340damrm.fsf@CeBiTec.Uni-Bielefeld.DE>", "date": "2026-04-29T14:01:33", "name": "[2/6] build: Remove $gas", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "d9e5ef044b236afb5666063777c5c52eea19e565", "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/ydd340damrm.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/2230238/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2230238/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=cmktfVhK;\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=cmktfVhK", "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 4g5Js205Djz1yK5\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 00:02:12 +1000 (AEST)", "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id EFBA04BBCD96\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 14:02:10 +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 79AD74BB58CB;\n Wed, 29 Apr 2026 14:01:35 +0000 (GMT)", "from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1])\n by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id A0423C0B17;\n Wed, 29 Apr 2026 16:01:34 +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 mslNwJB81NE6; Wed, 29 Apr 2026 16:01:33 +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 904D7C1F5F;\n Wed, 29 Apr 2026 16:01:33 +0200 (CEST)" ], "DKIM-Filter": [ "OpenDKIM Filter v2.11.0 sourceware.org EFBA04BBCD96", "OpenDKIM Filter v2.11.0 sourceware.org 79AD74BB58CB" ], "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 79AD74BB58CB", "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 79AD74BB58CB", "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777471295; cv=none;\n b=kg/oZ+UXaRgL3fE125DcmCogFYKF8+flXc1CMeR9VtJZTo6tp6aowDt6IsjgzsNEtVAnLNo8oJbwu8O792DzgmzKzXFXoZVVKqY6Kty9mcql+ocsSR66+4o7zYfsI25uhWKe3DTuTK6nwHUErKvxL1MeNWrQ9EYJFZsQXMOySm0=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1777471295; c=relaxed/simple;\n bh=YOFm3eE8Gq6BtfgktMmeZAcDhpvhuGDvwYJRaVB1Lss=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=IE3PzqOqBvGa3WsHZhJPIA/V+T503TWDmOqCnLHZORhvV09sZAAnVsahC1gdjkDhUfHS/LQC9W4P45hx3ZWePH0w1+mQmHYRGqCTrc1FiF8x/bE9nzH4x+9pdOCP2STDrQFzvWO5+85lYxcxSldOT3e5Y//lG6MrVH3lCtGHhl4=", "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=1777471293; bh=YOFm3\n eE8Gq6BtfgktMmeZAcDhpvhuGDvwYJRaVB1Lss=; b=cmktfVhK3Q9HMMCjIDLOL\n +lU4egKnzrGHyrhhVJmT1W70EFTQ3AP3Dy5HDga4U6vcmHChjOk6z5XNM3SM+D1a\n QTbOAWHQsajs6deMSSY8a6ZiQNCGnhjwvTPExX1L1EwLfx2+/8l9kscY5IBqPwqU\n w58o0jiZ6DSfQaKTGnxS+1m5LMMBUgdQsyrsBruGP/piv7P3JsAe/yp8vzjiDU7H\n DD69+JdbIKRGy8T5jI3Rpo5isBoOPi+r0gBO8joDjSlYMHHcFARR/lQ7fi+Hq1pW\n DOXJsdyj0hPw1+DmUAQ7krcFPuSl/efYqqBWw5pBAvjguSAMIKO/ZBcnfi5ILb2C\n A==", "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>, Douglas Rupp\n <douglas.b.rupp@gmail.com>, Tristan Gingold <tgingold@free.fr>", "Subject": "[PATCH 2/6] build: Remove $gas", "Date": "Wed, 29 Apr 2026 16:01:33 +0200", "Message-ID": "<ydd340damrm.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": "By the removal of HAVE_GNU_AS, the gas variable in config.gcc etc. has\nbecome unnecessary. This patch removes it.\n\n* In some cases, the code is changed to use solaris_as instead.\n\n* In config.gcc several tests can be removed:\n\n ia64*-*-elf*, hppa*-*-*: : These are a gas-only configurations.\n\n ia64-hp-*vms*: The requirements and support status of this\n configuration isn't documented.\n\n* The check in configure.ac to require gas on mips*-*-*, loongarch*-*,\n and *-*-hpux* can be done unconditionally.\n\nOk for trunk?\n\n\tRainer", "diff": "# HG changeset patch\n# Parent 4525fd461131357fad5eb76c64c403d3df220ca8\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:$solaris_as\" 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*:yes)\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@@ -6073,10 +6034,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@@ -25495,9 +25495,6 @@ case $target in\n *-*-solaris2*)\n if $gcc_cv_as -V 2>&1 | grep 'Compiler Common.*SunOS' > /dev/null; then\n solaris_as=yes\n- gas=no\n- elif $gcc_cv_as --version 2>/dev/null | grep GNU > /dev/null; then\n- gas=yes\n fi\n ;;\n *)\n@@ -25521,15 +25518,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@@ -26204,7 +26192,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:$solaris_as\" in\n *-*-darwin*:*)\n case \"$target\" in\n i?86-*-*)\n@@ -26227,7 +26215,7 @@ else\n \t;;\n esac\n ;;\n- *-*-solaris2*:no)\n+ *-*-solaris2*:yes)\n case \"$target\" in\n i?86-*-* | sparc-*-*)\n \tgcc_cv_as_flags=-m32\n@@ -31749,8 +31737,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@@ -2740,9 +2740,6 @@ case $target in\n *-*-solaris2*)\n if $gcc_cv_as -V 2>&1 | grep 'Compiler Common.*SunOS' > /dev/null; then\n solaris_as=yes\n- gas=no\n- elif $gcc_cv_as --version 2>/dev/null | grep GNU > /dev/null; then\n- gas=yes\n fi\n ;;\n *)\n@@ -2761,15 +2758,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@@ -5562,8 +5550,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": [ "2/6" ] }