{"id":2224776,"url":"http://patchwork.ozlabs.org/api/patches/2224776/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/patch/05d29abb-a190-4318-b724-b83be9b93acf@hexco.de/","project":{"id":17,"url":"http://patchwork.ozlabs.org/api/projects/17/?format=json","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,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<05d29abb-a190-4318-b724-b83be9b93acf@hexco.de>","list_archive_url":null,"date":"2026-04-18T14:11:44","name":"doc: update list of -Wextra options in invoke.texi","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"a69684b6357e946df1f28f118c9574fdd2a62088","submitter":{"id":93079,"url":"http://patchwork.ozlabs.org/api/people/93079/?format=json","name":"Heiko Eißfeldt","email":"heiko.Eissfeldt@hexco.de"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/gcc/patch/05d29abb-a190-4318-b724-b83be9b93acf@hexco.de/mbox/","series":[{"id":500443,"url":"http://patchwork.ozlabs.org/api/series/500443/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/list/?series=500443","date":"2026-04-18T14:11:44","name":"doc: update list of -Wextra options in invoke.texi","version":1,"mbox":"http://patchwork.ozlabs.org/series/500443/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2224776/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2224776/checks/","tags":{},"related":[],"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=hexco.de header.i=heiko.eissfeldt@hexco.de\n header.a=rsa-sha256 header.s=s1-ionos header.b=j6SjjWPf;\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=hexco.de header.i=heiko.eissfeldt@hexco.de\n header.a=rsa-sha256 header.s=s1-ionos header.b=j6SjjWPf","sourceware.org;\n dmarc=pass (p=none dis=none) header.from=hexco.de","sourceware.org; spf=pass smtp.mailfrom=hexco.de","server2.sourceware.org;\n arc=none smtp.remote-ip=217.72.192.74"],"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 4fyYTl0gK1z1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 19 Apr 2026 00:07:05 +1000 (AEST)","from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id BBF8C4CD2019\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 18 Apr 2026 14:07:01 +0000 (GMT)","from mout.kundenserver.de (mout.kundenserver.de [217.72.192.74])\n by sourceware.org (Postfix) with ESMTPS id E7F3E4AA54C7\n for <gcc-patches@gcc.gnu.org>; Sat, 18 Apr 2026 14:06:30 +0000 (GMT)","from client.hidden.invalid by mrelayeu.kundenserver.de (mreue109\n [212.227.15.153]) with ESMTPSA (Nemesis) id 1MjjGX-1vXMZK0aXT-00pCMU for\n <gcc-patches@gcc.gnu.org>; Sat, 18 Apr 2026 16:06:29 +0200"],"DKIM-Filter":["OpenDKIM Filter v2.11.0 sourceware.org BBF8C4CD2019","OpenDKIM Filter v2.11.0 sourceware.org E7F3E4AA54C7"],"DMARC-Filter":"OpenDMARC Filter v1.4.2 sourceware.org E7F3E4AA54C7","ARC-Filter":"OpenARC Filter v1.0.0 sourceware.org E7F3E4AA54C7","ARC-Seal":"i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776521192; cv=none;\n b=ogm0uRO0WMRiwmP7iebw7UtGBmam0VI03k+Ym8cuksCoIdryxuj4/3d6taG/dHDkalvl4Gc0G9b4V4pgHPyfrGSyb2mL8YGj7Hv3LyHbDYsDu6QQHy/DFvQ9HMJC4C6/Q3qzR1+Gn+A1tP+2PVm7p4YHyzOdxz/uMeGnjRiDAy4=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776521192; c=relaxed/simple;\n bh=+y/Z6ZK8qOZFAYidMEIgkbwoxG4IFSl30bkME5qkWf8=;\n h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject;\n b=V97A9AGCeILcZdD6iak2HZyxjneiELY8Mc79e4fTjQwNtetyWaQ1OzWBfqj37iWm765uTEYlmcPuvjVzZGH4nUTGRfjBeNZsTatdSHctrOpR4HSqL5z4zrxRuKt+IdV/VsswUILGfwn0AkJe/U5FbipvrTNnJ4Apq3WuTwouROY=","ARC-Authentication-Results":"i=1; server2.sourceware.org","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=hexco.de;\n s=s1-ionos; t=1776521189; x=1777125989; i=heiko.eissfeldt@hexco.de;\n bh=BdSf2oiFu1zvGKijHuzoXmUVI+aEsU/G9nQLzEUiiiI=;\n h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:To:From:Subject:\n Content-Type:cc:content-transfer-encoding:content-type:date:from:\n message-id:mime-version:reply-to:subject:to;\n b=j6SjjWPfgHA7za3x4tJyfxTmU5g0jCQqtOwkfk7sgPSgfSUfq8dl97OACLNdihXM\n gcA2iTAyeAC0AYLIfgcGPYUrDZ2n0kBlTIoeU2LHMOycleF/ktf8FXCEs6cbrAf9Q\n yE0UYwIwzzUF+ida7E4EexGWNxsjY86cX4BPHc3OHD+uTMqHOERHHeBY0ahnEzvkR\n bkyyR5JMLHcW4iz5HCU7xzuhwXDFRNUjhfyIMGWHOoxyuWhxJHssPsYvxNBl+7+HO\n 25NlXvwmT8pkRx8/ProJxgCquHUYc5v5U+cNV4WhLVzZ4WIifR3ik8PzzEfEe7ft6\n nOrl2fJnTIojBVsT1g==","X-UI-Sender-Class":"55c96926-9e95-11ee-ae09-1f7a4046a0f6","Message-ID":"<05d29abb-a190-4318-b724-b83be9b93acf@hexco.de>","Date":"Sat, 18 Apr 2026 16:11:44 +0200","MIME-Version":"1.0","User-Agent":"Mozilla Thunderbird","Content-Language":"en-US","To":"gcc-patches@gcc.gnu.org","From":"=?utf-8?q?Heiko_Ei=C3=9Ffeldt?= <heiko.Eissfeldt@hexco.de>","Subject":"[Patch] doc: update list of -Wextra options in invoke.texi","Content-Type":"multipart/signed; micalg=pgp-sha256;\n protocol=\"application/pgp-signature\";\n boundary=\"------------pXCAKY5PNssm4qx2R30SQ0m9\"","X-Provags-ID":"V03:K1:sorfB4YnbvFN8Jgmy1VcHKzz/y3974lRS8sMekk/K0j+/KLfXib\n EsNkxswnHVQIJaV/TrazXHucqoEzFBNt9cwp8WqzjTtYEreyJqH8MLTMoOhuJ0PPLvu4Df6\n j9Oz4JycLdtZVVka2e3i/L0VIHZgYOn2kSCMt+LuwHhInIQ8TXO6AtQ7p1GazF6EbA9kynU\n L94ev637k62MAZs45FWUg==","UI-OutboundReport":"notjunk:1;M01:P0:VXQr5/HqMmY=;h5BtcTozT29OqjeaH5vaWN63ui4\n HpBHZocWISAs0oMiwrCJRPXbPJgkZrrX+SJIRkPuaBAEpv6ekgcF+i3RYSikKqqWhzxq2C2hr\n lgg3gVgAOJ9vi56k4jz+YMnB/65jbWcPDVC4t6DJUapdClAfQBgwjoP75lNWlWkE7EpvH8IYa\n mTaQH4vzWxRp96Y1VCBfymcqOs5UB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m6SBBRknz1sQjpRBrzUQ5uz\n W9VAmVQzqb3R4roBa+tIWXivlS1OrHWyQ45xR22Sz6imisXz7aIhp3F6JXOMb1W8O/L0BUWSV\n ilHpS3/gLnb+3QmUaHkMUf1Q+MiarwtVfpqxrVbFvN3/UTZNrgvvW6q4rodm1JNDaZMROcN2j\n LHfQntVeB0r7FRdtQbTEzrmfb3/lzinAW+xpNd3zOhFIDN0nrMPT0laVhBywbF6A7r1FGA8e/\n j3fcq58AzKncsGtAEwBUP0pSbI9nnZw0M96kh7Yu9It0CyOc8IGnRYmdqKeXqEHWiMm5+pTHi\n z7Lreo066m4bbBMVjgEXyEqgMxLlYR4VqWOJHvDf1dB1aITu/huHBBYpRdo8U9+VPfFXl7xev\n N+xIg9p2WkVwaC3ZN9ReQ75TG5HVVBfs9j1qqg1m/2ptFsz/eLqfd9g70ARnk4E8VU+b1sWyT\n qGVIOgB66M5RMu8Iow6SN5N8xewaIpQ/6D0zW4kxhwfzwnNyU94xdjvicPxD6KkV3FeKtwemF\n XNQUMPSUGukg0CpIurILu8wnu3L843d1jg5tNjAB/Nx/lxLaYgf2NfnmgWFQM5SyMMEka02oQ\n 8VojKcYbgth/FD+sc26USSeZ9O3bed7iKMBoiQtj/omAg1LUO3hFRGXMndyV3TjCMYes2NBoP\n 8t7Rp7aMsY+0soLRNb3BEkXmj8mqrlnU/fhHuaz3slYfAERpj43DbeXXhylIXNLr6J4dJd3ia\n lYiAzhxaDb4heBFzfl+9vyOvukCRnp+aYgMGlMeORyyzatSY2/ZBoQhx7x8dIx+keuae19xnj\n xFCNcv85g+3g5l3pZLU3GRW6s6lTDCJ+f4BdRJz5J","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":"While working on https://gcc.gnu.org/bugzilla/show_bug.cgi?id=7651 \n(Define -Wextra strictly in terms of other warning flags) I started with \nchecking the documentation for warning options that are enabled by \n-Wextra. Whenever the individual option was described as being enabled \nwith -Wextra I checked whether this option is listed under the \ndescription of -Wextra. I could add 3 missing named options and remove \none unnamed warning \"Ambiguous virtual bases\", which now seems to be \n-Winaccessible-base. I found that -Wenum-conversion also warns for \nObjective-C (which I added) and -Wno-builtin-declaration-mismatch is \navailable for C and Objective-C. In the example code for \n-Wno-builtin-declaration-mismatch I found that this is only working as \ndescribed for C versions up to C18, but not anymore for C23, which \nproduces an error here instead. This is intended for the upcoming 16.1 \nrelease. 2026-04-18  Heiko Eißfeldt<heiko@hexco.de>\n\nPR middle-end/7651\n\t* gcc/doc/invoke.texi (-Wextra):\n\tupdate list of enabled warning options for -Wextra\n\tadd language dependencies for -Wenum-conversion and\n-Wno-builtin-declaration-mismatch\n\tadd C version to-Wno-builtin-declaration-mismatch\n\texample code description","diff":"diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi\nindex 9207a021e64..db15d98d104 100644\n--- a/gcc/doc/invoke.texi\n+++ b/gcc/doc/invoke.texi\n@@ -6909,8 +6909,10 @@ name is still supported, but the newer name is more descriptive.)\n -Wempty-body\n -Wenum-conversion @r{(only for C/ObjC)}\n -Wexpansion-to-defined\n--Wignored-qualifiers  @r{(only for C/C++)}\n+-Wignored-qualifiers @r{(only for C/C++)}\n+-Winaccessible-base @r{(C++ and Objective-C++ only)}\n -Wimplicit-fallthrough=3\n+-Wmaybe-musttail-local-addr\n -Wmaybe-uninitialized\n -Wmissing-field-initializers\n -Wmissing-parameter-name @r{(C/ObjC only)}\n@@ -6923,6 +6925,7 @@ name is still supported, but the newer name is more descriptive.)\n -Wsign-compare @r{(C++ and Objective-C++ only)}\n -Wsized-deallocation @r{(C++ and Objective-C++ only)}\n -Wstring-compare\n+-Wtemplate-names-tu-local\n -Wtype-limits\n -Wuninitialized\n -Wunterminated-string-initialization @r{(C/ObjC only)}\n@@ -6942,9 +6945,6 @@ A pointer is compared against integer zero with @code{<}, @code{<=},\n (C++ only) An enumerator and a non-enumerator both appear in a\n conditional expression.\n \n-@item\n-(C++ only) Ambiguous virtual bases.\n-\n @item\n (C++ only) Subscripting an array that has been declared @code{register}.\n \n@@ -10424,7 +10424,7 @@ enabled by @option{-Wall}.\n @item -Wenum-conversion\n Warn when a value of enumerated type is implicitly converted to a\n different enumerated type.  This warning is enabled by @option{-Wextra}\n-in C@.\n+in C and Objective-C@.\n \n @opindex Wenum-int-mismatch\n @opindex Wno-enum-int-mismatch\n@@ -10711,7 +10711,7 @@ Note that @option{-Wno-attributes=} does not imply @option{-Wno-attributes}.\n \n @opindex Wno-builtin-declaration-mismatch\n @opindex Wbuiltin-declaration-mismatch\n-@item -Wno-builtin-declaration-mismatch\n+@item -Wno-builtin-declaration-mismatch @r{(C and Objective-C only)}\n Warn if a built-in function is declared with an incompatible signature\n or as a non-function, or when a built-in function declared with a type\n that does not include a prototype is called with arguments whose promoted\n@@ -10721,9 +10721,9 @@ declared without a prototype.  The @option{-Wbuiltin-declaration-mismatch}\n warning is enabled by default.  To avoid the warning include the appropriate\n header to bring the prototypes of built-in functions into scope.\n \n-For example, the call to @code{memset} below is diagnosed by the warning\n-because the function expects a value of type @code{size_t} as its argument\n-but the type of @code{32} is @code{int}.  With @option{-Wextra},\n+For example, up to C18 the call to @code{memset} below is diagnosed by the\n+warning because the function expects a value of type @code{size_t} as its\n+argument but the type of @code{32} is @code{int}.  With @option{-Wextra},\n the declaration of the function is diagnosed as well.\n @smallexample\n extern void* memset ();\n","prefixes":[]}