diff options
author | Nick Clifton <nickc@redhat.com> | 2004-08-17 12:19:58 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2004-08-17 12:19:58 +0000 |
commit | 329e276daf98fb4c8b3770a6c2f02fd22472a638 (patch) | |
tree | 9faf3443e26885446e02a6f38d80656b3b4a143d /gas/config | |
parent | 469aff8eec9fab2c81b46eaf8939eee82423e293 (diff) | |
download | gdb-329e276daf98fb4c8b3770a6c2f02fd22472a638.zip gdb-329e276daf98fb4c8b3770a6c2f02fd22472a638.tar.gz gdb-329e276daf98fb4c8b3770a6c2f02fd22472a638.tar.bz2 |
Add support for a -g switch to GAS
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-arm.c | 1 | ||||
-rw-r--r-- | gas/config/tc-m68k.c | 10 | ||||
-rw-r--r-- | gas/config/tc-pdp11.c | 2 | ||||
-rw-r--r-- | gas/config/tc-v850.c | 23 |
4 files changed, 10 insertions, 26 deletions
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index f7eeca7..68faf13 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -13699,7 +13699,6 @@ md_parse_option (c, arg) } } - as_bad (_("unrecognized option `-%c%s'"), c, arg ? arg : ""); return 0; } diff --git a/gas/config/tc-m68k.c b/gas/config/tc-m68k.c index 65987d0..d9a59ca 100644 --- a/gas/config/tc-m68k.c +++ b/gas/config/tc-m68k.c @@ -7095,18 +7095,15 @@ md_parse_option (int c, char *arg) if (!strcmp (arg, archs[i].name)) break; if (i == n_archs) - { - unknown: - as_bad (_("unrecognized option `%s'"), oarg); - return 0; - } + return 0; + arch = archs[i].arch; if (arch == m68881) no_68881 = 1; else if (arch == m68851) no_68851 = 1; else - goto unknown; + return 0; } else { @@ -7119,6 +7116,7 @@ md_parse_option (int c, char *arg) if (!strcmp (arg, archs[i].name)) { unsigned long arch = archs[i].arch; + if (cpu_of_arch (arch)) /* It's a cpu spec. */ { diff --git a/gas/config/tc-pdp11.c b/gas/config/tc-pdp11.c index 92023d1..f34adf6 100644 --- a/gas/config/tc-pdp11.c +++ b/gas/config/tc-pdp11.c @@ -1347,8 +1347,6 @@ md_parse_option (c, arg) break; } - as_bad ("unrecognized option `-%c%s'", c, arg ? arg : ""); - return 0; } diff --git a/gas/config/tc-v850.c b/gas/config/tc-v850.c index b1085ac..ed208ee 100644 --- a/gas/config/tc-v850.c +++ b/gas/config/tc-v850.c @@ -1169,21 +1169,14 @@ md_parse_option (c, arg) char *arg; { if (c != 'm') - { - if (c != 'a') - /* xgettext:c-format */ - fprintf (stderr, _("unknown command line option: -%c%s\n"), c, arg); - return 0; - } + return 0; if (strcmp (arg, "warn-signed-overflow") == 0) - { - warn_signed_overflows = TRUE; - } + warn_signed_overflows = TRUE; + else if (strcmp (arg, "warn-unsigned-overflow") == 0) - { - warn_unsigned_overflows = TRUE; - } + warn_unsigned_overflows = TRUE; + else if (strcmp (arg, "v850") == 0) { machine = 0; @@ -1211,11 +1204,7 @@ md_parse_option (c, arg) else if (strcmp (arg, "relax") == 0) v850_relax = 1; else - { - /* xgettext:c-format */ - fprintf (stderr, _("unknown command line option: -%c%s\n"), c, arg); - return 0; - } + return 0; return 1; } |