From c2069bb2e371ac854fc2ac484406b28c998c4175 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 26 Oct 2009 23:57:43 +0000 Subject: [PATCH] PR gas/10850 * listing.c (listing_flags): Delete. * listing.h: Likewise. * read.c (potable ): Call s_ignore. --- gas/ChangeLog | 17 ++++++++++++----- gas/listing.c | 14 -------------- gas/listing.h | 3 +-- gas/read.c | 2 +- 4 files changed, 14 insertions(+), 22 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index db28217eff4..5cb302a7247 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,10 @@ +2009-10-27 Alan Modra + + PR gas/10850 + * listing.c (listing_flags): Delete. + * listing.h: Likewise. + * read.c (potable ): Call s_ignore. + 2009-10-26 Nick Clifton * doc/as.texinfo: Add mention of RX port and inclusion of RX @@ -7,13 +14,13 @@ * config/tc-z80.c (z80_start_line_hook): Fix parsing of 'equ' or 'defl' in cases where the space between the keyword and the - expression has been scrubbed away. + expression has been scrubbed away. Do not check whether a symbol is redefined with 'equ' here; the function equals takes an argument indicating whether - redefinitions are allowed. + redefinitions are allowed. Only call LISTING_NEWLINE if needed, and then after the call to - bump_line_counters. - + bump_line_counters. + 2009-10-25 Maciej W. Rozycki * doc/as.texinfo (Overview): Move -mfix7000/-mno-fix7000 to @@ -83,7 +90,7 @@ * config/tc-i386.c (i386_finalize_immediate): Don't generate error message if operand string is NULL. -2009-10-013 Vincent Riviere +2009-10-013 Vincent Riviere PR gas/3041 * config/tc-m68k.c (tc_gen_reloc): Fix addend for relocations diff --git a/gas/listing.c b/gas/listing.c index d1c291c3aeb..25178b36390 100644 --- a/gas/listing.c +++ b/gas/listing.c @@ -1409,14 +1409,6 @@ listing_eject (int ignore ATTRIBUTE_UNUSED) 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, @@ -1558,12 +1550,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) { diff --git a/gas/listing.h b/gas/listing.h index 6b6e9ce2fc5..79afdac6b60 100644 --- a/gas/listing.h +++ b/gas/listing.h @@ -1,6 +1,6 @@ /* This file is listing.h Copyright 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1995, 1997, 1998, - 2003, 2005, 2007, 2008 Free Software Foundation, Inc. + 2003, 2005, 2007, 2008, 2009 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -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); diff --git a/gas/read.c b/gas/read.c index 614457068a1..45e95f62baf 100644 --- a/gas/read.c +++ b/gas/read.c @@ -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. */ -- 2.30.2