aboutsummaryrefslogtreecommitdiff
path: root/gas/read.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2006-07-24 16:30:55 +0000
committerNick Clifton <nickc@redhat.com>2006-07-24 16:30:55 +0000
commit601e61cdeb2bce4209cae548b310da12ab489bd6 (patch)
tree5f87b6bc07fb17fea62f240e52857332a6552f60 /gas/read.c
parent0155cc767d61af1d5bd6745f00af79eabea6c72d (diff)
downloadgdb-601e61cdeb2bce4209cae548b310da12ab489bd6.zip
gdb-601e61cdeb2bce4209cae548b310da12ab489bd6.tar.gz
gdb-601e61cdeb2bce4209cae548b310da12ab489bd6.tar.bz2
PR/2756
* read.c (read_a_source_file): Ignore unknown text after line comment character. Fix misleading comment.
Diffstat (limited to 'gas/read.c')
-rw-r--r--gas/read.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gas/read.c b/gas/read.c
index cb9e72c..af1a0b9 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -1007,10 +1007,14 @@ read_a_source_file (char *name)
unsigned int new_length;
char *tmp_buf = 0;
- bump_line_counters ();
s = input_line_pointer;
if (strncmp (s, "APP\n", 4))
- continue; /* We ignore it */
+ {
+ /* We ignore it. */
+ ignore_rest_of_line ();
+ continue;
+ }
+ bump_line_counters ();
s += 4;
sb_new (&sbuf);
@@ -1109,7 +1113,7 @@ read_a_source_file (char *name)
continue;
#endif
input_line_pointer--;
- /* Report unknown char as ignored. */
+ /* Report unknown char as error. */
demand_empty_rest_of_line ();
}