+2006-02-01 Jan Hubicka <jh@suse.cz>
+
+ * opts.c (no_unit_at_a_time_default): New global variable.
+ (decode_options): Use it.
+ * opts.h (no_unit_at_a_time_default): Declare.
+
2006-02-01 Paul Brook <paul@codesourcery.com>
* function.c (assign_parm_setup_reg): Use function argument promotion
+2006-02-01 Jan Hubicka <jh@suse.cz>
+
+ * decl.c (end_java_method): Kill hack disabling unit-at-a-time.
+ * lang.c (java_init_options): Set no_unit_at_a_time_default.
+
2006-01-30 Andrew Haley <aph@redhat.com>
PR java/21428
attach_init_test_initialization_flags, block_body);
}
- flag_unit_at_a_time = 0;
finish_method (fndecl);
if (! flag_unit_at_a_time)
/* Java requires left-to-right evaluation of subexpressions. */
flag_evaluation_order = 1;
+ /* Unit at a time is disabled for Java because it is considered
+ too expensive. */
+ no_unit_at_a_time_default = 1;
+
jcf_path_init ();
return CL_Java;
/* 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;
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)
{
extern const struct cl_option cl_options[];
extern const unsigned int cl_options_count;
extern const char *const lang_names[];
+extern bool no_unit_at_a_time_default;
#define CL_DISABLED (1 << 21) /* Disabled in this configuration. */
#define CL_TARGET (1 << 22) /* Target-specific option. */