From: Nick Clifton Date: Mon, 24 Jul 2006 16:30:55 +0000 (+0000) Subject: PR/2756 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=601e61cdeb2bce4209cae548b310da12ab489bd6;p=binutils-gdb.git PR/2756 * read.c (read_a_source_file): Ignore unknown text after line comment character. Fix misleading comment. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index cdf9095e814..d88e39d7a06 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2006-07-24 Andreas Schwab + + PR/2756 + * read.c (read_a_source_file): Ignore unknown text after line + comment character. Fix misleading comment. + 2006-07-24 Ralk Wildenhues * doc/all.texi, doc/as.texinfo, doc/c-arc.texi, doc/c-arm.texi, diff --git a/gas/read.c b/gas/read.c index cb9e72c3b40..af1a0b9c030 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 (); }