summaryrefslogtreecommitdiff
path: root/gas/listing.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2010-01-12 01:10:55 +0000
committerAlan Modra <amodra@bigpond.net.au>2010-01-12 01:10:55 +0000
commit10572cc141c72892f8ae287b806daa10582ca916 (patch)
tree286f1e7effee6f0f186de82b3df5ce09df292459 /gas/listing.c
parentb31ab796003928659ea4bf13477402cc13ed7732 (diff)
downloadbinutils-redhat-10572cc141c72892f8ae287b806daa10582ca916.tar.gz
PR 11122
* listing.c (print_source): Add one to line number.
Diffstat (limited to 'gas/listing.c')
-rw-r--r--gas/listing.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/listing.c b/gas/listing.c
index 93f2b3705b..9a71c76354 100644
--- a/gas/listing.c
+++ b/gas/listing.c
@@ -1,6 +1,6 @@
/* listing.c - maintain assembly listings
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
- 2001, 2002, 2003, 2005, 2006, 2007, 2008, 2009
+ 2001, 2002, 2003, 2005, 2006, 2007, 2008, 2009, 2010
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -1047,7 +1047,7 @@ print_source (file_info_type * current_file,
cache = cached_lines + next_free_line;
cache->file = current_file;
- cache->line = current_file->linenum;
+ cache->line = current_file->linenum + 1;
cache->buffer[0] = 0;
p = buffer_line (current_file, cache->buffer, width);