diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-18 10:33:36 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-18 10:33:36 +0000 |
commit | 0f15bf2ebe4b001a06ab7869f0c7bcbb74b5469e (patch) | |
tree | 7393ac7f037f04ea997b60a08f0eba639c9798d6 /gcc/toplev.c | |
parent | 80135bd9bbf06da9d0214ece3c59c301d3af3a2b (diff) | |
download | gcc-0f15bf2ebe4b001a06ab7869f0c7bcbb74b5469e.tar.gz |
2010-11-18 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 166897
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@166899 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 65 |
1 files changed, 10 insertions, 55 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index 129cb649e4a..d8cb79d1ce1 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -129,9 +129,6 @@ static void crash_signal (int) ATTRIBUTE_NORETURN; static void setup_core_dumping (void); static void compile_file (void); -/* Nonzero to dump debug info whilst parsing (-dy option). */ -static int set_yydebug; - /* True if we don't need a backend (e.g. preprocessing only). */ static bool no_backend; @@ -152,18 +149,6 @@ const char *main_input_filename; to optimize in process_options (). */ #define AUTODETECT_VALUE 2 -/* Name to use as base of names for dump output files. */ - -const char *dump_base_name; - -/* Directory used for dump output files. */ - -const char *dump_dir_name; - -/* Name to use as a base for auxiliary output files. */ - -const char *aux_base_name; - /* Prefix for profile data files */ const char *profile_data_prefix; @@ -177,10 +162,6 @@ int rtl_dump_and_exit; int flag_print_asm_name; enum graph_dump_types graph_dump_format; -/* Name for output file of assembly code, specified with -o. */ - -const char *asm_file_name; - /* 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 @@ -188,10 +169,6 @@ const char *asm_file_name; bool in_lto_p = false; -/* Nonzero if we should write GIMPLE bytecode for link-time optimization. */ - -int flag_generate_lto; - /* The FUNCTION_DECL for the function currently being compiled, or 0 if between functions. */ tree current_function_decl; @@ -210,19 +187,6 @@ unsigned local_tick; /* -f flags. */ -/* Nonzero means we should be saving declaration info into a .X file. */ - -int flag_gen_aux_info = 0; - -/* Specified name of aux-info file. */ - -const char *aux_info_file_name; - -/* Nonzero if we are compiling code for a shared library, zero for - executable. */ - -int flag_shlib; - /* Generate code for GNU or NeXT Objective-C runtime environment. */ #ifdef NEXT_OBJC_RUNTIME @@ -231,19 +195,6 @@ int flag_next_runtime = 1; int flag_next_runtime = 0; #endif -/* Set to the default thread-local storage (tls) model to use. */ - -enum tls_model flag_tls_default = TLS_MODEL_GLOBAL_DYNAMIC; - -/* Set the default for excess precision. */ - -enum excess_precision flag_excess_precision_cmdline = EXCESS_PRECISION_DEFAULT; - -/* Nonzero means change certain warnings into errors. - Usually these are warnings about failure to conform to some standard. */ - -int flag_pedantic_errors = 0; - /* Nonzero means make permerror produce warnings instead of errors. */ int flag_permissive = 0; @@ -928,7 +879,7 @@ compile_file (void) /* Call the parser, which parses the entire file (calling rest_of_compilation for each function). */ - lang_hooks.parse_file (set_yydebug); + lang_hooks.parse_file (); /* Compilation is now finished except for writing what's left of the symbol table output. */ @@ -1051,9 +1002,6 @@ decode_d_option (const char *arg) case 'x': rtl_dump_and_exit = 1; break; - case 'y': - set_yydebug = 1; - break; case 'D': /* These are handled by the preprocessor. */ case 'I': case 'M': @@ -1626,7 +1574,7 @@ open_auxiliary_file (const char *ext) filename = concat (aux_base_name, ".", ext, NULL); file = fopen (filename, "w"); if (!file) - fatal_error ("can't open %s for writing: %m", filename); + fatal_error ("can%'t open %s for writing: %m", filename); free (filename); return file; } @@ -1986,6 +1934,12 @@ process_options (void) flag_var_tracking_uninit = 0; } + /* The debug hooks are used to implement -fdump-go-spec because it + gives a simple and stable API for all the information we need to + dump. */ + if (flag_dump_go_spec != NULL) + debug_hooks = dump_go_spec_init (flag_dump_go_spec, debug_hooks); + /* If the user specifically requested variable tracking with tagging uninitialized variables, we need to turn on variable tracking. (We already determined above that variable tracking is feasible.) */ @@ -2426,7 +2380,8 @@ toplev_main (int argc, char **argv) /* Parse the options and do minimal processing; basically just enough to default flags appropriately. */ decode_options (&global_options, &global_options_set, - save_decoded_options, save_decoded_options_count); + save_decoded_options, save_decoded_options_count, + UNKNOWN_LOCATION, global_dc); init_local_tick (); |