gas/
authorRoland McGrath <roland@gnu.org>
Tue, 29 Jan 2013 17:33:22 +0000 (17:33 +0000)
committerRoland McGrath <roland@gnu.org>
Tue, 29 Jan 2013 17:33:22 +0000 (17:33 +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 75e312e09f9cab0a7f324e06deb784558bd26cf3..3083caeda25c07934a415132a971d5444317d0b6 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-24  Joseph Myers  <joseph@codesourcery.com>
 
        * config/tc-ppc.c (md_assemble): Do not generate APUinfo sections
index 8cf5a8027090a4a3789f8f3273daef5839f3f260..027bdc36219b4c20f495781b8866b1386f16dde8 100644 (file)
@@ -887,7 +887,7 @@ skip_past_char (char ** str, char c)
 {
   /* PR gas/14987: Allow for whitespace before the expected character.  */
   skip_whitespace (*str);
-  
+
   if (**str == c)
     {
       (*str)++;
@@ -21549,8 +21549,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;
        }
 
This page took 0.047886 seconds and 4 git commands to generate.