From a7d0d30f0b0257d66c13ea9bdd2418acc0e07830 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 28 Jun 2011 18:00:59 +0100 Subject: common.opt (in_lto_p): New Variable entry. * common.opt (in_lto_p): New Variable entry. * flags.h (in_lto_p): Move to common.opt. * gcc.c: Include params.h. (set_option_handlers): Also use common_handle_option and target_handle_option. (main): Call global_init_params, finish_params and init_options_struct. * opts.c (debug_type_names): Move from toplev.c. (print_filtered_help): Access quiet_flag through opts pointer. (common_handle_option): Return early in the driver for some options. Access in_lto_p, dwarf_version and warn_maybe_uninitialized through opts pointer. * toplev.c (in_lto_p): Move to common.opt. (debug_type_names): Move to opts.c. * Makefile.in (OBJS): Remove opts.o. (OBJS-libcommon-target): Add opts.o. (gcc.o): Update dependencies. From-SVN: r175591 --- gcc/toplev.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'gcc/toplev.c') diff --git a/gcc/toplev.c b/gcc/toplev.c index 8b02b38..884994c 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -125,13 +125,6 @@ unsigned int save_decoded_options_count; const struct gcc_debug_hooks *debug_hooks; -/* True if this is the lto front end. This is used to disable - gimple generation and lowering passes that are normally run on the - output of a front end. These passes must be bypassed for lto since - they have already been done before the gimple was written. */ - -bool in_lto_p = false; - /* The FUNCTION_DECL for the function currently being compiled, or 0 if between functions. */ tree current_function_decl; @@ -658,12 +651,6 @@ compile_file (void) timevar_stop (TV_PHASE_GENERATE); } -/* Indexed by enum debug_info_type. */ -const char *const debug_type_names[] = -{ - "none", "stabs", "coff", "dwarf-2", "xcoff", "vms" -}; - /* Print version information to FILE. Each line begins with INDENT (for the case where FILE is the assembler output file). */ -- cgit v1.1