diff options
author | Nick Clifton <nickc@redhat.com> | 2008-06-04 09:45:05 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2008-06-04 09:45:05 +0000 |
commit | 0fe58ccd2b957a1034c2488d63659c30ca505e77 (patch) | |
tree | 9ae3d0bc58aa471aaa33d42b461bd41352ebcbfa /ld/lexsup.c | |
parent | d77ec871959bbdc132c717f7f343d1f43cb28c9c (diff) | |
download | gdb-0fe58ccd2b957a1034c2488d63659c30ca505e77.zip gdb-0fe58ccd2b957a1034c2488d63659c30ca505e77.tar.gz gdb-0fe58ccd2b957a1034c2488d63659c30ca505e77.tar.bz2 |
* lexsup.c (option_values): Add OPTION_NO_WARN_FATAL.
(ld_options): Add entry for --no-fatal-warnings.
(parse_args): Handle OPTION_NO_WARN_FATAL.
* ld.texinfo (Options): Document new command line switch.
Diffstat (limited to 'ld/lexsup.c')
-rw-r--r-- | ld/lexsup.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ld/lexsup.c b/ld/lexsup.c index 5a30cfb..60a8167 100644 --- a/ld/lexsup.c +++ b/ld/lexsup.c @@ -116,6 +116,7 @@ enum option_values OPTION_WARN_COMMON, OPTION_WARN_CONSTRUCTORS, OPTION_WARN_FATAL, + OPTION_NO_WARN_FATAL, OPTION_WARN_MULTIPLE_GP, OPTION_WARN_ONCE, OPTION_WARN_SECTION_ALIGN, @@ -377,6 +378,9 @@ static const struct ld_option ld_options[] = { {"fatal-warnings", no_argument, NULL, OPTION_WARN_FATAL}, '\0', NULL, N_("Treat warnings as errors"), TWO_DASHES }, + { {"no-fatal-warnings", no_argument, NULL, OPTION_NO_WARN_FATAL}, + '\0', NULL, N_("Do not treat warnings as errors (default)"), + TWO_DASHES }, { {"fini", required_argument, NULL, OPTION_FINI}, '\0', N_("SYMBOL"), N_("Call SYMBOL at unload-time"), ONE_DASH }, { {"force-exe-suffix", no_argument, NULL, OPTION_FORCE_EXE_SUFFIX}, @@ -1333,6 +1337,9 @@ parse_args (unsigned argc, char **argv) case OPTION_WARN_FATAL: config.fatal_warnings = TRUE; break; + case OPTION_NO_WARN_FATAL: + config.fatal_warnings = FALSE; + break; case OPTION_WARN_MULTIPLE_GP: config.warn_multiple_gp = TRUE; break; |