~ubuntu-branches/debian/squeeze/binutils/squeeze

« back to all changes in this revision

Viewing changes to gas/config/tc-sh.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-09-10 17:05:30 UTC
  • mfrom: (1.4.5 upstream) (6.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090910170530-wa6gpju9pq5c56on
Tags: 2.19.91.20090910-1
* Snapshot, taken from the 2.20 release branch 20090910, corresponding
  to the 2.19.90 upstream snapshot.
* Fix Thumb-2 shared libraries (Daniel Jacobowitz), patch taken
  from the trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* tc-sh.c -- Assemble code for the Renesas / SuperH SH
2
2
   Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
3
 
   2003, 2004, 2005, 2006, 2007  Free Software Foundation, Inc.
 
3
   2003, 2004, 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
4
4
 
5
5
   This file is part of GAS, the GNU Assembler.
6
6
 
1350
1350
parse_exp (char *s, sh_operand_info *op)
1351
1351
{
1352
1352
  char *save;
1353
 
  char *new;
 
1353
  char *new_pointer;
1354
1354
 
1355
1355
  save = input_line_pointer;
1356
1356
  input_line_pointer = s;
1363
1363
           || sh_PIC_related_p (op->immediate.X_op_symbol))
1364
1364
    as_bad (_("misplaced PIC operand"));
1365
1365
#endif
1366
 
  new = input_line_pointer;
 
1366
  new_pointer = input_line_pointer;
1367
1367
  input_line_pointer = save;
1368
 
  return new;
 
1368
  return new_pointer;
1369
1369
}
1370
1370
 
1371
1371
/* The many forms of operand:
3213
3213
            }
3214
3214
          
3215
3215
          if (!preset_target_arch)
3216
 
            as_bad ("Invalid argument to --isa option: %s", arg);
 
3216
            as_bad (_("Invalid argument to --isa option: %s"), arg);
3217
3217
        }
3218
3218
      break;
3219
3219
 
3234
3234
          sh64_abi = sh64_abi_64;
3235
3235
        }
3236
3236
      else
3237
 
        as_bad ("Invalid argument to --abi option: %s", arg);
 
3237
        as_bad (_("Invalid argument to --abi option: %s"), arg);
3238
3238
      break;
3239
3239
 
3240
3240
    case OPTION_NO_MIX:
4183
4183
        val = ((val >> shift)
4184
4184
               | ((long) -1 & ~ ((long) -1 >> shift)));
4185
4185
    }
 
4186
 
 
4187
  /* Extend sign for 64-bit host.  */
 
4188
  val = ((val & 0xffffffff) ^ 0x80000000) - 0x80000000;
4186
4189
  if (max != 0 && (val < min || val > max))
4187
4190
    as_bad_where (fixP->fx_file, fixP->fx_line, _("offset out of range"));
4188
4191
  else if (max != 0)