diff options
author | Geoffrey Keating <geoffk@redhat.com> | 2002-03-05 02:34:07 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2002-03-05 02:34:07 +0000 |
commit | 75227a33f7f789bca5090099a279b5b8d63d571c (patch) | |
tree | 6806586cc8e5784a42c5d33e4ef34100e6e7b370 /gcc/toplev.c | |
parent | 4f1aac426685bb179bd45b525ae95e1f80bd5149 (diff) | |
download | gcc-75227a33f7f789bca5090099a279b5b8d63d571c.zip gcc-75227a33f7f789bca5090099a279b5b8d63d571c.tar.gz gcc-75227a33f7f789bca5090099a279b5b8d63d571c.tar.bz2 |
toplev.c (documented_lang_options): Document more language-specific options.
* toplev.c (documented_lang_options): Document more
language-specific options.
* doc/invoke.texi (Warning Options): Correct documentation for
-Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
* c-decl.c (c_decode_option): Use a table to handle warning options.
From-SVN: r50299
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index 9ff37c3..93cb2c9 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -1231,7 +1231,6 @@ documented_lang_options[] = { "-Wbad-function-cast", N_("Warn about casting functions to incompatible types") }, { "-Wno-bad-function-cast", "" }, - { "-Wno-missing-noreturn", "" }, { "-Wmissing-format-attribute", N_("Warn about functions which might be candidates for format attributes") }, { "-Wno-missing-format-attribute", "" }, @@ -1250,12 +1249,15 @@ documented_lang_options[] = { "-Wconversion", N_("Warn about possibly confusing type conversions") }, { "-Wno-conversion", "" }, + { "-Wdiv-by-zero", "" }, + { "-Wno-div-by-zero", + N_("Do not warn about compile-time integer division by zero") }, + { "-Wfloat-equal", + N_("Warn about testing equality of floating point numbers") }, + { "-Wno-float-equal", "" }, { "-Wformat", N_("Warn about printf/scanf/strftime/strfmon format anomalies") }, { "-Wno-format", "" }, - { "-Wformat-y2k", "" }, - { "-Wno-format-y2k", - N_("Don't warn about strftime formats yielding 2 digit years") }, { "-Wformat-extra-args", "" }, { "-Wno-format-extra-args", N_("Don't warn about too many arguments to format functions") }, @@ -1265,6 +1267,9 @@ documented_lang_options[] = { "-Wformat-security", N_("Warn about possible security problems with format functions") }, { "-Wno-format-security", "" }, + { "-Wformat-y2k", "" }, + { "-Wno-format-y2k", + N_("Don't warn about strftime formats yielding 2 digit years") }, { "-Wimplicit-function-declaration", N_("Warn about implicit function declarations") }, { "-Wno-implicit-function-declaration", "" }, @@ -1301,24 +1306,21 @@ documented_lang_options[] = { "-Wparentheses", N_("Warn about possible missing parentheses") }, { "-Wno-parentheses", "" }, - { "-Wsequence-point", - N_("Warn about possible violations of sequence point rules") }, - { "-Wno-sequence-point", "" }, { "-Wpointer-arith", N_("Warn about function pointer arithmetic") }, { "-Wno-pointer-arith", "" }, { "-Wredundant-decls", N_("Warn about multiple declarations of the same object") }, { "-Wno-redundant-decls", "" }, + { "-Wreturn-type", + N_("Warn whenever a function's return-type defaults to int") }, + { "-Wno-return-type", "" }, + { "-Wsequence-point", + N_("Warn about possible violations of sequence point rules") }, + { "-Wno-sequence-point", "" }, { "-Wsign-compare", N_("Warn about signed/unsigned comparisons") }, { "-Wno-sign-compare", "" }, - { "-Wfloat-equal", - N_("Warn about testing equality of floating point numbers") }, - { "-Wno-float-equal", "" }, - { "-Wunknown-pragmas", - N_("Warn about unrecognized pragmas") }, - { "-Wno-unknown-pragmas", "" }, { "-Wstrict-prototypes", N_("Warn about non-prototyped function decls") }, { "-Wno-strict-prototypes", "" }, @@ -1330,6 +1332,9 @@ documented_lang_options[] = { "-Wno-trigraphs", "" }, { "-Wundef", "" }, { "-Wno-undef", "" }, + { "-Wunknown-pragmas", + N_("Warn about unrecognized pragmas") }, + { "-Wno-unknown-pragmas", "" }, { "-Wwrite-strings", N_("Mark strings as 'const char *'") }, { "-Wno-write-strings", "" }, |