• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revision601e61cdeb2bce4209cae548b310da12ab489bd6 (tree)
Zeit2006-07-25 01:30:55
AutorNick Clifton <nickc@redh...>
CommiterNick Clifton

Log Message

PR/2756
* read.c (read_a_source_file): Ignore unknown text after line comment

  1. Fix misleading comment.

Ändern Zusammenfassung

Diff

--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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+
17 2006-07-24 Ralk Wildenhues <Ralf.Wildenhues@gmx.de>
28
39 * doc/all.texi, doc/as.texinfo, doc/c-arc.texi, doc/c-arm.texi,
--- a/gas/read.c
+++ b/gas/read.c
@@ -1007,10 +1007,14 @@ read_a_source_file (char *name)
10071007 unsigned int new_length;
10081008 char *tmp_buf = 0;
10091009
1010- bump_line_counters ();
10111010 s = input_line_pointer;
10121011 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 ();
10141018 s += 4;
10151019
10161020 sb_new (&sbuf);
@@ -1109,7 +1113,7 @@ read_a_source_file (char *name)
11091113 continue;
11101114 #endif
11111115 input_line_pointer--;
1112- /* Report unknown char as ignored. */
1116+ /* Report unknown char as error. */
11131117 demand_empty_rest_of_line ();
11141118 }
11151119