diff options
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-bfin.c | 8 |
2 files changed, 7 insertions, 6 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index cd3ddc8..6075397 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,10 @@ 2009-09-03 Jie Zhang <jie.zhang@analog.com> + * config/tc-bfin.c (md_parse_option): Call as_fatal for bad + -mcpu= option. + +2009-09-03 Jie Zhang <jie.zhang@analog.com> + * config/bfin-lex.l: Remove V as STATUS_REG. 2009-09-03 Jie Zhang <jie.zhang@analog.com> diff --git a/gas/config/tc-bfin.c b/gas/config/tc-bfin.c index 6eaf4c7..bd0c699 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; |