From 009db074870ccdf44bafc9d3f604246ddb80974b Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Tue, 7 Jun 2011 13:01:27 +0000 Subject: tree.c (build_common_tree_nodes): Also initialize size_type_node. 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. From-SVN: r174743 --- gcc/go/ChangeLog | 5 +++++ gcc/go/go-lang.c | 9 --------- 2 files changed, 5 insertions(+), 9 deletions(-) (limited to 'gcc/go') diff --git a/gcc/go/ChangeLog b/gcc/go/ChangeLog index 5df1e05..edaadec 100644 --- a/gcc/go/ChangeLog +++ b/gcc/go/ChangeLog @@ -1,3 +1,8 @@ +2011-06-07 Richard Guenther + + * go-lang.c (go_langhook_init): Do not set + size_type_node or call set_sizetype. + 2011-05-27 Ian Lance Taylor * go-backend.c: Include "output.h". diff --git a/gcc/go/go-lang.c b/gcc/go/go-lang.c index 84c7f8d..4687c6e 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.1