c-common.c (c_common_nodes_and_builtins): Build all common tree nodes first.
authorRichard Guenther <rguenther@suse.de>
Tue, 5 Jul 2011 14:39:30 +0000 (14:39 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 5 Jul 2011 14:39:30 +0000 (14:39 +0000)
2011-07-05  Richard Guenther  <rguenther@suse.de>

c-family/
* c-common.c (c_common_nodes_and_builtins): Build all common
tree nodes first.

* c-decl.c (c_init_decl_processing): Defer building common
tree nodes to c_common_nodes_and_builtins.

cp/
* decl.c (cxx_init_decl_processing): Defer building common
tree nodes to c_common_nodes_and_builtins.

From-SVN: r175856

gcc/ChangeLog
gcc/c-decl.c
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/cp/ChangeLog
gcc/cp/decl.c

index 9a5141e93741d3be5503d0d3b9ac86cb6764100f..16d8d58ae8172a90a7a16c8d6efe47b68afb33ee 100644 (file)
@@ -1,3 +1,8 @@
+2011-07-05  Richard Guenther  <rguenther@suse.de>
+
+       * c-decl.c (c_init_decl_processing): Defer building common
+       tree nodes to c_common_nodes_and_builtins.
+
 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
 
        PR tree-optimization/49580
index 7198cb2d5d3bc7364eb052f33d90152cc9b9d036..357522b85fca10a86dc6a79f9274519441a0664b 100644 (file)
@@ -3478,8 +3478,6 @@ c_init_decl_processing (void)
      using preprocessed headers.  */
   input_location = BUILTINS_LOCATION;
 
-  build_common_tree_nodes (flag_signed_char);
-
   c_common_nodes_and_builtins ();
 
   /* In C, comparisons and TRUTH_* expressions have type int.  */
index 8cdeb3372b21b4ab7f79c44f848e8b1047597b9a..71beebc85e8da0b5da048797a9e10ec580883fb0 100644 (file)
@@ -1,3 +1,8 @@
+2011-07-05  Richard Guenther  <rguenther@suse.de>
+
+       * c-common.c (c_common_nodes_and_builtins): Build all common
+       tree nodes first.
+
 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
 
        * c-common.h (c_tree_chain_next): New static inline function.
index a50b405262a00d8b7d481341f67721b005405345..f4dba83841b9fe4d5af7083024c2c6c3c4cc808a 100644 (file)
@@ -4576,6 +4576,9 @@ c_common_nodes_and_builtins (void)
   tree va_list_ref_type_node;
   tree va_list_arg_type_node;
 
+  build_common_tree_nodes (flag_signed_char);
+  build_common_tree_nodes_2 (flag_short_double);
+
   /* Define `int' and `char' first so that dbx will output them first.  */
   record_builtin_type (RID_INT, NULL, integer_type_node);
   record_builtin_type (RID_CHAR, "char", char_type_node);
@@ -4675,8 +4678,6 @@ c_common_nodes_and_builtins (void)
   pid_type_node =
     TREE_TYPE (identifier_global_value (get_identifier (PID_TYPE)));
 
-  build_common_tree_nodes_2 (flag_short_double);
-
   record_builtin_type (RID_FLOAT, NULL, float_type_node);
   record_builtin_type (RID_DOUBLE, NULL, double_type_node);
   record_builtin_type (RID_MAX, "long double", long_double_type_node);
index 90a80ee2f1472024cfd168ce9131acb58280ad58..d3aa1a9dd844f241a6f742c5c9c47d21062bfcc9 100644 (file)
@@ -1,3 +1,8 @@
+2011-07-05  Richard Guenther  <rguenther@suse.de>
+
+       * decl.c (cxx_init_decl_processing): Defer building common
+       tree nodes to c_common_nodes_and_builtins.
+
 2011-07-04  Jason Merrill  <jason@redhat.com>
 
        DR 1207
index 94d686d3aefc1253c42fa63279d8e702bb076c7d..e36739b38d6fe7d0426785bbf8a0c43ded8a8a0f 100644 (file)
@@ -3518,8 +3518,6 @@ cxx_init_decl_processing (void)
   tree void_ftype;
   tree void_ftype_ptr;
 
-  build_common_tree_nodes (flag_signed_char);
-
   /* Create all the identifiers we need.  */
   initialize_predefined_identifiers ();
 
@@ -3536,8 +3534,6 @@ cxx_init_decl_processing (void)
   TREE_PUBLIC (global_namespace) = 1;
   begin_scope (sk_namespace, global_namespace);
 
-  current_lang_name = NULL_TREE;
-
   if (flag_visibility_ms_compat)
     default_visibility = VISIBILITY_HIDDEN;