* 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.
This commit is contained in:
parent
d77ec87195
commit
0fe58ccd2b
@ -1,3 +1,10 @@
|
||||
2008-06-04 Chris Metcalf <cmetcalf@tilera.com>
|
||||
|
||||
* 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.
|
||||
|
||||
2008-06-04 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* emultempl/spuelf.em (spu_elf_relink): Correct --no-auto-overlay arg.
|
||||
|
@ -1263,10 +1263,12 @@ generating dynamically linked ELF executables. The default dynamic
|
||||
linker is normally correct; don't use this unless you know what you are
|
||||
doing.
|
||||
|
||||
|
||||
@kindex --fatal-warnings
|
||||
@kindex --no-fatal-warnings
|
||||
@item --fatal-warnings
|
||||
Treat all warnings as errors.
|
||||
@itemx --no-fatal-warnings
|
||||
Treat all warnings as errors. The default behaviour can be restored
|
||||
with the option @option{--no-fatal-warnings}.
|
||||
|
||||
@kindex --force-exe-suffix
|
||||
@item --force-exe-suffix
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user