get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2230241,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2230241/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/yddlde5981d.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": "<yddlde5981d.fsf@CeBiTec.Uni-Bielefeld.DE>",
    "date": "2026-04-29T14:05:02",
    "name": "[5/6] build: Remove $gnu_ld",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "04efed17335aca276545bfd935654ab2925c0105",
    "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/yddlde5981d.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/2230241/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2230241/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=lK3yozfA;\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=lK3yozfA",
            "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 4g5Jx51LcKz1xqf\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 00:05:43 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id CE9BE4BB58CB\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 14:05:41 +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 1A8464BB8F63;\n Wed, 29 Apr 2026 14:05:05 +0000 (GMT)",
            "from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1])\n by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 240D5C1C19;\n Wed, 29 Apr 2026 16:05:04 +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 vJkPzsslWDHu; Wed, 29 Apr 2026 16:05:02 +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 AD766C23B6;\n Wed, 29 Apr 2026 16:05:02 +0200 (CEST)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org CE9BE4BB58CB",
            "OpenDKIM Filter v2.11.0 sourceware.org 1A8464BB8F63"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 1A8464BB8F63",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 1A8464BB8F63",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777471505; cv=none;\n b=EcuFTUPKXy76MLjoi81X8DTsC/GBlcURd/4CylOllzjhdYX8um47Xo/jGZPNbFWCZCkOeDKbgdIvNTtJFOOJOiZeErjePmFB1/3JHgYYS4Aj3SXfzH5KlMgQDoz7GxhsZfxtC69gOv1RlOXRB+uLvVt/Fu8BPrO3JA66pLjt+rk=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1777471505; c=relaxed/simple;\n bh=HG9hPvyWFRwau50sI65Y8WkLVuGxqBrBSV+Lsh4N+xo=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=AryUOWGJBfBrRV7s3Nzp6pj84SqrNB5w8xKzugeuSaTx9OTuVYF0lhe3SrN9PCZjUgsOnahMSAdZEHQN3G8zkuxW5K4dMP5UVginYV/P32I2qH9QaGeH+/fIZmf6Jpe0YoLlCqyZQBU8muYKy950G8P7GmFOdiJkiGPJfrUhwlg=",
        "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=1777471502; bh=HG9hP\n vyWFRwau50sI65Y8WkLVuGxqBrBSV+Lsh4N+xo=; b=lK3yozfAxiRdC6/UNW/fH\n 2MEb4Lg98OZaZFLOaPHV+pOvBnkeAIQT67yl6QyE9dnenpgxoMvWE8FLI2jp2gzD\n H6OfQ/ePzGqhF+k8XdgPXFjlHmObpgY2qtYnJDk8p2s5fyggnbCGR4AA0bPttRHM\n uq75BDJaUMzYMPQpV7zlKN5pJsOTqrWlRKwQ3sIJSuMkZmn/jk2UVPeeV3shyatb\n iPeGQRibdYb3zSps2MGKyyLW0VbT9ebMWrfq6oWqUFnfvOpCc7sMzBBKmiCqBACU\n xR52iamrcDVnhXONi9wIx1SNrWOioIycYQc4nm4rAlKxaRWMDWIKdkxONSMQ6jFv\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>, John David Anglin\n <dave.anglin@bell.net>",
        "Subject": "[PATCH 5/6] build: Remove $gnu_ld",
        "Date": "Wed, 29 Apr 2026 16:05:02 +0200",
        "Message-ID": "<yddlde5981d.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": "With the removal of HAVE_GNU_LD, the gnu_ld variable used in config.gcc\netc. has few uses left, so this patch removes or replaces them:\n\n* In config.gcc:\n\n  hppa*64*-*-hpux11*: According to install.tex, this configuration\n  requires the native HP linker, so the target_cpu_default setting for\n  gld is removed.\n\n  ia64*-*-elf*: This configuration is gld-only, so target_cpu_default is\n  set unconditionally.\n\n  mips*-*-*: After the removal of IRIX support, MIPS configurations are\n  also gld-only, so target_cpu_default2 is set unconditionally.\n\n* In configure.ac, checks of gnu_ld are inverted to check solaris_ld\n  instead.\n\n* The gnu_ld checks for the --version-script and -soname options are\n  replaced by checking the ld --help output, matching what is done for\n  -Bstatic/-Bdynamic.\n\n  The references to jit/Makefile.in are no longer true, thus removed.\n\n* The gnu_ld check for the --demangle option isn't necessary since the\n  test already checks ld --help output.\n\nOk for trunk?\n\n\tRainer",
    "diff": "# HG changeset patch\n# Parent  e5e9269c164541d39e97c1a650305ac243354be0\nbuild: Remove $gnu_ld\n\ndiff --git a/gcc/config.gcc b/gcc/config.gcc\n--- a/gcc/config.gcc\n+++ b/gcc/config.gcc\n@@ -194,9 +194,6 @@\n # The following variables are used in each case-construct to build up the\n # outgoing variables:\n #\n-#  gnu_ld\t\tSet to yes or no depending on whether the target\n-#\t\t\tsystem normally uses GNU ld.\n-#\n #  target_has_targetcm\tSet to yes or no depending on whether the target\n #\t\t\thas its own definition of targetcm.\n #\n@@ -245,7 +242,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-gnu_ld=\"$gnu_ld_flag\"\n default_use_cxa_atexit=no\n default_gnu_indirect_function=no\n target_gtfiles=\n@@ -845,7 +841,6 @@ case ${target} in\n   esac\n   ;;\n *-*-dragonfly*)\n-  gnu_ld=yes\n   tmake_file=\"t-slibgcc\"\n   case ${enable_threads} in\n     \"\" | yes | posix)\n@@ -884,7 +879,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-  gnu_ld=yes\n   fbsd_major=`echo ${target} | sed -e 's/.*freebsd//g' | sed -e 's/\\..*//g'`\n   if test \"$fbsd_major\" = \"\"; then\n     echo \"Specify the major version number of the targeted FreeBSD release\"\n@@ -928,7 +922,6 @@ case ${target} in\n   ;;\n *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu | *-*-uclinuxfdpiceabi)\n   extra_options=\"$extra_options gnu-user.opt\"\n-  gnu_ld=yes\n   case ${enable_threads} in\n     \"\" | yes | posix) thread_file='posix' ;;\n   esac\n@@ -1016,7 +1009,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-  gnu_ld=yes\n   use_gcc_stdint=wrap\n   case ${enable_threads} in\n     \"\" | yes | posix) thread_file='posix' ;;\n@@ -1050,7 +1042,6 @@ case ${target} in\n   target_has_targetrustm=yes\n   ;;\n *-*-phoenix*)\n-  gnu_ld=yes\n   default_use_cxa_atexit=yes\n   ;;\n *-*-rtems*)\n@@ -1835,7 +1826,6 @@ frv-*-*linux*)\n \ttmake_file=\"${tmake_file} frv/t-frv frv/t-linux\"\n \t;;\n ft32-*-elf)\n-\tgnu_ld=yes\n \ttm_file=\"elfos.h newlib-stdint.h ${tm_file}\"\n \ttmake_file=\"${tmake_file} ft32/t-ft32\"\n \t;;\n@@ -1862,12 +1852,10 @@ amdgcn-*-amdhsa)\n \tthread_file=gcn\n \t;;\n moxie-*-elf)\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-\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 \t;;\n@@ -1876,7 +1864,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-\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 \t;;\n@@ -1895,7 +1882,6 @@ 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-\tgnu_ld=yes\n \t;;\n hppa*-*-linux*)\n \ttarget_cpu_default=\"MASK_PA_11|MASK_NO_SPACE_REGS|MASK_CALLER_COPIES\"\n@@ -1911,7 +1897,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-\tgnu_ld=yes\n \t;;\n hppa*-*-netbsd*)\n \ttarget_cpu_default=\"MASK_PA_11|MASK_NO_SPACE_REGS\"\n@@ -1923,10 +1908,6 @@ hppa*-*-netbsd*)\n \t;;\n hppa*64*-*-hpux11*)\n \ttarget_cpu_default=\"MASK_PA_11|MASK_PA_20\"\n-\tif test x$gnu_ld = xyes\n-\tthen\n-\t\ttarget_cpu_default=\"${target_cpu_default}|MASK_GNU_LD\"\n-\tfi\n \ttm_file=\"pa/pa64-start.h ${tm_file} elfos.h \\\n \t\t pa/pa64-regs.h pa/pa-hpux.h pa/pa-hpux1010.h \\\n \t\t pa/pa-hpux11.h\"\n@@ -2030,13 +2011,11 @@ 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-\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-\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 \t\t\t# Intel 80386's running GNU/*\n@@ -2142,7 +2121,6 @@ i[34567]86-pc-msdosdjgpp*)\n \ttm_file=\"${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/djgpp.h i386/djgpp-stdint.h\"\n \tnative_system_header_dir=/dev/env/DJDIR/include\n \textra_options=\"${extra_options} i386/djgpp.opt\"\n-\tgnu_ld=yes\n \tuse_gcc_stdint=wrap\n \t;;\n i[34567]86-*-lynxos*)\n@@ -2151,12 +2129,10 @@ i[34567]86-*-lynxos*)\n \ttmake_file=\"${tmake_file} t-lynx\"\n \textra_options=\"${extra_options} lynx.opt\"\n \tthread_file=lynx\n-\tgnu_ld=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 \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@@ -2327,7 +2303,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-\tgnu_ld=yes\n \tdefault_use_cxa_atexit=yes\n \tuse_gcc_stdint=wrap\n \tcase ${enable_threads} in\n@@ -2355,10 +2330,7 @@ ia64*-*-elf*)\n \ttmake_file=\"ia64/t-ia64\"\n \ttarget_cpu_default=\"0\"\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-\tfi\n+\ttarget_cpu_default=\"${target_cpu_default}|MASK_GNU_LD\"\n \t;;\n ia64*-*-freebsd*)\n \ttm_file=\"${tm_file} elfos.h ${fbsd_tm_file} ia64/sysv4.h ia64/freebsd.h\"\n@@ -2551,7 +2523,6 @@ riscv*-*-linux*)\n \tesac\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 \tcase $target in\n \triscv32be-*|riscv64be-*)\n \t\ttm_defines=\"${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1\"\n@@ -2565,7 +2536,6 @@ riscv*-*-linux*)\n 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 \tcase $target in\n \triscv32be-*|riscv64be-*)\n \t\ttm_defines=\"${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1\"\n@@ -2592,7 +2562,6 @@ riscv*-*-elf* | riscv*-*-rtems*)\n \t  fi\n \tesac\n \ttmake_file=\"${tmake_file} riscv/t-riscv\"\n-\tgnu_ld=yes\n \tcase $target in\n \triscv32be-*|riscv64be-*)\n \t\ttm_defines=\"${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1\"\n@@ -2605,7 +2574,6 @@ riscv*-*-elf* | riscv*-*-rtems*)\n 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 \tcase $target in\n \triscv32be-*|riscv64be-*)\n \t\ttm_defines=\"${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1\"\n@@ -2625,7 +2593,6 @@ loongarch*-*-linux*)\n \ttm_file=\"${tm_file} loongarch/gnu-user.h loongarch/linux.h loongarch/loongarch-driver.h\"\n \textra_options=\"${extra_options} linux-android.opt\"\n \ttmake_file=\"${tmake_file} loongarch/t-multilib loongarch/t-linux\"\n-\tgnu_ld=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@@ -2636,7 +2603,6 @@ loongarch*-*-elf*)\n \ttm_file=\"elfos.h newlib-stdint.h ${tm_file}\"\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 \n \t# For .init_array support.  The configure script cannot always\n \t# automatically detect that GAS supports it, yet we require it.\n@@ -2655,7 +2621,6 @@ mips*-img-linux*)\n \ttm_defines=\"${tm_defines} MIPS_ISA_DEFAULT=MIPS_ISA_MIPS32R6 MIPS_ABI_DEFAULT=ABI_32\"\n \twith_arch_32=\"mips32r6\"\n \twith_arch_64=\"mips64r6\"\n-\tgnu_ld=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@@ -2664,7 +2629,6 @@ mips*-mti-linux*)\n \ttm_defines=\"${tm_defines} MIPS_ISA_DEFAULT=MIPS_ISA_MIPS32R2 MIPS_ABI_DEFAULT=ABI_32\"\n \twith_arch_32=\"mips32r2\"\n \twith_arch_64=\"mips64r2\"\n-\tgnu_ld=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@@ -3203,7 +3167,6 @@ powerpc-*-lynxos*)\n \ttmake_file=\"t-lynx rs6000/t-lynx\"\n \textra_options=\"${extra_options} rs6000/sysv4.opt lynx.opt\"\n \tthread_file=lynx\n-\tgnu_ld=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@@ -3567,7 +3530,6 @@ 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-\tgnu_ld=yes\n \twith_cpu=ultrasparc\n \ttmake_file=\"${tmake_file} sparc/t-sparc\"\n \t;;\n@@ -3659,7 +3621,6 @@ 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-\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 \tmips*-*-*)\n-\t\tif test x$gnu_ld = xyes\n-\t\tthen\n-\t\t\ttarget_cpu_default2=\"MASK_SPLIT_ADDRESSES\"\n-\t\tfi\n+\t        target_cpu_default2=\"MASK_SPLIT_ADDRESSES\"\n \t\tcase ${target} in\n \t\t\tmips*el-*-*)\n \t\t\t\ttm_defines=\"TARGET_ENDIAN_DEFAULT=0 $tm_defines\"\ndiff --git a/gcc/configure b/gcc/configure\n--- a/gcc/configure\n+++ b/gcc/configure\n@@ -25612,10 +25612,7 @@ $as_echo_n \"checking Solaris linker... \"\n case $target in\n   *-*-solaris2*)\n     if $gcc_cv_ld -V 2>/dev/null | grep 'Solaris Link Editors' > /dev/null; then\n-      gnu_ld=no\n       solaris_ld=yes\n-    elif $gcc_cv_ld --version 2>/dev/null | grep GNU > /dev/null; then\n-      gnu_ld=yes\n     fi\n     ;;\n   *)\n@@ -25656,24 +25653,16 @@ _ACEOF\n \n \n # Check if we are using GNU ld if not already set.\n-if test -z \"$gnu_ld\"; then\n-  if $gcc_cv_ld --version 2>/dev/null | grep GNU > /dev/null; then\n-    gnu_ld=yes\n-  else\n-    gnu_ld=no\n-  fi\n-fi\n-\n-case \"$target:$gnu_ld\" in\n-  *-*-solaris2*:no)\n+case \"$target:$solaris_ld\" in\n+  *-*-solaris2*:yes)\n     # While Solaris ld has -m32/-m64 it usually determines the ELF class\n     # from the input objects.\n     ;;\n-  i?86-*-solaris2*:yes | x86_64-*-solaris2*:yes)\n+  i?86-*-solaris2*:* | x86_64-*-solaris2*:*)\n     ld_32_opt=-melf_i386_sol2\n     ld_64_opt=-melf_x86_64_sol2\n     ;;\n-  i?86-*-*:yes | x86_64-*-*:yes)\n+  i?86-*-*:* | x86_64-*-*:*)\n     ld_32_opt=-melf_i386\n     ld_64_opt=-melf_x86_64\n     ;;\n@@ -28461,11 +28450,9 @@ elif test x$gcc_cv_ld != x; then\n \t;;\n       # HP-UX ld uses -a flags to select between shared and archive.\n       *-*-hpux*)\n-\tif test x\"$gnu_ld\" = xno; then\n-\t  gcc_cv_ld_static_dynamic=yes\n-\t  gcc_cv_ld_static_option=\"-aarchive_shared\"\n-\t  gcc_cv_ld_dynamic_option=\"-adefault\"\n-\tfi\n+\tgcc_cv_ld_static_dynamic=yes\n+\tgcc_cv_ld_static_option=\"-aarchive_shared\"\n+\tgcc_cv_ld_dynamic_option=\"-adefault\"\n \t;;\n       # Solaris 2 ld always supports -Bstatic/-Bdynamic.\n       *-*-solaris2*)\n@@ -28492,21 +28479,27 @@ fi\n { $as_echo \"$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic\" >&5\n $as_echo \"$gcc_cv_ld_static_dynamic\" >&6; }\n \n-{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking linker --version-script option\" >&5\n-$as_echo_n \"checking linker --version-script option... \" >&6; }\n+{ $as_echo \"$as_me:${as_lineno-$LINENO}: checking linker version script option\" >&5\n+$as_echo_n \"checking linker version script option... \" >&6; }\n gcc_cv_ld_version_script=no\n ld_version_script_option=''\n-if test $in_tree_ld = yes || test x\"$gnu_ld\" = xyes; then\n+if test $in_tree_ld = yes; then\n   gcc_cv_ld_version_script=yes\n   ld_version_script_option='--version-script'\n-elif test x$solaris_ld = xyes; then\n+elif test x$gcc_cv_ld != x; then\n+  # Check if linker supports --version-script option\n+  if $gcc_cv_ld --help 2>&1 | grep -- --version-script > /dev/null; then\n+    gcc_cv_ld_version_script=yes\n+    ld_version_script_option='--version-script'\n+  fi\n+fi\n+if test x$solaris_ld = xyes; then\n   # Solaris 2 ld always supports -M.  It also supports a subset of\n   # --version-script since Solaris 11.4, but requires\n   # -z gnu-version-script-compat to activate.\n   gcc_cv_ld_version_script=yes\n   ld_version_script_option='-M'\n fi\n-# Don't AC_DEFINE result, only used in jit/Make-lang.in so far.\n { $as_echo \"$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script\" >&5\n $as_echo \"$gcc_cv_ld_version_script\" >&6; }\n \n@@ -28514,24 +28507,28 @@ $as_echo \"$gcc_cv_ld_version_script\" >&6\n { $as_echo \"$as_me:${as_lineno-$LINENO}: checking linker soname option\" >&5\n $as_echo_n \"checking linker soname option... \" >&6; }\n gcc_cv_ld_soname=no\n-if test $in_tree_ld = yes || test x\"$gnu_ld\" = xyes; then\n+if test $in_tree_ld = yes; then\n   gcc_cv_ld_soname=yes\n   ld_soname_option='-soname'\n elif test x$gcc_cv_ld != x; then\n-  case \"$target\" in\n-    *-*-darwin*)\n-      gcc_cv_ld_soname=yes\n-      ld_soname_option='-install_name'\n-      ;;\n-    # Solaris 2 ld always supports -h.  It also supports --soname for GNU\n-    # ld compatiblity since some Solaris 10 update.\n-    *-*-solaris2*)\n-      gcc_cv_ld_soname=yes\n-      ld_soname_option='-h'\n-      ;;\n-  esac\n-fi\n-# Don't AC_DEFINE result, only used in jit/Make-lang.in so far.\n+  # Check if linker supports -soname option\n+  if $gcc_cv_ld --help 2>&1 | grep -- -soname > /dev/null; then\n+    gcc_cv_ld_soname=yes\n+    ld_soname_option='-soname'\n+  fi\n+fi\n+case \"$target:$solaris_ld\" in\n+  *-*-darwin*:*)\n+    gcc_cv_ld_soname=yes\n+    ld_soname_option='-install_name'\n+    ;;\n+  # Solaris 2 ld always supports -h.  It also supports --soname for GNU\n+  # ld compatiblity since some Solaris 10 update.\n+  *-*-solaris2*:yes)\n+    gcc_cv_ld_soname=yes\n+    ld_soname_option='-h'\n+    ;;\n+esac\n { $as_echo \"$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname\" >&5\n $as_echo \"$gcc_cv_ld_soname\" >&6; }\n \n@@ -28544,7 +28541,7 @@ $as_echo_n \"checking linker --demangle s\n     if test \"$gcc_cv_gld_major_version\" -eq 2 -a \"$gcc_cv_gld_minor_version\" -ge 14 -o \"$gcc_cv_gld_major_version\" -gt 2; then \\\n       gcc_cv_ld_demangle=yes\n     fi\n-  elif test x$gcc_cv_ld != x -a x\"$gnu_ld\" = xyes; then\n+  elif test x$gcc_cv_ld != x; then\n     # Check if the GNU linker supports --demangle option\n     if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then\n       gcc_cv_ld_demangle=yes\ndiff --git a/gcc/configure.ac b/gcc/configure.ac\n--- a/gcc/configure.ac\n+++ b/gcc/configure.ac\n@@ -2813,10 +2813,7 @@ AC_MSG_CHECKING(Solaris linker)\n case $target in\n   *-*-solaris2*)\n     if $gcc_cv_ld -V 2>/dev/null | grep 'Solaris Link Editors' > /dev/null; then\n-      gnu_ld=no\n       solaris_ld=yes\n-    elif $gcc_cv_ld --version 2>/dev/null | grep GNU > /dev/null; then\n-      gnu_ld=yes\n     fi\n     ;;\n   *)\n@@ -2846,24 +2843,16 @@ AC_SUBST(ORIGINAL_PLUGIN_LD_FOR_TARGET)\n AC_DEFINE_UNQUOTED(PLUGIN_LD_SUFFIX, \"$PLUGIN_LD_SUFFIX\", [Specify plugin linker])\n \n # Check if we are using GNU ld if not already set.\n-if test -z \"$gnu_ld\"; then\n-  if $gcc_cv_ld --version 2>/dev/null | grep GNU > /dev/null; then\n-    gnu_ld=yes\n-  else\n-    gnu_ld=no\n-  fi\n-fi\n-\n-case \"$target:$gnu_ld\" in\n-  *-*-solaris2*:no)\n+case \"$target:$solaris_ld\" in\n+  *-*-solaris2*:yes)\n     # While Solaris ld has -m32/-m64 it usually determines the ELF class\n     # from the input objects.\n     ;;\n-  i?86-*-solaris2*:yes | x86_64-*-solaris2*:yes)\n+  i?86-*-solaris2*:* | x86_64-*-solaris2*:*)\n     ld_32_opt=-melf_i386_sol2\n     ld_64_opt=-melf_x86_64_sol2\n     ;;\n-  i?86-*-*:yes | x86_64-*-*:yes)\n+  i?86-*-*:* | x86_64-*-*:*)\n     ld_32_opt=-melf_i386\n     ld_64_opt=-melf_x86_64\n     ;;\n@@ -4342,11 +4331,9 @@ elif test x$gcc_cv_ld != x; then\n \t;;\n       # HP-UX ld uses -a flags to select between shared and archive.\n       *-*-hpux*)\n-\tif test x\"$gnu_ld\" = xno; then\n-\t  gcc_cv_ld_static_dynamic=yes\n-\t  gcc_cv_ld_static_option=\"-aarchive_shared\"\n-\t  gcc_cv_ld_dynamic_option=\"-adefault\"\n-\tfi\n+\tgcc_cv_ld_static_dynamic=yes\n+\tgcc_cv_ld_static_option=\"-aarchive_shared\"\n+\tgcc_cv_ld_dynamic_option=\"-adefault\"\n \t;;\n       # Solaris 2 ld always supports -Bstatic/-Bdynamic.\n       *-*-solaris2*)\n@@ -4365,43 +4352,53 @@ if test x\"$gcc_cv_ld_static_dynamic\" = x\n fi\n AC_MSG_RESULT($gcc_cv_ld_static_dynamic)\n \n-AC_MSG_CHECKING(linker --version-script option)\n+AC_MSG_CHECKING(linker version script option)\n gcc_cv_ld_version_script=no\n ld_version_script_option=''\n-if test $in_tree_ld = yes || test x\"$gnu_ld\" = xyes; then\n+if test $in_tree_ld = yes; then\n   gcc_cv_ld_version_script=yes\n   ld_version_script_option='--version-script'\n-elif test x$solaris_ld = xyes; then\n+elif test x$gcc_cv_ld != x; then\n+  # Check if linker supports --version-script option\n+  if $gcc_cv_ld --help 2>&1 | grep -- --version-script > /dev/null; then\n+    gcc_cv_ld_version_script=yes\n+    ld_version_script_option='--version-script'\n+  fi\n+fi\n+if test x$solaris_ld = xyes; then\n   # Solaris 2 ld always supports -M.  It also supports a subset of\n   # --version-script since Solaris 11.4, but requires\n   # -z gnu-version-script-compat to activate.\n   gcc_cv_ld_version_script=yes\n   ld_version_script_option='-M'\n fi\n-# Don't AC_DEFINE result, only used in jit/Make-lang.in so far.\n AC_MSG_RESULT($gcc_cv_ld_version_script)\n AC_SUBST(ld_version_script_option)\n \n AC_MSG_CHECKING(linker soname option)\n gcc_cv_ld_soname=no\n-if test $in_tree_ld = yes || test x\"$gnu_ld\" = xyes; then\n+if test $in_tree_ld = yes; then\n   gcc_cv_ld_soname=yes\n   ld_soname_option='-soname'\n elif test x$gcc_cv_ld != x; then\n-  case \"$target\" in\n-    *-*-darwin*)\n-      gcc_cv_ld_soname=yes\n-      ld_soname_option='-install_name'\n-      ;;\n-    # Solaris 2 ld always supports -h.  It also supports --soname for GNU\n-    # ld compatiblity since some Solaris 10 update.\n-    *-*-solaris2*)\n-      gcc_cv_ld_soname=yes\n-      ld_soname_option='-h'\n-      ;;\n-  esac\n-fi\n-# Don't AC_DEFINE result, only used in jit/Make-lang.in so far.\n+  # Check if linker supports -soname option\n+  if $gcc_cv_ld --help 2>&1 | grep -- -soname > /dev/null; then\n+    gcc_cv_ld_soname=yes\n+    ld_soname_option='-soname'\n+  fi\n+fi\n+case \"$target:$solaris_ld\" in\n+  *-*-darwin*:*)\n+    gcc_cv_ld_soname=yes\n+    ld_soname_option='-install_name'\n+    ;;\n+  # Solaris 2 ld always supports -h.  It also supports --soname for GNU\n+  # ld compatiblity since some Solaris 10 update.\n+  *-*-solaris2*:yes)\n+    gcc_cv_ld_soname=yes\n+    ld_soname_option='-h'\n+    ;;\n+esac\n AC_MSG_RESULT($gcc_cv_ld_soname)\n AC_SUBST(ld_soname_option)\n \n@@ -4412,7 +4409,7 @@ if test x\"$demangler_in_ld\" = xyes; then\n     if test \"$gcc_cv_gld_major_version\" -eq 2 -a \"$gcc_cv_gld_minor_version\" -ge 14 -o \"$gcc_cv_gld_major_version\" -gt 2; then \\\n       gcc_cv_ld_demangle=yes\n     fi\n-  elif test x$gcc_cv_ld != x -a x\"$gnu_ld\" = xyes; then\n+  elif test x$gcc_cv_ld != x; then\n     # Check if the GNU linker supports --demangle option\n     if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then\n       gcc_cv_ld_demangle=yes\n",
    "prefixes": [
        "5/6"
    ]
}