diff options
author | Roland McGrath <roland@gnu.org> | 2013-01-29 17:33:22 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2013-01-29 17:33:22 +0000 |
commit | 427d0db66d1e3d142faa5080a1cc572ff17bbbb7 (patch) | |
tree | 440d3fb76bd9d156363cc7eef0b5a4480dc54232 | |
parent | 7e26601c5421ad036dabe23cdd812ac679b4b5b4 (diff) | |
download | gdb-427d0db66d1e3d142faa5080a1cc572ff17bbbb7.zip gdb-427d0db66d1e3d142faa5080a1cc572ff17bbbb7.tar.gz gdb-427d0db66d1e3d142faa5080a1cc572ff17bbbb7.tar.bz2 |
gas/
* 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.
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-arm.c | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 75e312e..3083cae 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -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 diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 8cf5a80..027bdc3 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -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; } |