From: Roland McGrath Date: Tue, 29 Jan 2013 17:36:08 +0000 (+0000) Subject: gas/ X-Git-Tag: binutils-2_23_2~80 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=297d466ee10f4144f8bfa75cab53c4c5ec1471f9;p=thirdparty%2Fbinutils-gdb.git 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. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 55a2b31fe38..d08861f6a1a 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2013-01-29 Roland McGrath + + * 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 Apply mainline patches diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 15b5e622797..92b1ce3857d 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -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; }