aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2011-07-05 14:39:30 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2011-07-05 14:39:30 +0000
commitfce5dddd3da4c6b9818b60a358b1e4869f922114 (patch)
treef391ed6d53fb9f966d7fd03f3dfafdac098f4acd
parent12037899ea37255a21d90902bb00c1183fc17fb6 (diff)
downloadgcc-fce5dddd3da4c6b9818b60a358b1e4869f922114.zip
gcc-fce5dddd3da4c6b9818b60a358b1e4869f922114.tar.gz
gcc-fce5dddd3da4c6b9818b60a358b1e4869f922114.tar.bz2
c-common.c (c_common_nodes_and_builtins): Build all common tree nodes first.
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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/c-decl.c2
-rw-r--r--gcc/c-family/ChangeLog5
-rw-r--r--gcc/c-family/c-common.c5
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/decl.c4
6 files changed, 18 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9a5141e9..16d8d58 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 7198cb2..357522b 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -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. */
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index 8cdeb33..71beebc 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -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.
diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c
index a50b405..f4dba83 100644
--- a/gcc/c-family/c-common.c
+++ b/gcc/c-family/c-common.c
@@ -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);
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 90a80ee..d3aa1a9 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 94d686d..e36739b 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -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;