diff options
author | Matthew Gretton-Dann <matthew.gretton-dann@arm.com> | 2011-12-05 14:51:54 +0000 |
---|---|---|
committer | Matthew Gretton-Dann <matthew.gretton-dann@arm.com> | 2011-12-05 14:51:54 +0000 |
commit | f3bad4690f3241cc461dc911f6a99f39e9218778 (patch) | |
tree | 670f139a022ba44e5f553824ffde7f2da3cc2d09 /gas/testsuite | |
parent | 0596a831a2e79bd9880d65c48a1c2c57a57e950a (diff) | |
download | fsf-binutils-gdb-f3bad4690f3241cc461dc911f6a99f39e9218778.zip fsf-binutils-gdb-f3bad4690f3241cc461dc911f6a99f39e9218778.tar.gz fsf-binutils-gdb-f3bad4690f3241cc461dc911f6a99f39e9218778.tar.bz2 |
* gas/config/tc-arm.c (arm_cpu_option_table): Add name_len field.
(arm_arch_option_table): Likewise.
(arm_option_extension_value_table): Likewise.
(ARM_CPU_OPT): New define.
(ARM_ARCH_OPT): Likewise.
(ARM_EXT_OPT): Likewise.
(arm_cpus): Use ARM_CPU_OPT to initialize.
(arm_archs): Use ARM_ARCH_OPT to initialize.
(arm_extensions): Use ARM_EXT_OPT to initialize.
(arm_parse_extension): Ensure option string matching matches
the whole string.
(arm_parse_cpu): Likewise.
(arm_parse_arch): Likewise.
* gas/testsuite/gas/arm/cmdline-bad-arch.d: New test case.
* gas/testsuite/gas/arm/cmdline-bad-cpu.d: Likewise.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/cmdline-bad-arch.d | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/cmdline-bad-cpu.d | 4 |
3 files changed, 13 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index d5d8ae8..deb4360 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-11-30 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> + + * gas/arm/cmdline-bad-arch.d: New test case. + * gas/arm/cmdline-bad-cpu.d: Likewise. + 2011-12-03 Richard Sandiford <rdsandiford@googlemail.com> * gas/mips/mips.exp (run_dump_test_arch): Add an opts parameter. diff --git a/gas/testsuite/gas/arm/cmdline-bad-arch.d b/gas/testsuite/gas/arm/cmdline-bad-arch.d new file mode 100644 index 0000000..b414c6e --- /dev/null +++ b/gas/testsuite/gas/arm/cmdline-bad-arch.d @@ -0,0 +1,4 @@ +# name: Bad -march command line +# as: -march=armv +# error: unknown architecture `armv' + diff --git a/gas/testsuite/gas/arm/cmdline-bad-cpu.d b/gas/testsuite/gas/arm/cmdline-bad-cpu.d new file mode 100644 index 0000000..8606b98 --- /dev/null +++ b/gas/testsuite/gas/arm/cmdline-bad-cpu.d @@ -0,0 +1,4 @@ +# name: Bad -mcpu command line +# as: -mcpu=cortex +# error: unknown cpu `cortex' + |