* tc-arm.c (aeabi_set_public_attributes): Correctly set
Tag_ARM_ISA_use and Tag_Thumb_ISA_use. * gas/arm/attr-any-armv4t.d: New test. * gas/arm/attr-any-armv4t.s: New file. * gas/arm/attr-any-thumbv6.d: New test. * gas/arm/attr-any-thumbv6.s: New file.
This commit is contained in:
parent
f3bad4690f
commit
ddd7f988d4
|
@ -1,3 +1,8 @@
|
||||||
|
2011-12-05 Richard Earnshaw <rearnsha@arm.com>
|
||||||
|
|
||||||
|
* tc-arm.c (aeabi_set_public_attributes): Correctly set
|
||||||
|
Tag_ARM_ISA_use and Tag_Thumb_ISA_use.
|
||||||
|
|
||||||
2011-11-30 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
|
2011-11-30 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
|
||||||
|
|
||||||
* config/tc-arm.c (arm_cpu_option_table): Add name_len field.
|
* config/tc-arm.c (arm_cpu_option_table): Add name_len field.
|
||||||
|
|
|
@ -23666,7 +23666,14 @@ aeabi_set_public_attributes (void)
|
||||||
ARM_MERGE_FEATURE_SETS (flags, arm_arch_used, thumb_arch_used);
|
ARM_MERGE_FEATURE_SETS (flags, arm_arch_used, thumb_arch_used);
|
||||||
ARM_MERGE_FEATURE_SETS (flags, flags, *mfpu_opt);
|
ARM_MERGE_FEATURE_SETS (flags, flags, *mfpu_opt);
|
||||||
ARM_MERGE_FEATURE_SETS (flags, flags, selected_cpu);
|
ARM_MERGE_FEATURE_SETS (flags, flags, selected_cpu);
|
||||||
/*Allow the user to override the reported architecture. */
|
|
||||||
|
if (ARM_CPU_HAS_FEATURE (arm_arch_used, arm_arch_any))
|
||||||
|
ARM_MERGE_FEATURE_SETS (flags, flags, arm_ext_v1);
|
||||||
|
|
||||||
|
if (ARM_CPU_HAS_FEATURE (thumb_arch_used, arm_arch_any))
|
||||||
|
ARM_MERGE_FEATURE_SETS (flags, flags, arm_ext_v4t);
|
||||||
|
|
||||||
|
/* Allow the user to override the reported architecture. */
|
||||||
if (object_arch)
|
if (object_arch)
|
||||||
{
|
{
|
||||||
ARM_CLEAR_FEATURE (flags, flags, arm_arch_any);
|
ARM_CLEAR_FEATURE (flags, flags, arm_arch_any);
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
2011-12-05 Richard Earnshaw <rearnsha@arm.com>
|
||||||
|
|
||||||
|
* gas/arm/attr-any-armv4t.d: New test.
|
||||||
|
* gas/arm/attr-any-armv4t.s: New file.
|
||||||
|
* gas/arm/attr-any-thumbv6.d: New test.
|
||||||
|
* gas/arm/attr-any-thumbv6.s: New file.
|
||||||
|
|
||||||
2011-11-30 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
|
2011-11-30 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
|
||||||
|
|
||||||
* gas/arm/cmdline-bad-arch.d: New test case.
|
* gas/arm/cmdline-bad-arch.d: New test case.
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
# name: attributes for 'any' cpu v4t ARM insn
|
||||||
|
# source: attr-any-armv4t.s
|
||||||
|
# as:
|
||||||
|
# readelf: -A
|
||||||
|
# This test is only valid on EABI based ports.
|
||||||
|
# target: *-*-*eabi
|
||||||
|
|
||||||
|
Attribute Section: aeabi
|
||||||
|
File Attributes
|
||||||
|
Tag_CPU_arch: v4T
|
||||||
|
Tag_ARM_ISA_use: Yes
|
||||||
|
Tag_THUMB_ISA_use: Thumb-1
|
||||||
|
Tag_DIV_use: Not allowed
|
|
@ -0,0 +1 @@
|
||||||
|
bx lr
|
|
@ -0,0 +1,12 @@
|
||||||
|
# name: attributes for 'any' cpu v6 thumb insn
|
||||||
|
# source: attr-any-thumbv6.s
|
||||||
|
# as:
|
||||||
|
# readelf: -A
|
||||||
|
# This test is only valid on EABI based ports.
|
||||||
|
# target: *-*-*eabi
|
||||||
|
|
||||||
|
Attribute Section: aeabi
|
||||||
|
File Attributes
|
||||||
|
Tag_CPU_arch: v6
|
||||||
|
Tag_THUMB_ISA_use: Thumb-1
|
||||||
|
Tag_DIV_use: Not allowed
|
|
@ -0,0 +1,2 @@
|
||||||
|
.thumb
|
||||||
|
cpy r0, r1
|
Loading…
Reference in New Issue