diff options
author | gingold | 2006-06-16 18:41:15 +0000 |
---|---|---|
committer | gingold | 2006-06-16 18:41:15 +0000 |
commit | a8db752954f060217f21417bd98077a215fab971 (patch) | |
tree | d1a786459661d992376bb583423f790bb1cf8f38 /ortho/gcc/ortho-lang.c | |
parent | 549cfe1c332be3633121dfd6d29b98afc24d2650 (diff) | |
download | ghdl-a8db752954f060217f21417bd98077a215fab971.tar.gz ghdl-a8db752954f060217f21417bd98077a215fab971.tar.bz2 ghdl-a8db752954f060217f21417bd98077a215fab971.zip |
bug fixes
Diffstat (limited to 'ortho/gcc/ortho-lang.c')
-rw-r--r-- | ortho/gcc/ortho-lang.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ortho/gcc/ortho-lang.c b/ortho/gcc/ortho-lang.c index b8cdfe6..5792f50 100644 --- a/ortho/gcc/ortho-lang.c +++ b/ortho/gcc/ortho-lang.c @@ -23,6 +23,8 @@ #include "tree-pass.h" #include "tree-dump.h" +static tree type_for_size (unsigned int precision, int unsignedp); + const int tree_identifier_size = sizeof (struct tree_identifier); struct binding_level GTY(()) @@ -250,13 +252,14 @@ ortho_init (void) push_binding (); build_common_tree_nodes (0, 0); + size_type_node = type_for_size (GET_MODE_BITSIZE (Pmode), 1); + set_sizetype (size_type_node); + build_common_tree_nodes_2 (0); + n = build_decl (TYPE_DECL, get_identifier ("int"), integer_type_node); push_decl (n); n = build_decl (TYPE_DECL, get_identifier ("char"), char_type_node); push_decl (n); - size_type_node = unsigned_type_node; - set_sizetype (unsigned_type_node); - build_common_tree_nodes_2 (0); /* Create alloca builtin. */ { |