summaryrefslogtreecommitdiffstats
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2003-07-09 05:28:04 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2003-07-09 05:28:04 +0000
commitbb0814cef5850f4f07dfb63bfccb3a78fca4f657 (patch)
treec335d57a3364a46b42410708d6b043579c47269a /gcc/toplev.c
parentfbd8e6fcc5a0d5b91b07a6d86ffdec02f251216e (diff)
downloadppe42-gcc-bb0814cef5850f4f07dfb63bfccb3a78fca4f657.tar.gz
ppe42-gcc-bb0814cef5850f4f07dfb63bfccb3a78fca4f657.zip
* toplev.c (warn_dummy, W_options): Die.
(display_help): Don't print W_options. * common.opt: Add W_options help from toplev.c. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69125 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c64
1 files changed, 0 insertions, 64 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 84f61b77636..731c95cba13 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -1503,66 +1503,11 @@ static const struct
target_options[] = TARGET_OPTIONS;
#endif
-/* Options controlling warnings. */
-
/* Nonzero means warn about function definitions that default the return type
or that use a null return and have a return-type other than void. */
int warn_return_type;
-/* Used for the -W options array temporarily. */
-static int warn_dummy;
-
-/* Like f_options, but for -W. */
-
-static const lang_independent_options W_options[] =
-{
- {"unused-function", &warn_dummy, 1,
- N_("Warn when a function is unused") },
- {"unused-label", &warn_dummy, 1,
- N_("Warn when a label is unused") },
- {"unused-parameter", &warn_dummy, 1,
- N_("Warn when a function parameter is unused") },
- {"unused-variable", &warn_dummy, 1,
- N_("Warn when a variable is unused") },
- {"unused-value", &warn_dummy, 1,
- N_("Warn when an expression value is unused") },
- {"system-headers", &warn_dummy, 1,
- N_("Do not suppress warnings from system headers") },
- {"error", &warn_dummy, 1,
- N_("Treat all warnings as errors") },
- {"shadow", &warn_dummy, 1,
- N_("Warn when one local variable shadows another") },
- {"switch", &warn_dummy, 1,
- N_("Warn about enumerated switches, with no default, missing a case") },
- {"switch-default", &warn_dummy, 1,
- N_("Warn about enumerated switches missing a default case") },
- {"switch-enum", &warn_dummy, 1,
- N_("Warn about all enumerated switches missing a specific case") },
- {"aggregate-return", &warn_dummy, 1,
- N_("Warn about returning structures, unions or arrays") },
- {"cast-align", &warn_dummy, 1,
- N_("Warn about pointer casts which increase alignment") },
- {"unreachable-code", &warn_dummy, 1,
- N_("Warn about code that will never be executed") },
- {"uninitialized", &warn_dummy, 1,
- N_("Warn about uninitialized automatic variables") },
- {"inline", &warn_dummy, 1,
- N_("Warn when an inlined function cannot be inlined") },
- {"packed", &warn_dummy, 1,
- N_("Warn when the packed attribute has no effect on struct layout") },
- {"padded", &warn_dummy, 1,
- N_("Warn when padding is required to align struct members") },
- {"disabled-optimization", &warn_dummy, 1,
- N_("Warn when an optimization pass is disabled") },
- {"deprecated-declarations", &warn_dummy, 1,
- N_("Warn about uses of __attribute__((deprecated)) declarations") },
- {"missing-noreturn", &warn_dummy, 1,
- N_("Warn about functions which might be candidates for attribute noreturn") },
- {"strict-aliasing", &warn_dummy, 1,
- N_ ("Warn about code which might break the strict aliasing rules") }
-};
-
/* Output files for assembler code (real compiler output)
and debugging dumps. */
@@ -3966,15 +3911,6 @@ display_help (void)
_(description));
}
- for (i = ARRAY_SIZE (W_options); i--;)
- {
- const char *description = W_options[i].description;
-
- if (description != NULL && *description != 0)
- printf (" -W%-21s %s\n",
- W_options[i].string, _(description));
- }
-
for (i = ARRAY_SIZE (debug_args); i--;)
{
if (debug_args[i].description != NULL)
OpenPOWER on IntegriCloud