summaryrefslogtreecommitdiff
path: root/gas/app.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2007-03-09 23:25:59 +0000
committerAlexandre Oliva <aoliva@redhat.com>2007-03-09 23:25:59 +0000
commitee3d6f0a1aaa2a30ec330a1ff1e05d17a79dd2e5 (patch)
tree6f8319a91407db7432b6d1669e206f1bd372e043 /gas/app.c
parent52948cc4afedd526e7def34e3d59b7f86431f563 (diff)
downloadbinutils-redhat-ee3d6f0a1aaa2a30ec330a1ff1e05d17a79dd2e5.tar.gz
* app.c (do_scrub_chars): Recognize comments after # line "file".
* read.c (get_linefile_number): New. (s_app_line): Accept ill-formed .linefile lines as comments.
Diffstat (limited to 'gas/app.c')
-rw-r--r--gas/app.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/gas/app.c b/gas/app.c
index e6b39d6121..dc08f83523 100644
--- a/gas/app.c
+++ b/gas/app.c
@@ -355,7 +355,7 @@ do_scrub_chars (int (*get) (char *, int), char *tostart, int tolen)
5: parsing a string, then go to old-state
6: putting out \ escape in a "d string.
7: no longer used
- 8: After putting out a .appfile string, flush until newline.
+ 8: no longer used
9: After seeing symbol char in state 3 (keep 1white after symchar)
10: After seeing whitespace in state 9 (keep white before symchar)
11: After seeing a symbol character in state 0 (eg a label definition)
@@ -514,7 +514,7 @@ do_scrub_chars (int (*get) (char *, int), char *tostart, int tolen)
PUT (ch);
quotechar = ch;
state = 5;
- old_state = 8;
+ old_state = 3;
}
else
{
@@ -635,16 +635,6 @@ do_scrub_chars (int (*get) (char *, int), char *tostart, int tolen)
PUT (ch);
continue;
- case 8:
- do
- if ((ch = GET ()) == EOF)
- goto fromeof;
- else
- PUT (ch);
- while (ch != '\n');
- state = 0;
- continue;
-
#ifdef DOUBLEBAR_PARALLEL
case 13:
ch = GET ();