This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PR gas/10850, .lflags
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sourceware dot org
- Date: Tue, 27 Oct 2009 10:29:36 +1030
- Subject: PR gas/10850, .lflags
listing_flags has done nothing since rev 1.1 except incorrectly
consume input.
PR gas/10850
* listing.c (listing_flags): Delete.
* listing.h: Likewise.
* read.c (potable <lflags>): Call s_ignore.
Index: gas/listing.c
===================================================================
RCS file: /cvs/src/src/gas/listing.c,v
retrieving revision 1.43
diff -u -p -r1.43 listing.c
--- gas/listing.c 15 Oct 2009 10:58:34 -0000 1.43
+++ gas/listing.c 26 Oct 2009 23:33:11 -0000
@@ -1409,14 +1409,6 @@ listing_eject (int ignore ATTRIBUTE_UNUS
listing_tail->edict = EDICT_EJECT;
}
-void
-listing_flags (int ignore ATTRIBUTE_UNUSED)
-{
- while ((*input_line_pointer++) && (*input_line_pointer != '\n'))
- input_line_pointer++;
-
-}
-
/* Turn listing on or off. An argument of 0 means to turn off
listing. An argument of 1 means to turn on listing. An argument
of 2 means to turn off listing, but as of the next line; that is,
@@ -1559,12 +1551,6 @@ listing_source_file (const char *file)
/* Dummy functions for when compiled without listing enabled. */
void
-listing_flags (int ignore)
-{
- s_ignore (0);
-}
-
-void
listing_list (int on)
{
s_ignore (0);
Index: gas/listing.h
===================================================================
RCS file: /cvs/src/src/gas/listing.h,v
retrieving revision 1.8
diff -u -p -r1.8 listing.h
--- gas/listing.h 2 Sep 2009 07:24:19 -0000 1.8
+++ gas/listing.h 26 Oct 2009 23:33:11 -0000
@@ -45,7 +45,6 @@
void listing_eject (int);
void listing_error (const char *message);
void listing_file (const char *name);
-void listing_flags (int);
void listing_list (int on);
void listing_newline (char *ps);
void listing_prev_line (void);
Index: gas/read.c
===================================================================
RCS file: /cvs/src/src/gas/read.c,v
retrieving revision 1.158
diff -u -p -r1.158 read.c
--- gas/read.c 15 Oct 2009 10:58:34 -0000 1.158
+++ gas/read.c 26 Oct 2009 23:33:13 -0000
@@ -371,7 +371,7 @@ static const pseudo_typeS potable[] = {
{"irpc", s_irp, 1},
{"irepc", s_irp, 1},
{"lcomm", s_lcomm, 0},
- {"lflags", listing_flags, 0}, /* Listing flags. */
+ {"lflags", s_ignore, 0}, /* Listing flags. */
{"linefile", s_app_line, 0},
{"linkonce", s_linkonce, 0},
{"list", listing_list, 1}, /* Turn listing on. */
--
Alan Modra
Australia Development Lab, IBM