X-Git-Url: https://oss.titaniummirror.com/gitweb?p=msp430-binutils.git;a=blobdiff_plain;f=gas%2Fconfig%2Ftc-v850.c;fp=gas%2Fconfig%2Ftc-v850.c;h=c6c343940af4665a60eff8cc60cf8d9cd7b7e6b3;hp=581780038147fa4e433757d104824ff2272454e5;hb=d5da4f291af551c0b8b79e1d4a9b173d60e5c10e;hpb=7b5ea4fcdf2819e070665ab5610f8b48e3867c10 diff --git a/gas/config/tc-v850.c b/gas/config/tc-v850.c index 5817800..c6c3439 100644 --- a/gas/config/tc-v850.c +++ b/gas/config/tc-v850.c @@ -1,6 +1,6 @@ /* tc-v850.c -- Assembler code for the NEC V850 Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, - 2006, 2007 Free Software Foundation, Inc. + 2006, 2007, 2009 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -477,16 +477,16 @@ v850_longcode (int type) if (! v850_relax) { if (type == 1) - as_warn (".longcall pseudo-op seen when not relaxing"); + as_warn (_(".longcall pseudo-op seen when not relaxing")); else - as_warn (".longjump pseudo-op seen when not relaxing"); + as_warn (_(".longjump pseudo-op seen when not relaxing")); } expression (&ex); if (ex.X_op != O_symbol || ex.X_add_number != 0) { - as_bad ("bad .longcall format"); + as_bad (_("bad .longcall format")); ignore_rest_of_line (); return; @@ -1178,39 +1178,7 @@ md_undefined_symbol (char *name ATTRIBUTE_UNUSED) char * md_atof (int type, char *litp, int *sizep) { - int prec; - LITTLENUM_TYPE words[4]; - char *t; - int i; - - switch (type) - { - case 'f': - prec = 2; - break; - - case 'd': - prec = 4; - break; - - default: - *sizep = 0; - return _("bad call to md_atof"); - } - - t = atof_ieee (input_line_pointer, type, words); - if (t) - input_line_pointer = t; - - *sizep = prec * 2; - - for (i = prec - 1; i >= 0; i--) - { - md_number_to_chars (litp, (valueT) words[i], 2); - litp += 2; - } - - return NULL; + return ieee_md_atof (type, litp, sizep, FALSE); } /* Very gross. */ @@ -1537,9 +1505,9 @@ v850_insert_operand (unsigned long insn, else { if (file == (char *) NULL) - as_warn (message); + as_warn ("%s", message); else - as_warn_where (file, line, message); + as_warn_where (file, line, "%s", message); } } }