This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: RFA: new command line switch for MIPS assembler
- To: Nick Clifton <nickc at cygnus dot com>
- Subject: Re: RFA: new command line switch for MIPS assembler
- From: Ulf Carlsson <ulfc at calypso dot engr dot sgi dot com>
- Date: Fri, 14 Jul 2000 14:22:00 -0700 (PDT)
- Cc: binutils at sourceware dot cygnus dot com
- References: <200007142111.OAA16610@elmo.cygnus.com>
Hi Nick,
> 2000-07-14 Nick Clifton <nickc@cygnus.com>
>
> * config/tc-mips.c (mips_disable_float_construction): New
> static variable. Set to true if doubles should not be
> constructed by loading two single width fp registers with
> halves of the value.
> (mips_ip): Test mips_disable_float_construction.
> (md_longopts): Add command line switches --construct-floats
> and --no-construct-floats.
> (md_parse_option): Parse new command line options.
> (md_show_usage): Describe new command line options.
>
> * doc/c-mips.texi: Document new command line options.
This looks fine with a minor exception:
> *************** struct option md_longopts[] = {
> *** 8866,8871 ****
> --- 8875,8886 ----
> #define OPTION_NO_M7000_HILO_FIX (OPTION_MD_BASE + 40)
> {"no-fix-7000", no_argument, NULL, OPTION_NO_M7000_HILO_FIX},
>
> + #define OPTION_CONSTRUCT_FLOATS (OPTION_MD_BASE + 41)
> + {"construct-floats", no_argument, NULL, OPTION_CONSTRUCT_FLOATS},
> +
> + #define OPTION_NO_CONSTRUCT_FLOATS (OPTION_MD_BASE + 42)
> + {"no-construct-floats", no_argument, NULL, OPTION_NO_CONSTRUCT_FLOATS},
> +
> #define OPTION_CALL_SHARED (OPTION_MD_BASE + 7)
> #define OPTION_NON_SHARED (OPTION_MD_BASE + 8)
> #define OPTION_XGOT (OPTION_MD_BASE + 19)
If you look further down in the list you'll see that 41 and 42 already
are used by OPTION_GP32 and OPTION_GP64. I think 43 and 44 should be
a safe bet.
Ulf