From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26024 invoked by alias); 17 Oct 2014 23:43:34 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 25957 invoked by uid 89); 17 Oct 2014 23:43:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 17 Oct 2014 23:43:31 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-03.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1XfHB9-0007LF-RB from joseph_myers@mentor.com ; Fri, 17 Oct 2014 16:43:28 -0700 Received: from digraph.polyomino.org.uk (137.202.0.76) by SVR-IES-FEM-03.mgc.mentorg.com (137.202.0.108) with Microsoft SMTP Server id 14.3.181.6; Sat, 18 Oct 2014 00:43:26 +0100 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.82) (envelope-from ) id 1XfHB8-00081X-7Q; Fri, 17 Oct 2014 23:43:26 +0000 Date: Sat, 18 Oct 2014 00:04:00 -0000 From: "Joseph S. Myers" To: =?ISO-8859-1?Q?Manuel_L=F3pez=2DIb=E1=F1ez?= CC: Gcc Patch List Subject: Re: [PATCH doc] Explain options precedence and difference between -pedantic-errors and -Werror=pedantic In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="-1152306461-1808614087-1413589406=:14369" X-SW-Source: 2014-10/txt/msg01800.txt.bz2 ---1152306461-1808614087-1413589406=:14369 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: QUOTED-PRINTABLE Content-length: 1322 On Sat, 18 Oct 2014, Manuel L=F3pez-Ib=E1=F1ez wrote: > The previous version also does not match your description. You are saying= that >=20 > -Wpedantic =3D warning(OPT_Wpedantic) + pedwarn(OPT_Wpedantic) > and -pedantic-errors =3D pedwarn(OPT_Wpedantic).+ pedwarn(0) >=20 > The current version says that >=20 > -Wpedantic =3D warning(OPT_Wpedantic) + pedwarn(OPT_Wpedantic) > and -pedantic-errors =3D warning(OPT_Wpedantic) + pedwarn(OPT_Wpedantic) >=20 > My proposal says that: >=20 > -Wpedantic =3D warning(OPT_Wpedantic) + pedwarn(OPT_Wpedantic) > and -pedantic-errors =3D warning(OPT_Wpedantic) + pedwarn(OPT_Wpedantic) > + pedwarn(0) None of those three descriptions seems helpful here. The point of -pedantic is to give a diagnostic whenever the standard=20 requires one (and possibly in some other cases). The point of=20 -Werror=3Dpedantic is to give an error for diagnostics enabled by -pedantic= =20 (whether or not the standard requires a diagnostic in those cases, and=20 whether or not the standard requires successful translation in those=20 cases). The point of -pedantic-errors is to give an error whenever the=20 standard requires a diagnostic (and possibly in some other cases, but not=20 cases where the standard requires successful translation). --=20 Joseph S. Myers joseph@codesourcery.com= ---1152306461-1808614087-1413589406=:14369--