From 4cc782b5919b187ce44ea9d4a66793105aeb07da Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sun, 19 Sep 1999 23:03:56 +0000 Subject: [PATCH] 1999-09-19 Alexandre Oliva * config/tc-i386.c (md_shortopts): Check OBJ_MAYBE_ELF as well as OBJ_ELF. If ELF, add "sq". (md_parse_option): If ELF, ignore -s and -q. (md_show_usage): Mention ELF options. --- gas/ChangeLog | 7 +++++++ gas/config/tc-i386.c | 24 +++++++++++++++++++++--- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 737b659..8e49efc 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,10 @@ +1999-09-19 Alexandre Oliva + + * config/tc-i386.c (md_shortopts): Check OBJ_MAYBE_ELF as well as + OBJ_ELF. If ELF, add "sq". + (md_parse_option): If ELF, ignore -s and -q. + (md_show_usage): Mention ELF options. + Sun Sep 19 10:43:31 1999 Jeffrey A Law (law@cygnus.com) * config/tc-hppa.c (pa_ip): Handle 'J', 'K' and 'cc' diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index a8055cc..7397f43 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -4128,8 +4128,8 @@ parse_register (reg_string, end_op) return r; } -#ifdef OBJ_ELF -CONST char *md_shortopts = "kmVQ:"; +#if defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF) +CONST char *md_shortopts = "kmVQ:sq"; #else CONST char *md_shortopts = "m"; #endif @@ -4163,6 +4163,16 @@ md_parse_option (c, arg) should be emitted or not. FIXME: Not implemented. */ case 'Q': break; + + case 's': + /* -s: On i386 Solaris, this tells the native assembler to use + .stab instead of .stab.excl. We always use .stab anyhow. */ + break; + + case 'q': + /* -q: On i386 Solaris, this tells the native assembler does + fewer checks. */ + break; #endif default: @@ -4176,7 +4186,15 @@ md_show_usage (stream) FILE *stream; { fprintf (stream, _("\ --m do long jump\n")); + -m do long jump\n")); +#if defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF) + fprintf (stream, _("\ + -V print assembler version number\n\ + -k ignored\n\ + -Qy, -Qn ignored\n\ + -q ignored\n\ + -s ignored\n")); +#endif } #ifdef BFD_ASSEMBLER -- 2.7.4