diff options
author | Nick Clifton <nickc@redhat.com> | 1999-06-17 04:51:25 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 1999-06-17 04:51:25 +0000 |
commit | 2f3519a231e9802cf9603601686d798268b4b17b (patch) | |
tree | de16dbe5cdef3b0dd8bd2a964e5afe3e86b115b2 /gas/config | |
parent | 0f94f4c86713deaeb50b72807d88c79849a690e1 (diff) | |
download | gdb-2f3519a231e9802cf9603601686d798268b4b17b.zip gdb-2f3519a231e9802cf9603601686d798268b4b17b.tar.gz gdb-2f3519a231e9802cf9603601686d798268b4b17b.tar.bz2 |
Fix -Wuh and -Wnhu options so that they work.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-m32r.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gas/config/tc-m32r.c b/gas/config/tc-m32r.c index 9a10824..300f997 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; |