GNU Binutils with patches for OS216
Revision | 601e61cdeb2bce4209cae548b310da12ab489bd6 (tree) |
---|---|
Zeit | 2006-07-25 01:30:55 |
Autor | Nick Clifton <nickc@redh...> |
Commiter | Nick Clifton |
PR/2756
* read.c (read_a_source_file): Ignore unknown text after line comment
@@ -1,3 +1,9 @@ | ||
1 | +2006-07-24 Andreas Schwab <schwab@suse.de> | |
2 | + | |
3 | + PR/2756 | |
4 | + * read.c (read_a_source_file): Ignore unknown text after line | |
5 | + comment character. Fix misleading comment. | |
6 | + | |
1 | 7 | 2006-07-24 Ralk Wildenhues <Ralf.Wildenhues@gmx.de> |
2 | 8 | |
3 | 9 | * doc/all.texi, doc/as.texinfo, doc/c-arc.texi, doc/c-arm.texi, |
@@ -1007,10 +1007,14 @@ read_a_source_file (char *name) | ||
1007 | 1007 | unsigned int new_length; |
1008 | 1008 | char *tmp_buf = 0; |
1009 | 1009 | |
1010 | - bump_line_counters (); | |
1011 | 1010 | s = input_line_pointer; |
1012 | 1011 | if (strncmp (s, "APP\n", 4)) |
1013 | - continue; /* We ignore it */ | |
1012 | + { | |
1013 | + /* We ignore it. */ | |
1014 | + ignore_rest_of_line (); | |
1015 | + continue; | |
1016 | + } | |
1017 | + bump_line_counters (); | |
1014 | 1018 | s += 4; |
1015 | 1019 | |
1016 | 1020 | sb_new (&sbuf); |
@@ -1109,7 +1113,7 @@ read_a_source_file (char *name) | ||
1109 | 1113 | continue; |
1110 | 1114 | #endif |
1111 | 1115 | input_line_pointer--; |
1112 | - /* Report unknown char as ignored. */ | |
1116 | + /* Report unknown char as error. */ | |
1113 | 1117 | demand_empty_rest_of_line (); |
1114 | 1118 | } |
1115 | 1119 |