From 46fd0f8c241a0afd36adf9c63b56839ace3a0210 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Wed, 1 Feb 2006 21:31:29 +0100 Subject: opts.c (no_unit_at_a_time_default): New global variable. 2006-02-01 Jan Hubicka * opts.c (no_unit_at_a_time_default): New global variable. (decode_options): Use it. * opts.h (no_unit_at_a_time_default): Declare. java/ * decl.c (end_java_method): Kill hack disabling unit-at-a-time. * lang.c (java_init_options): Set no_unit_at_a_time_default. From-SVN: r110479 --- gcc/opts.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'gcc/opts.c') diff --git a/gcc/opts.c b/gcc/opts.c index 1218e99326d..91a5fc2a745 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -80,6 +80,11 @@ bool use_gnu_debug_info_extensions; /* The default visibility for all symbols (unless overridden) */ enum symbol_visibility default_visibility = VISIBILITY_DEFAULT; +/* Disable unit-at-a-time for frontends that might be still broken in this + respect. */ + +bool no_unit_at_a_time_default; + /* Global visibility options. */ struct visibility_flags visibility_options; @@ -538,7 +543,8 @@ decode_options (unsigned int argc, const char **argv) flag_tree_copy_prop = 1; flag_tree_sink = 1; flag_tree_salias = 1; - flag_unit_at_a_time = 1; + if (!no_unit_at_a_time_default) + flag_unit_at_a_time = 1; if (!optimize_size) { -- cgit v1.2.1