public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Eric Christopher <echristo@redhat.com>
To: Richard Sandiford <rsandifo@redhat.com>
Cc: cgd@broadcom.com, gcc-patches@gcc.gnu.org,
	binutils@sources.redhat.com,
	Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de>,
	"Maciej W. Rozycki" <macro@ds2.pg.gda.pl>,
	"Mark D. Baushke" <mdb@gnu.org>,
	Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
Subject: Re: [Revised patch] Rework MIPS command-line handling
Date: Mon, 22 Jul 2002 13:13:00 -0000	[thread overview]
Message-ID: <1027365049.2207.13.camel@ghostwheel.cygnus.com> (raw)
In-Reply-To: <wvnn0sk11ve.fsf@talisman.cambridge.redhat.com>


> 
> OK to install?

Looks great to me. Now, the question of requiring certain versions of
gas with certain versions of gcc comes up. I think now is a great
occasion to do this.



-eric

> 
> [include/]
> 	* opcode/mips.h (CPU_R2000): Remove.
> 
> [gas/]
> 	* doc/c-mips.texi: Remove -mcpu.  Document -mabi.
> 	* configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
> 	(USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
> 	* configure, config.in: Regenerate.
> 	* config/tc-mips.c (file_mips_abi): Rename to mips_abi.
> 	(mips_set_options): Remove "abi" field.
> 	(mips_opts): Update accordingly.  Replace all uses of mips_opts.abi
> 	with mips_abi.
> 	(mips_cpu): Remove.
> 	(mips_arch_string, mips_arch_info): New vars.
> 	(mips_tune_string, mips_tune_info): New vars.
> 	(ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
> 	(HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
> 	(mips_isa_to_str, mips_cpu_to_str): Remove.
> 	(mips_ip): If the selected architecture is a generic ISA rather
> 	than a processor, only mention the ISA level in error messages.
> 	(OPTION_MCPU): Remove.
> 	(OPTION_FP64): New.
> 	(md_longopts): Add -mfp64, remove -mcpu.
> 	(mips_set_option_string): New fn.
> 	(md_parse_option): Make -mipsN update file_mips_isa rather than
> 	mips_opts.isa.  Use mips_set_option_string to set -march or -mtune.
> 	Don't let -mgp32 and -mfp32 change the ABI.
> 	(show): Move to end of file.  Constify string argument.
> 	(md_show_usage): Move to the end of the file.  Read available
> 	architectures from mips_cpu_info_table.
> 	(mips_set_architecture): New fn.
> 	(mips_after_parse_args): Rework.  Remove -mcpu handling.  -mipsN
> 	is an alias for -march=mipsN.  Don't change the ABI based on other
> 	flags.  Infer the register size from the ABI as	well as the
> 	architecture.  Complain about more conflicting arguments.
> 	[Logic unified with gcc 3.2.]
> 	(s_mipsset): Don't change the ABI.
> 	(mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
> 	(mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
> 	"mipsN"-type entries.  Remove entries that vary only in the
> 	manufacturer's prefix, or that have "000" replaced by "k".
> 	Remove TARGET_CPU entries.  Make r2000 entry use CPU_R3000.
> 	(mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
> 	(mips_parse_cpu): New fn.
> 	(mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
> 	(mips_cpu_info_from_isa): Minor formatting tweak.
> 
> [gas/testsuite]
> 	* gas/mips/mips-gp32-fp64.d,
> 	* gas/mips/mips-gp32-fp64-pic.d: Add -mfp64.
> 
> [gcc/]
> 	* doc/invoke.texi: Document -mabi=meabi, and expand on the EABI
> 	description.  Document -mips32, -mips64, and the associated -march
> 	values.  Describe the "mipsN" arguments to -march.  Say that the
> 	-mipsN options are equivalent to -march.  Reword the description
> 	of default type sizes.
> 	* toplev.h (target_flags_explicit): Declare.
> 	* toplev.c (target_flags_explicit): New var.
> 	(set_target_switch): Update target_flags_explicit.
> 	* config/mips/abi64.h (SUBTARGET_TARGET_OPTIONS): Undefine.
> 	* config/mips/elf64.h (MIPS_ISA_DEFAULT): Undefine.
> 	* config/mips/iris6.h (SUBTARGET_ASM_SPEC): -mabi=64 implies -mips3.
> 	* config/mips/isa3264.h (MIPS_ENABLE_EMBEDDED_O32): Undefine.
> 	* config/mips/mips.h (mips_cpu_info): New struct.
> 	(mips_cpu_string, mips_explicit_type_size_string): Remove.
> 	(mips_cpu_info_table, mips_arch_info, mips_tune_info): Declare.
> 	(MIPS_CPP_SET_PROCESSOR): New macro.
> 	(TARGET_CPP_BUILTINS): Declare a macro for each supported processor.
> 	Define _MIPS_ARCH and _MIPS_TUNE.
> 	(MIPS_ISA_DEFAULT): Don't provide a default value.  Instead...
> 	(MIPS_CPU_STRING_DEFAULT): Set to "from-abi" if neither it nor
> 	MIPS_ISA_DEFAULT were already defined.
> 	(MULTILIB_DEFAULTS): Add MULTILIB_ABI_DEFAULT.
> 	(TARGET_OPTIONS): Remove -mcpu and -mexplicit-type-size.
> 	(ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New.
> 	(GAS_ASM_SPEC): Remove -march, -mcpu, -mgp* and -mabi rules.
> 	(ABI_GAS_ASM_SPEC): Remove.
> 	(MULTILIB_ABI_DEFAULT, ASM_ABI_DEFAULT_SPEC): New macros.
> 	(ASM_SPEC): Add -mgp32, -mgp64, -march, -mabi=eabi and -mabi=o64.
> 	Invoke %(asm_abi_default_spec) if no ABI was specified.
> 	(CC1_SPEC): Remove ISA -> register-size rules.
> 	(EXTRA_SPECS): Remove abi_gas_asm_spec.  Add asm_abi_default_spec.
> 	* config/mips/mips.c (mips_arch_info, mips_tune_info): New vars.
> 	(mips_cpu_string, mips_explicit_type_size_string): Remove.
> 	(mips_cpu_info_table): New array.
> 	(mips_set_architecture, mips_set_tune): New fns.
> 	(override_options): Rework to make -mipsN equivalent to -march.
> 	Detect more erroneous cases, including those removed from CC1_SPEC.
> 	Don't change the ABI based on architecture, or vice versa.
> 	Unify logic with GAS 2.14.
> 	(mips_asm_file_start): Get architecture name from mips_arch_info.
> 	(mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
> 	(mips_parse_cpu): Take the name of the option as argument.  Handle
> 	'from-abi'.  Raise an error if the option is wrong.
> 	(mips_cpu_info_from_isa): New fn.
> 
> [gcc/testsuite]
> 	* gcc.dg/mips-args-[123].c: New tests.
> 
> ----
> 

-- 
I don't want a pony, I want a rocket
powered jetpack!

  parent reply	other threads:[~2002-07-22 19:12 UTC|newest]

Thread overview: 97+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-12 10:16 RFC & patch: " Richard Sandiford
2002-07-12 11:39 ` Maciej W. Rozycki
2002-07-12 12:28   ` Paul Koning
2002-07-15  4:50   ` Richard Sandiford
2002-07-15 13:18     ` Thiemo Seufer
2002-07-15 13:31       ` Eric Christopher
2002-07-15 13:59         ` Thiemo Seufer
2002-07-15 14:25           ` Eric Christopher
2002-07-15 14:30             ` Thiemo Seufer
2002-07-15 14:59               ` Eric Christopher
2002-07-15 15:04                 ` Thiemo Seufer
2002-07-15 17:26                   ` Eric Christopher
2002-07-16  3:54     ` Maciej W. Rozycki
2002-07-16  4:47       ` Mark D. Baushke
2002-07-16 11:33         ` Eric Christopher
     [not found]           ` <mailpost.1026843855.9110@news-sj1-1>
2002-07-16 18:18             ` cgd
2002-07-17  2:19               ` Maciej W. Rozycki
2002-07-17 15:18               ` Eric Christopher
2002-07-12 11:46 ` Eric Christopher
2002-07-12 12:46   ` Maciej W. Rozycki
2002-07-12 18:16     ` Eric Christopher
     [not found]       ` <mailpost.1026512166.22848@news-sj1-1>
2002-07-13 19:56         ` cgd
2002-07-15  5:39           ` Richard Sandiford
2002-07-14 11:38       ` Thiemo Seufer
2002-07-15  1:03       ` Maciej W. Rozycki
2002-07-15  3:13         ` Mark D. Baushke
2002-07-15  6:40           ` Richard Sandiford
     [not found]     ` <mailpost.1026503036.18648@news-sj1-1>
2002-07-13  0:52       ` cgd
2002-07-14 11:22     ` Thiemo Seufer
     [not found]   ` <mailpost.1026499181.16972@news-sj1-1>
2002-07-13  0:42     ` cgd
2002-07-14 10:53   ` Thiemo Seufer
2002-07-14 23:13     ` Maciej W. Rozycki
     [not found] ` <mailpost.1026493441.14222@news-sj1-1>
2002-07-13  0:40   ` cgd
2002-07-15  5:07     ` Richard Sandiford
     [not found]       ` <mailpost.1026733871.20742@news-sj1-1>
2002-07-15 11:04         ` cgd
2002-07-15 14:28           ` Eric Christopher
2002-07-16  3:23             ` Richard Sandiford
2002-07-16 12:16               ` Eric Christopher
     [not found]               ` <mailpost.1026812813.25035@news-sj1-1>
2002-07-16 17:48                 ` cgd
2002-07-14 10:43 ` Thiemo Seufer
2002-07-15  3:40   ` Richard Sandiford
2002-07-15  3:57     ` Mark D. Baushke
     [not found]       ` <mailpost.1026729642.18965@news-sj1-1>
2002-07-15 10:54         ` cgd
2002-07-15 11:02           ` Mark D. Baushke
2002-07-15 11:11             ` cgd
     [not found]     ` <mailpost.1026728027.18467@news-sj1-1>
2002-07-15 10:47       ` cgd
2002-07-15 11:22         ` Thiemo Seufer
     [not found]           ` <mailpost.1026757359.1135@news-sj1-1>
2002-07-16 17:24             ` cgd
2002-07-18 12:48               ` Thiemo Seufer
2002-07-18 13:09                 ` Eric Christopher
2002-07-16  4:04         ` Maciej W. Rozycki
2002-07-15 11:01     ` Thiemo Seufer
     [not found]       ` <mailpost.1026755685.506@news-sj1-1>
2002-07-15 11:24         ` cgd
2002-07-15 12:51           ` Thiemo Seufer
2002-07-16  3:57             ` Maciej W. Rozycki
2002-07-18 13:43               ` Thiemo Seufer
     [not found]             ` <mailpost.1026759415.2116@news-sj1-1>
2002-07-16 17:34               ` cgd
2002-07-16 18:56                 ` H. J. Lu
2002-07-16 18:57                   ` cgd
2002-07-18 13:57                 ` Thiemo Seufer
2002-07-16  4:45           ` Maciej W. Rozycki
2002-07-16  5:31           ` Richard Sandiford
2002-07-16 11:39             ` Eric Christopher
2002-07-18 14:44             ` Thiemo Seufer
2002-07-16  2:40       ` Richard Sandiford
2002-07-18 13:36         ` Thiemo Seufer
2002-07-16  4:17       ` Maciej W. Rozycki
2002-07-16  2:46     ` Maciej W. Rozycki
2002-07-16  8:01       ` Paul Koning
2002-07-16 11:01         ` Maciej W. Rozycki
2002-07-18 12:44 ` [Revised patch] " Richard Sandiford
2002-07-18 13:44   ` cgd
2002-07-18 18:12     ` Eric Christopher
2002-07-19  2:53     ` Richard Sandiford
2002-07-19  3:10       ` Mark D. Baushke
2002-07-19 10:11         ` cgd
2002-07-19  9:56       ` cgd
2002-07-22  3:47         ` Richard Sandiford
2002-07-22  4:19           ` Gerald Pfeifer
2002-07-22 11:13           ` Maciej W. Rozycki
2002-07-22 11:21             ` Richard Sandiford
2002-07-22 11:53             ` Eric Christopher
2002-07-22 12:12             ` Paul Koning
2002-07-22 13:13           ` Eric Christopher [this message]
     [not found]           ` <mailpost.1027334536.9318@news-sj1-1>
2002-07-22 15:13             ` cgd
2002-07-23  2:03               ` Richard Sandiford
     [not found]                 ` <mailpost.1027412600.13407@news-sj1-1>
2002-07-23  9:42                   ` cgd
2002-07-23  9:42                     ` Richard Sandiford
2002-07-23 10:04                       ` cgd
2002-07-23 10:16                         ` Richard Sandiford
2002-07-23 10:24                           ` cgd
2002-07-23 10:44                             ` Richard Sandiford
2002-07-23 10:52                               ` cgd
2002-07-23 11:38                                 ` Richard Sandiford
2002-07-23 13:18                                   ` Eric Christopher
2002-07-25  3:03           ` Richard Sandiford
2002-07-18 16:32   ` Thiemo Seufer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1027365049.2207.13.camel@ghostwheel.cygnus.com \
    --to=echristo@redhat.com \
    --cc=binutils@sources.redhat.com \
    --cc=cgd@broadcom.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=ica2_ts@csv.ica.uni-stuttgart.de \
    --cc=macro@ds2.pg.gda.pl \
    --cc=mdb@gnu.org \
    --cc=pfeifer@dbai.tuwien.ac.at \
    --cc=rsandifo@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).