aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-family
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 /gcc/c-family
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
Diffstat (limited to 'gcc/c-family')
-rw-r--r--gcc/c-family/ChangeLog5
-rw-r--r--gcc/c-family/c-common.c5
2 files changed, 8 insertions, 2 deletions
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);