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-pdp11.c | 72 +++++++++++++++++++++++++-------------------------- 1 file changed, 36 insertions(+), 36 deletions(-) (limited to 'gas/config/tc-pdp11.c') diff --git a/gas/config/tc-pdp11.c b/gas/config/tc-pdp11.c index a9480de..70273a0 100644 --- a/gas/config/tc-pdp11.c +++ b/gas/config/tc-pdp11.c @@ -191,7 +191,7 @@ md_begin (void) insn_hash = hash_new (); if (insn_hash == NULL) - as_fatal ("Virtual memory exhausted"); + as_fatal (_("Virtual memory exhausted")); for (i = 0; i < pdp11_num_opcodes; i++) hash_insert (insn_hash, pdp11_opcodes[i].name, (void *) (pdp11_opcodes + i)); @@ -336,7 +336,7 @@ parse_reg (char *str, struct pdp11_code *operand) str++; break; default: - operand->error = "Bad register name"; + operand->error = _("Bad register name"); return str - 1; } } @@ -354,7 +354,7 @@ parse_reg (char *str, struct pdp11_code *operand) } else { - operand->error = "Bad register name"; + operand->error = _("Bad register name"); return str; } @@ -379,13 +379,13 @@ parse_ac5 (char *str, struct pdp11_code *operand) str++; break; default: - operand->error = "Bad register name"; + operand->error = _("Bad register name"); return str - 2; } } else { - operand->error = "Bad register name"; + operand->error = _("Bad register name"); return str; } @@ -398,7 +398,7 @@ parse_ac (char *str, struct pdp11_code *operand) str = parse_ac5 (str, operand); if (!operand->error && operand->code > 3) { - operand->error = "Bad register name"; + operand->error = _("Bad register name"); return str - 3; } @@ -417,7 +417,7 @@ parse_expression (char *str, struct pdp11_code *operand) if (seg == NULL) { input_line_pointer = save_input_line_pointer; - operand->error = "Error in expression"; + operand->error = _("Error in expression"); return str; } @@ -445,7 +445,7 @@ parse_op_no_deferred (char *str, struct pdp11_code *operand) str = skip_whitespace (str); if (*str != ')') { - operand->error = "Missing ')'"; + operand->error = _("Missing ')'"); return str; } str++; @@ -481,7 +481,7 @@ parse_op_no_deferred (char *str, struct pdp11_code *operand) case O_big: if (operand->reloc.exp.X_add_number > 0) { - operand->error = "Error in expression"; + operand->error = _("Error in expression"); break; } /* It's a floating literal... */ @@ -492,7 +492,7 @@ parse_op_no_deferred (char *str, struct pdp11_code *operand) as_warn (_("Low order bits truncated in immediate float operand")); break; default: - operand->error = "Error in expression"; + operand->error = _("Error in expression"); break; } operand->code = 027; @@ -511,7 +511,7 @@ parse_op_no_deferred (char *str, struct pdp11_code *operand) str = skip_whitespace (str); if (*str != ')') { - operand->error = "Missing ')'"; + operand->error = _("Missing ')'"); return str; } operand->code |= 040; @@ -529,7 +529,7 @@ parse_op_no_deferred (char *str, struct pdp11_code *operand) { if (operand->reloc.exp.X_op != O_symbol) { - operand->error = "Label expected"; + operand->error = _("Label expected"); return old; } operand->code = 067; @@ -550,7 +550,7 @@ parse_op_no_deferred (char *str, struct pdp11_code *operand) if (*str != ')') { - operand->error = "Missing ')'"; + operand->error = _("Missing ')'"); return str; } @@ -615,7 +615,7 @@ parse_op (char *str, struct pdp11_code *operand) parse_ac5 (str, operand); if (!operand->error) { - operand->error = "Float AC not legal as integer operand"; + operand->error = _("Float AC not legal as integer operand"); return str; } @@ -635,7 +635,7 @@ parse_fop (char *str, struct pdp11_code *operand) parse_reg (str, operand); if (!operand->error) { - operand->error = "General register not legal as float operand"; + operand->error = _("General register not legal as float operand"); return str; } @@ -668,7 +668,7 @@ md_assemble (char *instruction_string) p = find_whitespace (str); if (p - str == 0) { - as_bad ("No instruction found"); + as_bad (_("No instruction found")); return; } @@ -684,7 +684,7 @@ md_assemble (char *instruction_string) if (!pdp11_extension[op->extension]) { - as_warn ("Unsupported instruction set extension: %s", op->name); + as_warn (_("Unsupported instruction set extension: %s"), op->name); return; } @@ -720,7 +720,7 @@ md_assemble (char *instruction_string) break; if (op1.reloc.exp.X_op != O_constant || op1.reloc.type != BFD_RELOC_NONE) { - op1.error = "operand is not an absolute constant"; + op1.error = _("operand is not an absolute constant"); break; } switch (op->type) @@ -728,21 +728,21 @@ md_assemble (char *instruction_string) case PDP11_OPCODE_IMM3: if (op1.reloc.exp.X_add_number & ~7) { - op1.error = "3-bit immediate out of range"; + op1.error = _("3-bit immediate out of range"); break; } break; case PDP11_OPCODE_IMM6: if (op1.reloc.exp.X_add_number & ~0x3f) { - op1.error = "6-bit immediate out of range"; + op1.error = _("6-bit immediate out of range"); break; } break; case PDP11_OPCODE_IMM8: if (op1.reloc.exp.X_add_number & ~0xff) { - op1.error = "8-bit immediate out of range"; + op1.error = _("8-bit immediate out of range"); break; } break; @@ -759,12 +759,12 @@ md_assemble (char *instruction_string) op1.reloc.type = BFD_RELOC_PDP11_DISP_8_PCREL; if (op1.reloc.exp.X_op != O_symbol) { - op1.error = "Symbol expected"; + op1.error = _("Symbol expected"); break; } if (op1.code & ~0xff) { - err = "8-bit displacement out of range"; + err = _("8-bit displacement out of range"); break; } str = new; @@ -806,7 +806,7 @@ md_assemble (char *instruction_string) str = parse_separator (str, &error); if (error) { - op2.error = "Missing ','"; + op2.error = _("Missing ','"); break; } str = parse_op (str, &op1); @@ -827,7 +827,7 @@ md_assemble (char *instruction_string) str = parse_separator (str, &error); if (error) { - op2.error = "Missing ','"; + op2.error = _("Missing ','"); break; } str = parse_reg (str, &op2); @@ -844,7 +844,7 @@ md_assemble (char *instruction_string) str = parse_separator (str, &error); if (error) { - op1.error = "Missing ','"; + op1.error = _("Missing ','"); break; } str = parse_fop (str, &op1); @@ -865,7 +865,7 @@ md_assemble (char *instruction_string) str = parse_separator (str, &error); if (error) { - op1.error = "Missing ','"; + op1.error = _("Missing ','"); break; } str = parse_ac (str, &op2); @@ -882,7 +882,7 @@ md_assemble (char *instruction_string) str = parse_separator (str, &error); if (error) { - op1.error = "Missing ','"; + op1.error = _("Missing ','"); break; } str = parse_op (str, &op1); @@ -903,7 +903,7 @@ md_assemble (char *instruction_string) str = parse_separator (str, &error); if (error) { - op1.error = "Missing ','"; + op1.error = _("Missing ','"); break; } str = parse_ac (str, &op2); @@ -922,7 +922,7 @@ md_assemble (char *instruction_string) str = parse_separator (str, &error); if (error) { - op2.error = "Missing ','"; + op2.error = _("Missing ','"); break; } str = parse_op (str, &op2); @@ -943,7 +943,7 @@ md_assemble (char *instruction_string) str = parse_separator (str, &error); if (error) { - op1.error = "Missing ','"; + op1.error = _("Missing ','"); break; } new = parse_expression (str, &op1); @@ -952,12 +952,12 @@ md_assemble (char *instruction_string) op1.reloc.type = BFD_RELOC_PDP11_DISP_6_PCREL; if (op1.reloc.exp.X_op != O_symbol) { - op1.error = "Symbol expected"; + op1.error = _("Symbol expected"); break; } if (op1.code & ~0x3f) { - err = "6-bit displacement out of range"; + err = _("6-bit displacement out of range"); break; } str = new; @@ -978,7 +978,7 @@ md_assemble (char *instruction_string) { str = skip_whitespace (str); if (*str) - err = "Too many operands"; + err = _("Too many operands"); } { @@ -986,7 +986,7 @@ md_assemble (char *instruction_string) if (err) { - as_bad (err); + as_bad ("%s", err); return; } @@ -1428,7 +1428,7 @@ tc_gen_reloc (asection *section ATTRIBUTE_UNUSED, if (reloc->howto == NULL) { as_bad_where (fixp->fx_file, fixp->fx_line, - "Can not represent %s relocation in this object file format", + _("Can not represent %s relocation in this object file format"), bfd_get_reloc_code_name (code)); return NULL; } -- cgit v1.1