+2014-08-26 Jiong Wang <jiong.wang@arm.com>
+
+ * config/tc-arm.c (aeabi_set_public_attributes): Update selected_cpu
+ based on the info we got during parsing.
+ (arm_handle_align): Make sure the p2align expanding logic under thumb
+ unchanged.
+
2014-08-26 Maciej W. Rozycki <macro@codesourcery.com>
* config/tc-mips.c (macro) <M_SAA_AB>: Remove duplicate code and
if (fragP->tc_frag_data.thumb_mode & (~ MODE_RECORDED))
{
- if (ARM_CPU_HAS_FEATURE (selected_cpu, arm_ext_v6t2))
+ if (ARM_CPU_HAS_FEATURE (selected_cpu_name[0]
+ ? selected_cpu : arm_arch_none, arm_ext_v6t2))
{
narrow_noop = thumb_noop[1][target_big_endian];
noop = wide_thumb_noop[target_big_endian];
}
else
{
- noop = arm_noop[ARM_CPU_HAS_FEATURE (selected_cpu, arm_ext_v6k) != 0]
+ noop = arm_noop[ARM_CPU_HAS_FEATURE (selected_cpu_name[0]
+ ? selected_cpu : arm_arch_none,
+ arm_ext_v6k) != 0]
[target_big_endian];
noop_size = 4;
#ifdef OBJ_ELF
if (ARM_CPU_HAS_FEATURE (thumb_arch_used, arm_arch_any))
ARM_MERGE_FEATURE_SETS (flags, flags, arm_ext_v4t);
+ selected_cpu = flags;
+
/* Allow the user to override the reported architecture. */
if (object_arch)
{
+2014-08-26 Jiong Wang <jiong.wang@arm.com>
+
+ * gas/arm/blx-bl-convert.d: New testcase.
+ * gas/arm/blx-bl-convert.l: Warning expectation.
+ * gas/arm/blx-bl-convert.s: Source file.
+
2014-08-26 Maciej W. Rozycki <macro@codesourcery.com>
* gas/mips/l_d.d: Remove ECOFF offset alternatives.
--- /dev/null
+#name: blx->bl convert under no -march/cpu
+#error-output: blx-bl-convert.l
+#objdump: -d
+
+.*: file format .*
+
+Disassembly of section \.text:
+
+00000000 <entry>:
+ 0: f000 f800 bl 4 <label>
+
+00000004 <label>:
+ 4: 4770 bx lr
+ \.\.\.
+
+00000008 <label2>:
+ 8: ebffffff bl c <label3>
+
+0000000c <label3>:
+ c: e12fff1e bx lr
+
--- /dev/null
+[^:]*: Assembler messages:
+[^:]*:7: Warning: blx to Thumb func 'label' from Thumb ISA state changed to bl
+[^:]*:16: Warning: blx to 'label3' an ARM ISA state function changed to bl
+
--- /dev/null
+.syntax unified
+
+.thumb
+.type entry, %function
+.global entry
+entry:
+ blx label
+
+.type label, %function
+label:
+ bx lr
+
+.arm
+.type label2, %function
+label2:
+ blx label3
+
+.type label3, %function
+label3:
+ bx lr