OSDN Git Service

2006-02-01 Jan Hubicka <jh@suse.cz>
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Feb 2006 20:31:29 +0000 (20:31 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Feb 2006 20:31:29 +0000 (20:31 +0000)
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110479 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/java/ChangeLog
gcc/java/decl.c
gcc/java/lang.c
gcc/opts.c
gcc/opts.h

index d9ebf25..1898c2a 100644 (file)
@@ -1,3 +1,9 @@
+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  Paul Brook  <paul@codesourcery.com>
 
        * function.c (assign_parm_setup_reg): Use function argument promotion
index f986030..39fb643 100644 (file)
@@ -1,3 +1,8 @@
+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
 2006-01-30  Andrew Haley  <aph@redhat.com>
 
        PR java/21428
index 7ef1325..65fa4c6 100644 (file)
@@ -2072,7 +2072,6 @@ end_java_method (void)
                     attach_init_test_initialization_flags, block_body);
     }
 
                     attach_init_test_initialization_flags, block_body);
     }
 
-  flag_unit_at_a_time = 0;
   finish_method (fndecl);
 
   if (! flag_unit_at_a_time)
   finish_method (fndecl);
 
   if (! flag_unit_at_a_time)
index f435fde..3dc13c5 100644 (file)
@@ -574,6 +574,10 @@ java_init_options (unsigned int argc ATTRIBUTE_UNUSED,
   /* Java requires left-to-right evaluation of subexpressions.  */
   flag_evaluation_order = 1;
 
   /* 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;
   jcf_path_init ();
 
   return CL_Java;
index 1218e99..91a5fc2 100644 (file)
@@ -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;
 
 /* 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;
 
 /* 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_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)
        {
 
       if (!optimize_size)
        {
index 2c2340c..bfa9ccc 100644 (file)
@@ -63,6 +63,7 @@ struct cl_option_state {
 extern const struct cl_option cl_options[];
 extern const unsigned int cl_options_count;
 extern const char *const lang_names[];
 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.  */
 
 #define CL_DISABLED            (1 << 21) /* Disabled in this configuration.  */
 #define CL_TARGET              (1 << 22) /* Target-specific option.  */