summaryrefslogtreecommitdiff
path: root/gcc/invoke.texi
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1999-11-30 23:26:37 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1999-11-30 23:26:37 +0000
commitcc13a10a1e9ebc15e97cf3ba939dae87f2edc77b (patch)
tree1d2e79beb5a4999f5868fca5ed690dba7a1f2a64 /gcc/invoke.texi
parent287e48a086ce4447a6e7fe030cba6d078341f88a (diff)
downloadgcc-cc13a10a1e9ebc15e97cf3ba939dae87f2edc77b.tar.gz
* c-lex.c (yylex): With -Wtraditional, when the ANSI type of an
integer constant does not match the traditional type, limit the warnings to cases where the base of the type is ten. * invoke.texi (-Wtraditional): Document it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30730 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/invoke.texi')
-rw-r--r--gcc/invoke.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/invoke.texi b/gcc/invoke.texi
index 567c2a2f092..f1b064975c6 100644
--- a/gcc/invoke.texi
+++ b/gcc/invoke.texi
@@ -1692,6 +1692,12 @@ A @code{switch} statement has an operand of type @code{long}.
@item
A non-@code{static} function declaration follows a @code{static} one.
This construct is not accepted by some traditional C compilers.
+
+@item
+The ANSI type of an integer constant has a different width or
+signedness from its traditional type. This warning is only issued if
+the base of the constant is ten. I.e. hexadecimal or octal values, which
+typically represent bit patterns, are not warned about.
@end itemize
@item -Wundef