summaryrefslogtreecommitdiff
path: root/gas/listing.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2008-04-10 12:45:18 +0000
committerNick Clifton <nickc@redhat.com>2008-04-10 12:45:18 +0000
commitef23c7c400bed572a1d9ca778f2307dfd2ed79ac (patch)
treef17e0e40b73b56865d4f6197143c5b4d12b818ce /gas/listing.h
parent326746e64026d14a821282d207f7aceb46683ca0 (diff)
downloadbinutils-redhat-ef23c7c400bed572a1d9ca778f2307dfd2ed79ac.tar.gz
* listing.c: Add -ag listing flag to show general information in
listings such as gas version, passed options, and time stamp. (listing_general_info): New function. (print_options): New function. (print_single_option): New function. (print_timestamp): New function. (MAX_DATELEN): Define. (listing_print): Add call to listing_general_info. * listing.h (LISTING_GENERAL): Define. (listing_print): Add new parameter. * as.c (show_usage): Print new switch. (parse_args): Parse new switch. (main): Pass command line on to listing_print. * NEWS: Mention this new feature. * doc/as.texinfo: Document the new sub-option. * gas/all/gas.exp: Check the performance of the -ag command line switch.
Diffstat (limited to 'gas/listing.h')
-rw-r--r--gas/listing.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/gas/listing.h b/gas/listing.h
index d78c2b15dc..1969b34d3a 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, 2007 Free Software Foundation, Inc.
+ 2003, 2007, 2008 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -27,13 +27,14 @@
#define LISTING_NOFORM 4
#define LISTING_HLL 8
#define LISTING_NODEBUG 16
-#define LISTING_NOCOND 32
-#define LISTING_MACEXP 64
+#define LISTING_NOCOND 32
+#define LISTING_MACEXP 64
+#define LISTING_GENERAL 128
#define LISTING_DEFAULT (LISTING_LISTING | LISTING_HLL | LISTING_SYMBOLS)
#ifndef NO_LISTING
-#define LISTING_NEWLINE() { if (listing) listing_newline(NULL); }
+#define LISTING_NEWLINE() { if (listing) listing_newline (NULL); }
#else
#define LISTING_NEWLINE() {;}
#endif
@@ -48,7 +49,7 @@ void listing_flags (int);
void listing_list (int on);
void listing_newline (char *ps);
void listing_prev_line (void);
-void listing_print (char *name);
+void listing_print (char *, char **);
void listing_psize (int);
void listing_nopage (int);
void listing_source_file (const char *);