From 20203fb9399bed63f555d79dcd8ad95a5bb0aed6 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 24 Jul 2009 11:45:01 +0000 Subject: PR 10437 * config/tc-alpha.c: Fix up uses of gas printf like functions so that the format string is a constant string. Add translation support to message strings. * config/tc-arc.c: Likewise. * config/tc-arm.c: Likewise. * config/tc-cris.c: Likewise. * config/tc-fr30.c: Likewise. * config/tc-frv.c: Likewise. * config/tc-h8300.c: Likewise. * config/tc-hppa.c: Likewise. * config/tc-i370.c: Likewise. * config/tc-i960.c: Likewise. * config/tc-ia64.c: Likewise. * config/tc-m32r.c: Likewise. * config/tc-mep.c: Likewise. * config/tc-mips.c: Likewise. * config/tc-moxie.c: Likewise. * config/tc-msp430.c: Likewise. * config/tc-openrisc.c: Likewise. * config/tc-pdp11.c: Likewise. * config/tc-pj.c: Likewise. * config/tc-s390.c: Likewise. * config/tc-sh.c: Likewise. * config/tc-sh64.c: Likewise. * config/tc-sparc.c: Likewise. * config/tc-spu.c: Likewise. * config/tc-tic30.c: Likewise. * config/tc-tic4x.c: Likewise. * config/tc-tic54x.c: Likewise. * config/tc-v850.c: Likewise. * config/tc-xc16x.c: Likewise. * config/tc-xstormy16.c: Likewise. * config/tc-z80.c: Likewise. * config/tc-z8k.c: Likewise. * config/atof-ieee.c: Add translation support to as_warn messages. * config/obj-coff.c: Likewise. --- gas/config/tc-z80.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gas/config/tc-z80.c') diff --git a/gas/config/tc-z80.c b/gas/config/tc-z80.c index 825d920..6dab8f9 100644 --- a/gas/config/tc-z80.c +++ b/gas/config/tc-z80.c @@ -412,7 +412,7 @@ static char err_flag; static void error (const char * message) { - as_bad (message); + as_bad ("%s", message); err_flag = 1; } @@ -687,7 +687,7 @@ emit_byte (expressionS * val, bfd_reloc_code_real_type r_type) *p = val->X_add_number; if ((r_type == BFD_RELOC_8_PCREL) && (val->X_op == O_constant)) { - as_bad(_("cannot make a relative jump to an absolute location")); + as_bad (_("cannot make a relative jump to an absolute location")); } else if (val->X_op == O_constant) { @@ -2028,4 +2028,3 @@ tc_gen_reloc (asection *seg ATTRIBUTE_UNUSED , fixS *fixp) return reloc; } - -- cgit v1.1