PR 7026
authorNick Clifton <nickc@redhat.com>
Fri, 14 Nov 2008 09:02:38 +0000 (09:02 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 14 Nov 2008 09:02:38 +0000 (09:02 +0000)
        * config/tc-arm.c: Ensure that all uses of as_bad have a
        formatting string.

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

index 17cffcf86f257ee0585f2b4475fb0835b5c84187..1ab7773cb962bf933d0de2410d3fd5cc5efce608 100644 (file)
@@ -1,3 +1,9 @@
+2008-11-14  Peter Jansen  <pwjansen@yahoo.com>
+
+       PR 7026
+       * config/tc-arm.c: Ensure that all uses of as_bad have a
+       formatting string.
+
 2008-11-12  Hans-Peter Nilsson  <hp@axis.com>
 
        * config/tc-cris.c (cris_number_to_imm): Except for
index 0d3fe7b32cae169eb83edf8bf657a667c4497c86..325aadeb87cd6281945668f0da792641e2000f47 100644 (file)
@@ -3456,7 +3456,7 @@ s_arm_unwind_save_mmxwr (void)
 
       if (reg == FAIL)
        {
-         as_bad (_(reg_expected_msgs[REG_TYPE_MMXWR]));
+         as_bad ("%s", _(reg_expected_msgs[REG_TYPE_MMXWR]));
          goto error;
        }
 
@@ -3470,7 +3470,7 @@ s_arm_unwind_save_mmxwr (void)
          hi_reg = arm_reg_parse (&input_line_pointer, REG_TYPE_MMXWR);
          if (hi_reg == FAIL)
            {
-             as_bad (_(reg_expected_msgs[REG_TYPE_MMXWR]));
+             as_bad ("%s", _(reg_expected_msgs[REG_TYPE_MMXWR]));
              goto error;
            }
          else if (reg >= hi_reg)
@@ -3588,7 +3588,7 @@ s_arm_unwind_save_mmxwcg (void)
 
       if (reg == FAIL)
        {
-         as_bad (_(reg_expected_msgs[REG_TYPE_MMXWCG]));
+         as_bad ("%s", _(reg_expected_msgs[REG_TYPE_MMXWCG]));
          goto error;
        }
 
@@ -3603,7 +3603,7 @@ s_arm_unwind_save_mmxwcg (void)
          hi_reg = arm_reg_parse (&input_line_pointer, REG_TYPE_MMXWCG);
          if (hi_reg == FAIL)
            {
-             as_bad (_(reg_expected_msgs[REG_TYPE_MMXWCG]));
+             as_bad ("%s", _(reg_expected_msgs[REG_TYPE_MMXWCG]));
              goto error;
            }
          else if (reg >= hi_reg)
@@ -3709,7 +3709,7 @@ s_arm_unwind_movsp (int ignored ATTRIBUTE_UNUSED)
   reg = arm_reg_parse (&input_line_pointer, REG_TYPE_RN);
   if (reg == FAIL)
     {
-      as_bad (_(reg_expected_msgs[REG_TYPE_RN]));
+      as_bad ("%s", _(reg_expected_msgs[REG_TYPE_RN]));
       ignore_rest_of_line ();
       return;
     }