get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2233377,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2233377/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/yddecjpq86p.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": "<yddecjpq86p.fsf_-_@CeBiTec.Uni-Bielefeld.DE>",
    "date": "2026-05-06T08:00:14",
    "name": "[v2,1/6] Remove HAVE_GNU_AS",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "9146b75d475aa32fc5499dd359aac7a987803747",
    "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/yddecjpq86p.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/2233377/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2233377/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=SjtJiiBn;\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=SjtJiiBn",
            "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 4g9Wd65CLJz1yJV\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 06 May 2026 20:21:30 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [IPv6:::1])\n\tby sourceware.org (Postfix) with ESMTP id B36784BA798E\n\tfor <incoming@patchwork.ozlabs.org>; Wed,  6 May 2026 10:21:28 +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 1F4154BA7981\n for <gcc-patches@gcc.gnu.org>; Wed,  6 May 2026 08:00:22 +0000 (GMT)",
            "from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1])\n by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id C924EE33CA;\n Wed,  6 May 2026 10:00:20 +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 569DLN00IU2f; Wed,  6 May 2026 10:00:15 +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 285DDE32E7;\n Wed,  6 May 2026 10:00:15 +0200 (CEST)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org B36784BA798E",
            "OpenDKIM Filter v2.11.0 sourceware.org 1F4154BA7981"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 1F4154BA7981",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 1F4154BA7981",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1778054422; cv=none;\n b=IFzLsUsfzv4bwGfr30g84fTkans/wDUvoV2ni0N5qgQa7Axtwrq5nLma+64Hjv8jGdWHkvqzJekGqX1MPR7qF+ds9C11S8Q5Ymm6jtqdSYDChBQVhgkd9P1HaXZ4wORs3HmLssfcpd+tAVmvJY64pN6bz7CartWFuNCIB+awaQs=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1778054422; c=relaxed/simple;\n bh=NMOZS3ggNEHJfkTgxJN/mCX7bo3XDuQyv5qXBY+SNhQ=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=LauoClQdfQzju6ArSDAo7NTbvrYf/zpWaKVfg51De4g3+rD62ELeQaKQ+pHvRtdA6kaz2k9/p/damOt27dIjQZR722Vg9UnSohXQCy8LZtpW0P3BST2cdDFZGcSa0pLIeLGXZu3P+jYYn7XiaRHOqsWcgHbTrSD6TCf9q5HXujg=",
        "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=SjtJiiBn",
        "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=1778054415; bh=NMOZS3ggNEHJfkTgxJN/mCX7bo3XDuQyv5qXB\n Y+SNhQ=; b=SjtJiiBn6G5O6KVJ7SwqoNJe/NIUwQjDg4yzwJym8IAUgchvhWQ3p\n hDBzdLTi4H4BINXjQzG0jOfvOMNcWzNZ+iLjbyhh6elrYFQUUcMUs/629933ltbZ\n o1a3MxiERXqb3YKwgBGNp74sknKWPxBxotzYjvhxIqhWqh197mP9lUClVpgeMRjR\n h4Vox3liKMdS2cmiWI+oFfacnVA/SN6nBGA4VSXFDTPrTAWDvwObZTjSmBxYGnmR\n oqoBrn6PQLDQQz522ING/xCsqsFxEdgHuwbuoOK9UWgO0E44eE1rkAsUr4B/5N2x\n PnTzROD5fK199AnAjmYGRh1ezGuWdz71Q==",
        "X-Virus-Scanned": "amavisd-new at cebitec.uni-bielefeld.de",
        "From": "Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>",
        "To": "David Edelsohn <dje.gcc@gmail.com>",
        "Cc": "Richard Biener <rguenther@suse.de>,  Alexandre Oliva <oliva@gnu.org>,\n gcc-patches@gcc.gnu.org,  Iain Sandoe <iain@sandoe.co.uk>,  John David\n Anglin <dave.anglin@bell.net>,  Thomas Schwinge <tschwinge@baylibre.com>,\n Jakub Jelinek <jakub@redhat.com>",
        "Subject": "[PATCH v2 1/6] Remove HAVE_GNU_AS",
        "In-Reply-To": "<yddo6iz2bg2.fsf@CeBiTec.Uni-Bielefeld.DE> (Rainer Orth's message\n of \"Fri, 01 May 2026 21:10:05 +0200\")",
        "References": "<yddmryj5z2j.fsf@CeBiTec.Uni-Bielefeld.DE>\n <BDC664D1-DDB2-463B-918B-10A571418DEF@suse.de>\n <CAGWvny=P6gUrsjTsgp6zPhkKZv17ou-ZM5Pm0rg+Pud1ZARw=w@mail.gmail.com>\n <yddse8b2ca0.fsf@CeBiTec.Uni-Bielefeld.DE>\n <CAGWvny=vGjDXNOtdMzV58gGLXmyu-oxJQZ5348NL6tZv3SMzmA@mail.gmail.com>\n <yddo6iz2bg2.fsf@CeBiTec.Uni-Bielefeld.DE>",
        "Date": "Wed, 06 May 2026 10:00:14 +0200",
        "Message-ID": "<yddecjpq86p.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 David,\n\n>>> >> * AIX: native as and ld\n>>> >\n>>> > AIX supports both native as/ld and GNU as/ld.  GNU ld is more common than\n>>> > GNU as.\n>>> > It would have been nice to handle both, like Solaris, but I understand\n>>> that\n>>> > supporting both is more\n>>> > of a hassle.\n>>>\n>>> I missed that in the AIX install.texi section.  Maybe it would be good\n>>> to weed that out a bit.\n>>>\n>>> Anyway, handling those cases isn't really hard: just like the\n>>> solaris_as/solaris_ld handling in gcc/configure.ac, and hpux_ld in the v2\n>>>\n>>>         build: Remove $gnu_ld\n>>>         https://gcc.gnu.org/pipermail/gcc-patches/2026-May/715430.html\n>>>\n>>> patch one can just check $gcc_cv_as/$gcc_cv_ld for the output of the\n>>> native commands, assuming gas/gld otherwise.  Depending on that, one\n>>> would define AIX_{AS,LD} just like SOLARIS_{AS,LD} and use that to\n>>> restrict the ASM_V_SPEC redefinition to AIX as.\n>>>\n>>> It's quite trivial, actually.  I could give it a try on cfarm119 (AIX\n>>> 7.3) if you like.\n>>>\n>>\n>> If you can handle both, that would be nicer, but I'm not going to make\n>> that a requirement for the patch if you don't have time.\n>\n> fine.  I'll go ahead with the patch as is for now, but handle the AIX\n> as/ld as a follow-up.  I have a similar patch for ASM_V_SPEC with gas on\n> Solaris already done, to be installed after this series is in.\n\nthis is the revised patch, handling both AIX and Solaris as.  That's the\nonly change relative to v1.\n\nSo the only part that needs approval is this rs6000/aix.h change.\n\n---------------------------------------------------------------------------\n\nThis patch removes or replaces the remaining uses of HAVE_GNU_AS:\n\n* gcc.cc (asm_options) has a sub-spec to map the gcc -v/-w/-I options to\n  their assembler equivalents.  It is replaced by ASM_V_SPEC, defaulting\n  to the gas version.  Non-gas configurations define their own versions.\n\n* Darwin has ASM_OPTIONS which is identical to the default ASM_V_SPEC\n  and can just be removed.\n\n* sol2.h currently handles -v in ASM_SPEC_BASE.  This patch moves this\n  to an Solaris-as only version of ASM_V_SPEC.  This also handles the\n  gcc -w -> as -n mapping.  The spec doesn't pass on -I, though:\n  preprocessing .S files is handled by gcc itself, the -I option is only\n  used for gas' .include directive which as doesn't support.  Solaris as\n  instead could handle preprocessing by passing the source through cpp\n  when the -P option is given.  It also uses -D/-U/-I for that.\n\n* ia64/hpux.h guards AS_NEEDS_DASH_FOR_PIPED_INPUT with !HAVE_GNU_AS,\n  but according to install.texi ia64-*-hpux* requires gas so this can\n  just go.\n\n* nvptx/nvptx.h handles the mapping in ASM_SPEC.  This is done in\n  ASM_V_SPEC now.  The nvptx as has no equivalents of -w and -I.\n\n* AIX as only supports -v and -W, so rs6000/aix.h gets a matching\n  ASM_V_SPEC when as is in use.\n\nOk for trunk?\n\n\tRainer",
    "diff": "# HG changeset patch\n# Parent  4b212240719bda857db3450c6acbb5f518fdb2c0\nRemove HAVE_GNU_AS\n\ndiff --git a/gcc/config.in b/gcc/config.in\n--- a/gcc/config.in\n+++ b/gcc/config.in\n@@ -1616,12 +1616,6 @@\n #endif\n \n \n-/* Define to 1 if using GNU as. */\n-#ifndef USED_FOR_TARGET\n-#undef HAVE_GNU_AS\n-#endif\n-\n-\n /* Define if your system supports gnu indirect functions. */\n #ifndef USED_FOR_TARGET\n #undef HAVE_GNU_INDIRECT_FUNCTION\ndiff --git a/gcc/config/darwin.h b/gcc/config/darwin.h\n--- a/gcc/config/darwin.h\n+++ b/gcc/config/darwin.h\n@@ -663,21 +663,12 @@ extern GTY(()) int darwin_ms_struct;\n #define ASM_MMACOSX_VERSION_MIN_SPEC \" %<asm_macosx_version_min=* \"\n #endif\n \n-#if HAVE_GNU_AS\n-/* The options are added in gcc.cc for this case.  */\n-#define ASM_OPTIONS \"\"\n-#else\n-/* When we detect that we're cctools or llvm as, we need to insert the right\n-   additional options.  Actually, currently these are the same as GAS.  */\n-#define ASM_OPTIONS \"%{v} %{w:-W} %{I*}\"\n-#endif\n-\n #define AS_NEEDS_DASH_FOR_PIPED_INPUT\n \n /* Default Darwin ASM_SPEC, very simple. */\n #define ASM_SPEC \\\n \"%{static} -arch %(darwin_arch) \" \\\n-ASM_OPTIONS ASM_MMACOSX_VERSION_MIN_SPEC\n+ASM_MMACOSX_VERSION_MIN_SPEC\n \n #define ASM_DEBUG_SPEC  \"\"\n #undef  ASM_DEBUG_OPTION_SPEC\ndiff --git a/gcc/config/i386/darwin.h b/gcc/config/i386/darwin.h\n--- a/gcc/config/i386/darwin.h\n+++ b/gcc/config/i386/darwin.h\n@@ -105,7 +105,7 @@ along with GCC; see the file COPYING3.  \n #undef ASM_SPEC\n #define ASM_SPEC \\\n \"%{static} -arch %(darwin_arch) \" \\\n- ASM_OPTIONS ASM_MMACOSX_VERSION_MIN_SPEC EXTRA_ASM_OPTS \\\n+ ASM_MMACOSX_VERSION_MIN_SPEC EXTRA_ASM_OPTS \\\n \"%{!force_cpusubtype_ALL:-force_cpusubtype_ALL} \"\n \n #undef ENDFILE_SPEC\ndiff --git a/gcc/config/ia64/hpux.h b/gcc/config/ia64/hpux.h\n--- a/gcc/config/ia64/hpux.h\n+++ b/gcc/config/ia64/hpux.h\n@@ -62,10 +62,6 @@ do {\t\t\t\t\t\t\t\\\n #undef  ASM_EXTRA_SPEC\n #define ASM_EXTRA_SPEC \"%{milp32:-milp32} %{mlp64:-mlp64}\"\n \n-#ifndef HAVE_GNU_AS\n-#define AS_NEEDS_DASH_FOR_PIPED_INPUT\n-#endif\n-\n #ifndef CROSS_DIRECTORY_STRUCTURE\n #undef MD_EXEC_PREFIX\n #define MD_EXEC_PREFIX \"/usr/ccs/bin/\"\ndiff --git a/gcc/config/nvptx/nvptx.h b/gcc/config/nvptx/nvptx.h\n--- a/gcc/config/nvptx/nvptx.h\n+++ b/gcc/config/nvptx/nvptx.h\n@@ -31,9 +31,8 @@\n #define OPTION_DEFAULT_SPECS \\\n   { \"arch\", \"%{!misa=*:-misa=%(VALUE)}\" }, \\\n \n-/* Assembler supports '-v' option; handle similar to\n-   '../../gcc.cc:asm_options', 'HAVE_GNU_AS'.  */\n-#define ASM_SPEC \"%{v}\"\n+/* Assembler only supports '-v' option.  */\n+#define ASM_V_SPEC \"%{v}\"\n \n #define STARTFILE_SPEC \"%{mmainkernel:crt0.o%s}\"\n \ndiff --git a/gcc/config/rs6000/aix.h b/gcc/config/rs6000/aix.h\n--- a/gcc/config/rs6000/aix.h\n+++ b/gcc/config/rs6000/aix.h\n@@ -177,6 +177,10 @@\n #undef ASM_DEFAULT_SPEC\n #define ASM_DEFAULT_SPEC \"\"\n \n+#ifdef HAVE_AIX_AS\n+#define ASM_V_SPEC \"%{v} %{w:-W}\"\n+#endif\n+\n /* Tell the assembler to assume that all undefined names are external.\n \n    Don't do this until the fixed IBM assembler is more generally available.\ndiff --git a/gcc/config/sol2.h b/gcc/config/sol2.h\n--- a/gcc/config/sol2.h\n+++ b/gcc/config/sol2.h\n@@ -143,7 +143,7 @@ along with GCC; see the file COPYING3.  \n /* It's safe to pass -s always, even if -g is not used.  Those options are\n    handled by both Sun as and GNU as.  */\n #define ASM_SPEC_BASE \\\n-\"%{v:-V} %{Qy:} %{!Qn:-Qy} %{Ym,*} -s %(asm_cpu)\"\n+\"%{Qy:} %{!Qn:-Qy} %{Ym,*} -s %(asm_cpu)\"\n \n #define ASM_PIC_SPEC \" %{\" FPIE_OR_FPIC_SPEC \":-K PIC}\"\n \n@@ -447,9 +447,14 @@ along with GCC; see the file COPYING3.  \n #undef TARGET_ASM_ASSEMBLE_VISIBILITY\n #define TARGET_ASM_ASSEMBLE_VISIBILITY solaris_assemble_visibility\n \n-#define AS_NEEDS_DASH_FOR_PIPED_INPUT\n+/* Handle gcc -v/-w options.  There's no point including -I: while as accepts\n+   it, it's only useful in combination with -P which invokes cpp.  Instead, gas\n+   uses -I for the .include directive, but as doesn't understand that.  */\n+#define ASM_V_SPEC \"%{v:-V} %{w:-n}\"\n \n+#define AS_NEEDS_DASH_FOR_PIPED_INPUT\n #endif\n+\n /* Solaris has an implementation of __enable_execute_stack.  */\n #define HAVE_ENABLE_EXECUTE_STACK\n \ndiff --git a/gcc/configure b/gcc/configure\n--- a/gcc/configure\n+++ b/gcc/configure\n@@ -13126,13 +13126,6 @@ cat >>confdefs.h <<_ACEOF\n _ACEOF\n \n \n-gnu_as_bool=`if test x\"$gas\" = x\"yes\"; then echo 1; else echo 0; fi`\n-\n-cat >>confdefs.h <<_ACEOF\n-#define HAVE_GNU_AS $gnu_as_bool\n-_ACEOF\n-\n-\n count=a\n for f in $host_xm_file; do\n \tcount=${count}x\n@@ -21975,7 +21968,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 21971 \"configure\"\n #include \"confdefs.h\"\n \n #if HAVE_DLFCN_H\n@@ -22081,7 +22074,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 22077 \"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@@ -2035,9 +2035,6 @@ fi\n gnu_ld_bool=`if test x\"$gnu_ld\" = x\"yes\"; then echo 1; else echo 0; fi`\n AC_DEFINE_UNQUOTED(HAVE_GNU_LD, $gnu_ld_bool, [Define to 1 if using GNU ld.])\n \n-gnu_as_bool=`if test x\"$gas\" = x\"yes\"; then echo 1; else echo 0; fi`\n-AC_DEFINE_UNQUOTED(HAVE_GNU_AS, $gnu_as_bool, [Define to 1 if using GNU as.])\n-\n count=a\n for f in $host_xm_file; do\n \tcount=${count}x\ndiff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi\n--- a/gcc/doc/tm.texi\n+++ b/gcc/doc/tm.texi\n@@ -232,6 +232,15 @@ See the file @file{sun3.h} for an exampl\n Do not define this macro if it does not need to do anything.\n @end defmac\n \n+@defmac ASM_V_SPEC\n+A C string constant that tells the GCC driver how to translate the\n+@option{-v}, @option{-w}, and @option{-I} options into their assembler\n+equivalents.\n+\n+Only define this macro if the default, which matches GNU as, isn't\n+appropriate.\n+@end defmac\n+\n @defmac ASM_FINAL_SPEC\n A C string constant that tells the GCC driver program how to\n run any programs which cleanup after the normal assembler.\ndiff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in\n--- a/gcc/doc/tm.texi.in\n+++ b/gcc/doc/tm.texi.in\n@@ -232,6 +232,15 @@ See the file @file{sun3.h} for an exampl\n Do not define this macro if it does not need to do anything.\n @end defmac\n \n+@defmac ASM_V_SPEC\n+A C string constant that tells the GCC driver how to translate the\n+@option{-v}, @option{-w}, and @option{-I} options into their assembler\n+equivalents.\n+\n+Only define this macro if the default, which matches GNU as, isn't\n+appropriate.\n+@end defmac\n+\n @defmac ASM_FINAL_SPEC\n A C string constant that tells the GCC driver program how to\n run any programs which cleanup after the normal assembler.\ndiff --git a/gcc/gcc.cc b/gcc/gcc.cc\n--- a/gcc/gcc.cc\n+++ b/gcc/gcc.cc\n@@ -709,6 +709,12 @@ proper position among the other output f\n #define ASM_SPEC \"\"\n #endif\n \n+/* config.h can define ASM_V_SPEC to pass equivalents of -v, -w (no warnings),\n+   and -I to the assembler.  */\n+#ifndef ASM_V_SPEC\n+#define ASM_V_SPEC \"%{v} %{w:-W} %{I*}\"\n+#endif\n+\n /* config.h can define ASM_FINAL_SPEC to run a post processor after\n    the assembler has run.  */\n #ifndef ASM_FINAL_SPEC\n@@ -1327,12 +1333,8 @@ static const char *cc1_options =\n \n static const char *asm_options =\n \"%{-target-help:%:print-asm-header()} \"\n-#if HAVE_GNU_AS\n-/* If GNU AS is used, then convert -w (no warnings), -I, and -v\n-   to the assembler equivalents.  */\n-\"%{v} %{w:-W} %{I*} \"\n-#endif\n-\"%(asm_debug_option)\"\n+ASM_V_SPEC\n+\" %(asm_debug_option)\"\n ASM_COMPRESS_DEBUG_SPEC\n \"%a %Y %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}\";\n \n",
    "prefixes": [
        "v2",
        "1/6"
    ]
}