aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlex.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2022-10-21 12:20:09 +0100
committerNick Clifton <nickc@redhat.com>2022-10-21 12:20:09 +0100
commit4b2e7a577c2f7311a8c381ff791d46e654c41fcc (patch)
tree04565dd86cf6a87ef1aed4ba39597ac269bf08f6 /ld/ldlex.h
parent816be8d8b71b2b79e348d36d635b9f4756700f94 (diff)
downloadgdb-4b2e7a577c2f7311a8c381ff791d46e654c41fcc.zip
gdb-4b2e7a577c2f7311a8c381ff791d46e654c41fcc.tar.gz
gdb-4b2e7a577c2f7311a8c381ff791d46e654c41fcc.tar.bz2
Add a -w option to the linker to suppress warning and error messages.
PR 29654 * ld.h (struct ld_config_type): Add no_warnings field. * ldlex.h (enum option_values): Add OPTION_NO_WARNINGS. * lexsup.c (ld_options): Add --no-warnings. (parse_args): Add support for -w and --no-warnings. * ldmisc.c (vfinfo): Return early if the message is a warning and -w has been enabled. * ld.texi (options): Document new command line option. * NEWS: Mention the new feature.
Diffstat (limited to 'ld/ldlex.h')
-rw-r--r--ld/ldlex.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/ldlex.h b/ld/ldlex.h
index 8945825..31b7760 100644
--- a/ld/ldlex.h
+++ b/ld/ldlex.h
@@ -88,6 +88,7 @@ enum option_values
OPTION_WARN_CONSTRUCTORS,
OPTION_WARN_FATAL,
OPTION_NO_WARN_FATAL,
+ OPTION_NO_WARNINGS,
OPTION_WARN_MULTIPLE_GP,
OPTION_WARN_ONCE,
OPTION_WARN_SECTION_ALIGN,