?? 702-binutils-skip-comments.patch
字號:
Retrieved from http://sources.redhat.com/ml/binutils/2004-04/msg00646.htmlFixeslocalealias.s:544: Error: junk at end of line, first unrecognized character is `,' when building glibc-2.3.2 with gcc-3.4.0 and binutils-2.15.90.0.3Paths adjusted to match crosstool's patcher.Message-Id: m3n052qw2g.fsf@whitebox.m5r.deFrom: Andreas Schwab <schwab at suse dot de>To: Nathan Sidwell <nathan at codesourcery dot com>Cc: Ian Lance Taylor <ian at wasabisystems dot com>, binutils at sources dot redhat dot comDate: Fri, 23 Apr 2004 22:27:19 +0200Subject: Re: demand_empty_rest_of_line and ignore_rest_of_lineNathan Sidwell <nathan@codesourcery.com> writes:> Index: read.c> ===================================================================> RCS file: /cvs/src/src/gas/read.c,v> retrieving revision 1.76> diff -c -3 -p -r1.76 read.c> *** read.c 12 Mar 2004 17:48:12 -0000 1.76> --- read.c 18 Mar 2004 09:56:05 -0000> *************** read_a_source_file (char *name)> *** 1053,1059 ****> #endif> input_line_pointer--;> /* Report unknown char as ignored. */> ! ignore_rest_of_line ();> }> > #ifdef md_after_pass_hook> --- 1053,1059 ----> #endif> input_line_pointer--;> /* Report unknown char as ignored. */> ! demand_empty_rest_of_line ();> }> > #ifdef md_after_pass_hookThis means that the unknown character is no longer ignored, despite thecomment. As a side effect a line starting with a line comment characternot followed by APP in NO_APP mode now triggers an error instead of just awarning, breaking builds of glibc on m68k-linux. Earlier inread_a_source_file where #APP is handled there is another comment thatclaims that unknown comments are ignored, when in fact they aren't (onlythe initial line comment character is skipped).Note that the presence of #APP will mess up the line counters, butthat appears to be difficult to fix.Andreas.2004-04-23 Andreas Schwab <schwab@suse.de> * read.c (read_a_source_file): Ignore unknown text after line comment character. Fix misleading comment.Index: binutils-2.17/gas/read.c===================================================================--- binutils-2.17.orig/gas/read.c 2007-06-28 09:19:34.031062944 +0200+++ binutils-2.17/gas/read.c 2007-06-28 09:19:39.244270416 +0200@@ -1008,10 +1008,14 @@ 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);@@ -1110,7 +1114,7 @@ continue; #endif input_line_pointer--;- /* Report unknown char as ignored. */+ /* Report unknown char as error. */ demand_empty_rest_of_line (); }
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -