From: Jie Zhang Date: Thu, 3 Sep 2009 18:03:38 +0000 (+0000) Subject: * config/tc-bfin.c (md_parse_option): Call as_fatal for bad X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=110c21e16577edf29f801c9dc2440d79b545e121;p=binutils-gdb.git * config/tc-bfin.c (md_parse_option): Call as_fatal for bad -mcpu= option. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index cd3ddc89c68..6075397ec52 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2009-09-03 Jie Zhang + + * config/tc-bfin.c (md_parse_option): Call as_fatal for bad + -mcpu= option. + 2009-09-03 Jie Zhang * config/bfin-lex.l: Remove V as STATUS_REG. diff --git a/gas/config/tc-bfin.c b/gas/config/tc-bfin.c index 6eaf4c7985a..bd0c6997ff3 100644 --- a/gas/config/tc-bfin.c +++ b/gas/config/tc-bfin.c @@ -351,10 +351,7 @@ md_parse_option (int c ATTRIBUTE_UNUSED, char *arg ATTRIBUTE_UNUSED) } if (p == NULL) - { - error ("-mcpu=%s is not valid", arg); - return 0; - } + as_fatal ("-mcpu=%s is not valid", arg); bfin_cpu_type = bfin_cpus[i].type; @@ -388,8 +385,7 @@ md_parse_option (int c ATTRIBUTE_UNUSED, char *arg ATTRIBUTE_UNUSED) || si_major > 0xff || si_minor > 0xff) { invalid_silicon_revision: - error ("-mcpu=%s has invalid silicon revision", arg); - return 0; + as_fatal ("-mcpu=%s has invalid silicon revision", arg); } bfin_si_revision = (si_major << 8) | si_minor;