From fce5dddd3da4c6b9818b60a358b1e4869f922114 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Tue, 5 Jul 2011 14:39:30 +0000 Subject: [PATCH] c-common.c (c_common_nodes_and_builtins): Build all common tree nodes first. 2011-07-05 Richard Guenther 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 | 5 +++++ gcc/c-decl.c | 2 -- gcc/c-family/ChangeLog | 5 +++++ gcc/c-family/c-common.c | 5 +++-- gcc/cp/ChangeLog | 5 +++++ gcc/cp/decl.c | 4 ---- 6 files changed, 18 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9a5141e9374..16d8d58ae81 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-07-05 Richard Guenther + + * c-decl.c (c_init_decl_processing): Defer building common + tree nodes to c_common_nodes_and_builtins. + 2011-07-05 Razya Ladelsky PR tree-optimization/49580 diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 7198cb2d5d3..357522b85fc 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 8cdeb3372b2..71beebc85e8 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,8 @@ +2011-07-05 Richard Guenther + + * c-common.c (c_common_nodes_and_builtins): Build all common + tree nodes first. + 2011-06-27 Jakub Jelinek * 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 a50b405262a..f4dba83841b 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 90a80ee2f14..d3aa1a9dd84 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2011-07-05 Richard Guenther + + * decl.c (cxx_init_decl_processing): Defer building common + tree nodes to c_common_nodes_and_builtins. + 2011-07-04 Jason Merrill DR 1207 diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 94d686d3aef..e36739b38d6 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; -- 2.30.2