[ARM] Support correctly spelled ARMv6KZ architecture names

Matthew Wahab matthew.wahab@arm.com
Wed Jun 24 08:37:00 GMT 2015


Hello,

GAS supports ARM architecture ARMv6KZ but misspells the name as ARMv6ZK. This is
made visible by the command line options -march=armv6zk, -march=armv6zkt2 and by
the value set for the Tag_CPU_name file attribute when -march is given but -mcpu
is not. (The value set for the Tag_CPU_arch is the correctly spelled 'v6KZ').

This patch fixes the name where it is used internally and adds "armv6kz" and
"armv6zkt2" to the list of supported architectures. To preserve existing
behaviour, "armv6zk" and "armv6zkt2" are kept as command line options. This
makes the value set for Tag_CPU_name follow the name given on the command line.

Tested for arm-none-linux-gnueabihf with check-binutils and check-gas.

Ok for trunk?
Matthew

gas/
2015-06-24  Matthew Wahab  <matthew.wahab@arm.com>

	* NEWS: Mention corrected spelling of armv6kz.
	* config/tc-arm.c (arm_cpus): Replace ARM_ARCH_V6ZK with
	ARM_ARCH_V6KZ.
	(arm_archs): Likewise. Also add "armv6kz" and "armv6kzt2".
	* doc/c-arm.texi: Replace "armv6zk" with "armv6kz".

gas/testsuite
2015-06-24  Matthew Wahab  <matthew.wahab@arm.com>

	* gas/arm/attr-march-armv6kz.d: New.
	* gas/arm/attr-march-armv6kzt2.d: New.

include/opcode
2015-06-24  Matthew Wahab  <matthew.wahab@arm.com>

	* arm.h (ARM_AEXT_V6ZK): Rename to ARM_AEXT_V6KZ.
	(ARM_AEXT_V6ZKT2): Rename to ARM_AEXT_V6KZT2.
	(ARM_ARCH_V6ZK): Rename to ARM_ARCH_V6KZ.
	(ARM_ARCH_V6ZKT2): Rename to ARM_ARCH_V6KZT2.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gas_armv6kz.patch
Type: text/x-patch
Size: 5823 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20150624/1fab68b8/attachment.bin>


More information about the Binutils mailing list