Commit fce5dddd by Richard Guenther Committed by Richard Biener

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
parent 12037899
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> 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
PR tree-optimization/49580 PR tree-optimization/49580
......
...@@ -3478,8 +3478,6 @@ c_init_decl_processing (void) ...@@ -3478,8 +3478,6 @@ c_init_decl_processing (void)
using preprocessed headers. */ using preprocessed headers. */
input_location = BUILTINS_LOCATION; input_location = BUILTINS_LOCATION;
build_common_tree_nodes (flag_signed_char);
c_common_nodes_and_builtins (); c_common_nodes_and_builtins ();
/* In C, comparisons and TRUTH_* expressions have type int. */ /* In C, comparisons and TRUTH_* expressions have type int. */
......
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> 2011-06-27 Jakub Jelinek <jakub@redhat.com>
* c-common.h (c_tree_chain_next): New static inline function. * c-common.h (c_tree_chain_next): New static inline function.
......
...@@ -4576,6 +4576,9 @@ c_common_nodes_and_builtins (void) ...@@ -4576,6 +4576,9 @@ c_common_nodes_and_builtins (void)
tree va_list_ref_type_node; tree va_list_ref_type_node;
tree va_list_arg_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. */ /* 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_INT, NULL, integer_type_node);
record_builtin_type (RID_CHAR, "char", char_type_node); record_builtin_type (RID_CHAR, "char", char_type_node);
...@@ -4675,8 +4678,6 @@ c_common_nodes_and_builtins (void) ...@@ -4675,8 +4678,6 @@ c_common_nodes_and_builtins (void)
pid_type_node = pid_type_node =
TREE_TYPE (identifier_global_value (get_identifier (PID_TYPE))); 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_FLOAT, NULL, float_type_node);
record_builtin_type (RID_DOUBLE, NULL, double_type_node); record_builtin_type (RID_DOUBLE, NULL, double_type_node);
record_builtin_type (RID_MAX, "long double", long_double_type_node); record_builtin_type (RID_MAX, "long double", long_double_type_node);
......
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> 2011-07-04 Jason Merrill <jason@redhat.com>
DR 1207 DR 1207
......
...@@ -3518,8 +3518,6 @@ cxx_init_decl_processing (void) ...@@ -3518,8 +3518,6 @@ cxx_init_decl_processing (void)
tree void_ftype; tree void_ftype;
tree void_ftype_ptr; tree void_ftype_ptr;
build_common_tree_nodes (flag_signed_char);
/* Create all the identifiers we need. */ /* Create all the identifiers we need. */
initialize_predefined_identifiers (); initialize_predefined_identifiers ();
...@@ -3536,8 +3534,6 @@ cxx_init_decl_processing (void) ...@@ -3536,8 +3534,6 @@ cxx_init_decl_processing (void)
TREE_PUBLIC (global_namespace) = 1; TREE_PUBLIC (global_namespace) = 1;
begin_scope (sk_namespace, global_namespace); begin_scope (sk_namespace, global_namespace);
current_lang_name = NULL_TREE;
if (flag_visibility_ms_compat) if (flag_visibility_ms_compat)
default_visibility = VISIBILITY_HIDDEN; default_visibility = VISIBILITY_HIDDEN;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment