From: Nick Clifton Date: Thu, 17 Jun 1999 04:51:25 +0000 (+0000) Subject: Fix -Wuh and -Wnhu options so that they work. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2f3519a231e9802cf9603601686d798268b4b17b;p=binutils-gdb.git Fix -Wuh and -Wnhu options so that they work. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index fd30072bcc2..e0f1547caf0 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,10 @@ 1999-06-17 Nick Clifton + * config/tc-m32r.c (md_longopts): Fix OPTION_WARN_UNMATCHED and + OPTION_NO_WARN_UNMATCHED entries. + (md_parse_option): Generate a warning message if an unrecognised + option is encountered. + * config/tc-d10v.c (do_not_ignore_hash): New variable. (get_operands): When parsing an expression after an '@' symbol has been detected, do not ignore '#' symbols. diff --git a/gas/config/tc-m32r.c b/gas/config/tc-m32r.c index 9a108245b2c..300f9979522 100644 --- a/gas/config/tc-m32r.c +++ b/gas/config/tc-m32r.c @@ -136,11 +136,11 @@ struct option md_longopts[] = /* Sigh. I guess all warnings must now have both variants. */ #define OPTION_WARN_UNMATCHED (OPTION_MD_BASE + 4) - {"warn-unmatched-high", OPTION_WARN_UNMATCHED}, - {"Wuh", OPTION_WARN_UNMATCHED}, + {"warn-unmatched-high", no_argument, NULL, OPTION_WARN_UNMATCHED}, + {"Wuh", no_argument, NULL, OPTION_WARN_UNMATCHED}, #define OPTION_NO_WARN_UNMATCHED (OPTION_MD_BASE + 5) - {"no-warn-unmatched-high", OPTION_WARN_UNMATCHED}, - {"Wnuh", OPTION_WARN_UNMATCHED}, + {"no-warn-unmatched-high", no_argument, NULL, OPTION_WARN_UNMATCHED}, + {"Wnuh", no_argument, NULL, OPTION_WARN_UNMATCHED}, #if 0 /* not supported yet */ #define OPTION_RELAX (OPTION_MD_BASE + 6) @@ -179,6 +179,10 @@ md_parse_option (c, arg) #endif default: + if (arg) + fprintf (stderr, _("%s: unrecognised command line option: -%c\n"), myname, c); + else + fprintf (stderr, _("%s: unrecognised command line option: -%c%s\n"), myname, c, arg); return 0; } return 1;