From 0e1bc4d52f9310c561b29ad14fea9b580cd9f79c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20L=C3=B3pez-Ib=C3=A1=C3=B1ez?= Date: Tue, 21 Oct 2014 22:37:55 +0000 Subject: invoke.texi (pedantic-errors): Explain better. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2014-10-21 Manuel López-Ibáñez * doc/invoke.texi (pedantic-errors): Explain better. From-SVN: r216528 --- gcc/doc/invoke.texi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gcc/doc') diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 644169e..c200399 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -3328,8 +3328,12 @@ nothing to warn about.) @item -pedantic-errors @opindex pedantic-errors -Like @option{-Wpedantic}, except that errors are produced rather than -warnings. +Give an error whenever the @dfn{base standard} (see @option{-Wpedantic}) +requires a diagnostic, in some cases where there is undefined behavior +at compile-time and in some other cases that do not prevent compilation +of programs that are valid according to the standard. This is not +equivalent to @option{-Werror=pedantic}, since there are errors enabled +by this option and not enabled by the latter and vice versa. @item -Wall @opindex Wall -- cgit v1.1