Commit ec6a6eb7 by Gabriel Dos Reis Committed by Gabriel Dos Reis

decl.c (record_builtin_java_type): Undo unintended change.

	* decl.c (record_builtin_java_type): Undo unintended change.
	(cxx_init_decl_processing): Likewise.

From-SVN: r152375
parent 2968d410
2009-10-01 Gabriel Dos Reis <gdr@cs.tamu.edu>
* decl.c (record_builtin_java_type): Undo unintended change.
(cxx_init_decl_processing): Likewise.
2009-10-01 Jason Merrill <jason@redhat.com> 2009-10-01 Jason Merrill <jason@redhat.com>
* pt.c (register_specialization): Push DECL_SOURCE_LOCATION to the * pt.c (register_specialization): Push DECL_SOURCE_LOCATION to the
...@@ -12,8 +17,6 @@ ...@@ -12,8 +17,6 @@
* decl.c (check_for_uninitialized_const_var): Check constexpr * decl.c (check_for_uninitialized_const_var): Check constexpr
variables too. variables too.
(build_ptrmemfunc_type): Make the result a literal type.
(build_ptrmem_type): Likewise.
(grokdeclarator): Handle `constexpr'. (grokdeclarator): Handle `constexpr'.
(check_tag_decl): Reject `constexpr'. (check_tag_decl): Reject `constexpr'.
(check_function_type): Check constexpr functions. (check_function_type): Check constexpr functions.
......
...@@ -3231,7 +3231,7 @@ record_builtin_java_type (const char* name, int size) ...@@ -3231,7 +3231,7 @@ record_builtin_java_type (const char* name, int size)
} }
else else
{ /* "__java_float" or ""__java_double". */ { /* "__java_float" or ""__java_double". */
type = cxx_make_type (REAL_TYPE); type = make_node (REAL_TYPE);
TYPE_PRECISION (type) = - size; TYPE_PRECISION (type) = - size;
layout_type (type); layout_type (type);
} }
...@@ -3397,7 +3397,7 @@ cxx_init_decl_processing (void) ...@@ -3397,7 +3397,7 @@ cxx_init_decl_processing (void)
/* C++ extensions */ /* C++ extensions */
unknown_type_node = cxx_make_type (UNKNOWN_TYPE); unknown_type_node = make_node (UNKNOWN_TYPE);
record_unknown_type (unknown_type_node, "unknown type"); record_unknown_type (unknown_type_node, "unknown type");
/* Indirecting an UNKNOWN_TYPE node yields an UNKNOWN_TYPE node. */ /* Indirecting an UNKNOWN_TYPE node yields an UNKNOWN_TYPE node. */
...@@ -3408,13 +3408,13 @@ cxx_init_decl_processing (void) ...@@ -3408,13 +3408,13 @@ cxx_init_decl_processing (void)
TYPE_POINTER_TO (unknown_type_node) = unknown_type_node; TYPE_POINTER_TO (unknown_type_node) = unknown_type_node;
TYPE_REFERENCE_TO (unknown_type_node) = unknown_type_node; TYPE_REFERENCE_TO (unknown_type_node) = unknown_type_node;
init_list_type_node = cxx_make_type (UNKNOWN_TYPE); init_list_type_node = make_node (UNKNOWN_TYPE);
record_unknown_type (init_list_type_node, "init list"); record_unknown_type (init_list_type_node, "init list");
{ {
/* Make sure we get a unique function type, so we can give /* Make sure we get a unique function type, so we can give
its pointer type a name. (This wins for gdb.) */ its pointer type a name. (This wins for gdb.) */
tree vfunc_type = cxx_make_type (FUNCTION_TYPE); tree vfunc_type = make_node (FUNCTION_TYPE);
TREE_TYPE (vfunc_type) = integer_type_node; TREE_TYPE (vfunc_type) = integer_type_node;
TYPE_ARG_TYPES (vfunc_type) = NULL_TREE; TYPE_ARG_TYPES (vfunc_type) = NULL_TREE;
layout_type (vfunc_type); layout_type (vfunc_type);
...@@ -3436,7 +3436,7 @@ cxx_init_decl_processing (void) ...@@ -3436,7 +3436,7 @@ cxx_init_decl_processing (void)
abi_node = current_namespace; abi_node = current_namespace;
pop_namespace (); pop_namespace ();
global_type_node = cxx_make_type (LANG_TYPE); global_type_node = make_node (LANG_TYPE);
record_unknown_type (global_type_node, "global type"); record_unknown_type (global_type_node, "global type");
/* Now, C++. */ /* Now, C++. */
......
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