From 1af0124d4d6507b50437fb30c19b9d4aab6f3779 Mon Sep 17 00:00:00 2001 From: rguenth Date: Tue, 7 Jun 2011 13:01:27 +0000 Subject: 2011-06-07 Richard Guenther * tree.c (build_common_tree_nodes): Also initialize size_type_node. Call set_sizetype from here. c-family/ * c-common.c (c_common_nodes_and_builtins): Do not set size_type_node or call set_sizetype. go/ * go-lang.c (go_langhook_init): Do not set size_type_node or call set_sizetype. fortran/ * f95-lang.c (gfc_init_decl_processing): Do not set size_type_node or call set_sizetype. java/ * decl.c (java_init_decl_processing): Properly initialize size_type_node. lto/ * lto-lang.c (lto_init): Do not set size_type_node or call set_sizetype. ada/ * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call set_sizetype. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174743 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/go/go-lang.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'gcc/go/go-lang.c') diff --git a/gcc/go/go-lang.c b/gcc/go/go-lang.c index 84c7f8d1591..4687c6e19ba 100644 --- a/gcc/go/go-lang.c +++ b/gcc/go/go-lang.c @@ -87,15 +87,6 @@ go_langhook_init (void) { build_common_tree_nodes (false); - /* The sizetype may be "unsigned long" or "unsigned long long". */ - if (TYPE_MODE (long_unsigned_type_node) == ptr_mode) - size_type_node = long_unsigned_type_node; - else if (TYPE_MODE (long_long_unsigned_type_node) == ptr_mode) - size_type_node = long_long_unsigned_type_node; - else - size_type_node = long_unsigned_type_node; - set_sizetype (size_type_node); - build_common_tree_nodes_2 (0); /* We must create the gogo IR after calling build_common_tree_nodes -- cgit v1.2.1