diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2001-04-11 21:46:28 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2001-04-11 21:46:28 +0000 |
commit | c8abc684266b1a9b2059f9d3263c4bc5d60c10af (patch) | |
tree | 9024d420eda993e06ad9d09ad2b40a28e687d140 /gcc | |
parent | 76cf1895c3ea095117630e27d7bab1a014eee6d0 (diff) | |
download | gcc-c8abc684266b1a9b2059f9d3263c4bc5d60c10af.zip gcc-c8abc684266b1a9b2059f9d3263c4bc5d60c10af.tar.gz gcc-c8abc684266b1a9b2059f9d3263c4bc5d60c10af.tar.bz2 |
cpp.texi (-Wtraditional): Update description.
* cpp.texi (-Wtraditional): Update description.
* invoke.texi (-Wtraditional): Likewise.
From-SVN: r41272
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cpp.texi | 10 | ||||
-rw-r--r-- | gcc/invoke.texi | 9 |
3 files changed, 16 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9ff706e..40ca684 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2001-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * cpp.texi (-Wtraditional): Update description. + + * invoke.texi (-Wtraditional): Likewise. + 2001-04-11 Jim Wilson <wilson@redhat.com> * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Return 128 if argument diff --git a/gcc/cpp.texi b/gcc/cpp.texi index 316ebbf..622e4b5 100644 --- a/gcc/cpp.texi +++ b/gcc/cpp.texi @@ -3339,7 +3339,8 @@ Requests @samp{-Wcomment}, @samp{-Wtrigraphs}, and @samp{-Wwhite-space} @item -Wtraditional @findex -Wtraditional Warn about certain constructs that behave differently in traditional and -ISO C@. +ISO C@. Also warn about ISO C constructs that have no traditional C +equivalent, and/or problematic constructs which should be avoided. @itemize @bullet @item @@ -3368,10 +3369,9 @@ The unary plus operator. The `U' integer constant suffix. (Traditonal C does support the `L' suffix on integer constants.) Note, these suffixes appear in macros defined in the system headers of most modern systems, e.g. the _MIN/_MAX -macros in limits.h. Use of these macros can lead to spurious warnings -as they do not necessarily reflect whether the code in question is any -less portable to traditional C given that suitable backup definitions -are provided. +macros in limits.h. Use of these macros in user code might normally +lead to spurious warnings, however gcc's integrated preprocessor has +enough context to avoid warning in these cases. @end itemize @item -Wundef diff --git a/gcc/invoke.texi b/gcc/invoke.texi index 8ce73e4..595c990 100644 --- a/gcc/invoke.texi +++ b/gcc/invoke.texi @@ -2055,7 +2055,8 @@ probably mistaken. @item -Wtraditional (C only) Warn about certain constructs that behave differently in traditional and -ISO C. +ISO C. Also warn about ISO C constructs that have no traditional C +equivalent, and/or problematic constructs which should be avoided. @itemize @bullet @item @@ -2085,9 +2086,9 @@ The `U' integer constant suffix, or the `F' or `L' floating point constant suffixes. (Traditonal C does support the `L' suffix on integer constants.) Note, these suffixes appear in macros defined in the system headers of most modern systems, e.g. the _MIN/_MAX macros in limits.h. -Use of these macros can lead to spurious warnings as they do not -necessarily reflect whether the code in question is any less portable to -traditional C given that suitable backup definitions are provided. +Use of these macros in user code might normally lead to spurious +warnings, however gcc's integrated preprocessor has enough context to +avoid warning in these cases. @item A function declared external in one block and then used after the end of |