From 9b7132d30da9aa3d9760cc7c9c45245f69292c19 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 14 Nov 2008 09:02:38 +0000 Subject: [PATCH] PR 7026 * config/tc-arm.c: Ensure that all uses of as_bad have a formatting string. --- gas/ChangeLog | 6 ++++++ gas/config/tc-arm.c | 10 +++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 17cffcf86f2..1ab7773cb96 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2008-11-14 Peter Jansen + + PR 7026 + * config/tc-arm.c: Ensure that all uses of as_bad have a + formatting string. + 2008-11-12 Hans-Peter Nilsson * config/tc-cris.c (cris_number_to_imm): Except for diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 0d3fe7b32ca..325aadeb87c 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -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; } -- 2.30.2