]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gas/
authorRoland McGrath <roland@gnu.org>
Tue, 29 Jan 2013 17:36:08 +0000 (17:36 +0000)
committerRoland McGrath <roland@gnu.org>
Tue, 29 Jan 2013 17:36:08 +0000 (17:36 +0000)
* config/tc-arm.c (md_apply_fix): Use as_bad_where for "bad
immediate value for 8-bit offset" error so it shows line info.

gas/ChangeLog
gas/config/tc-arm.c

index 55a2b31fe387ef29db79791f1e6937c6dc6c11a4..d08861f6a1adb2db7318b13dcbd6d5e0a55dbf14 100644 (file)
@@ -1,3 +1,8 @@
+2013-01-29  Roland McGrath  <mcgrathr@google.com>
+
+       * config/tc-arm.c (md_apply_fix): Use as_bad_where for "bad
+       immediate value for 8-bit offset" error so it shows line info.
+
 2013-01-22  Alan Modra  <amodra@gmail.com>
 
        Apply mainline patches
index 15b5e62279778c0049e32b3b95c5ca0d0b415342..92b1ce3857d6dac044039ad0b6baa6e63c8aecf7 100644 (file)
@@ -1,6 +1,6 @@
 /* tc-arm.c -- Assemble for the ARM
    Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
-   2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
+   2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
    Free Software Foundation, Inc.
    Contributed by Richard Earnshaw (rwe@pegasus.esprit.ec.org)
        Modified by David Taylor (dtaylor@armltd.co.uk)
@@ -21576,8 +21576,9 @@ md_apply_fix (fixS *    fixP,
            as_bad_where (fixP->fx_file, fixP->fx_line,
                          _("invalid literal constant: pool needs to be closer"));
          else
-           as_bad (_("bad immediate value for 8-bit offset (%ld)"),
-                   (long) value);
+           as_bad_where (fixP->fx_file, fixP->fx_line,
+                         _("bad immediate value for 8-bit offset (%ld)"),
+                         (long) value);
          break;
        }