From d522e7a2222a240910be4554bf202f21c1aa13e9 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Tue, 15 Mar 2005 23:02:37 +0000 Subject: toplev.c (display_target_options): Avoid unused variable warning if TARGET_SWITCHES and TARGET_OPTIONS are both... * toplev.c (display_target_options): Avoid unused variable warning if TARGET_SWITCHES and TARGET_OPTIONS are both undefined. * config/mips/mips.c (mips_arch_string, mips_tune_string): Make static. (mips_isa_string, mips_abi_string, mips_fix_vr4130_string): Delete. (mips_isa): Initialize to MIPS_ABI_DEFAULT. (mips_isa_info): New variable. (mips_parse_cpu): Remove the first argument and leave the caller to report errors. (TARGET_HANDLE_OPTION): Override default. (mips_handle_option): New function. Move option validation code from... (override_options): ...here. Update calls to mips_parse_cpu. * config/mips/mips.h (mips_arch_string, mips_tune_string) (mips_isa_string, mips_abi_string, TARGET_OPTIONS) (SUBTARGET_TARGET_OPTIONS): Delete. * config/mips/mips.opt (mabi=, march=, mflush-func=, mips) (mno-flush-func, mtune=): New options. From-SVN: r96536 --- gcc/toplev.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gcc/toplev.c') diff --git a/gcc/toplev.c b/gcc/toplev.c index 04b02bc..855e04a 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -1067,7 +1067,10 @@ compile_file (void) void display_target_options (void) { - int undoc, i; + int undoc; +#if defined (TARGET_SWITCHES) || defined (TARGET_OPTIONS) + int i; +#endif unsigned int cli; static bool displayed = false; -- cgit v1.1