From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13676 invoked by alias); 18 Oct 2014 00:14:05 -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 13664 invoked by uid 89); 18 Oct 2014 00:14:04 -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,RCVD_IN_DNSWL_NONE 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; Sat, 18 Oct 2014 00:14:04 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-02.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1XfHei-0001dI-1u from joseph_myers@mentor.com ; Fri, 17 Oct 2014 17:14:00 -0700 Received: from digraph.polyomino.org.uk (137.202.0.76) by SVR-IES-FEM-02.mgc.mentorg.com (137.202.0.106) with Microsoft SMTP Server id 14.3.181.6; Sat, 18 Oct 2014 01:13:58 +0100 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.82) (envelope-from ) id 1XfHeg-0008Va-AY; Sat, 18 Oct 2014 00:13:58 +0000 Date: Sat, 18 Oct 2014 00:41: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-1937098824-1413591238=:14369" X-SW-Source: 2014-10/txt/msg01802.txt.bz2 ---1152306461-1937098824-1413591238=:14369 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: QUOTED-PRINTABLE Content-length: 641 On Sat, 18 Oct 2014, Manuel L=F3pez-Ib=E1=F1ez wrote: > Can we make "possibly in some other cases" more concrete? Otherwise, Cases where something about the code is not defined by the base standard,=20 but a diagnostic is not required. -pedantic may give a warning for such=20 cases. -pedantic-errors may give an error *if* there is compile-time=20 undefined behavior (not if the not-definedness is something other than=20 undefined behavior, or is undefined behavior only if the code in question=20 is executed, although it will still give a warning for such cases if=20 -pedantic does). --=20 Joseph S. Myers joseph@codesourcery.com= ---1152306461-1937098824-1413591238=:14369--