* config/tc-arm.c (md_assemble): Call mapping_state from inside a
authorNick Clifton <nickc@redhat.com>
Thu, 6 Aug 2009 10:10:50 +0000 (10:10 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 6 Aug 2009 10:10:50 +0000 (10:10 +0000)
        block in case it is a null macro.

gas/ChangeLog
gas/config/tc-arm.c

index 6bbf281..fc5e454 100644 (file)
@@ -1,3 +1,8 @@
+2009-08-06  Nick Clifton  <nickc@redhat.com>
+
+       * config/tc-arm.c (md_assemble): Call mapping_state from inside a
+       block in case it is a null macro.
+
 2009-08-05  Chao-ying Fu  <fu@mips.com>
 
        * config/tc-mips.c (MIPS_JALR_HINT_P): New define. For IRIX, it is
index b843b62..c77e44e 100644 (file)
@@ -15520,7 +15520,9 @@ md_assemble (char *str)
                                arm_ext_v6t2);
 
       if (!inst.error)
-       mapping_state (MAP_THUMB);
+       {
+         mapping_state (MAP_THUMB);
+       }
     }
   else if (ARM_CPU_HAS_FEATURE (cpu_variant, arm_ext_v1))
     {
@@ -15563,7 +15565,9 @@ md_assemble (char *str)
        ARM_MERGE_FEATURE_SETS (arm_arch_used, arm_arch_used,
                                *opcode->avariant);
       if (!inst.error)
-       mapping_state (MAP_ARM);
+       {
+         mapping_state (MAP_ARM);
+       }
     }
   else
     {