diff options
author | ktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-22 13:06:22 +0000 |
---|---|---|
committer | ktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-22 13:06:22 +0000 |
commit | e9b7f2f6c93c4970ed58fce767725afa1193ad13 (patch) | |
tree | dd8397ec4228376ea38e6b4d7a0e28cc91350161 /gcc/fortran/f95-lang.c | |
parent | 8b7e64ab5167c1ae04119a20d7db6008454fb1d4 (diff) | |
download | gcc-e9b7f2f6c93c4970ed58fce767725afa1193ad13.tar.gz |
[PATCH Fortran] bootstrap failure by wrong sizetype.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127704 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/f95-lang.c')
-rw-r--r-- | gcc/fortran/f95-lang.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/fortran/f95-lang.c b/gcc/fortran/f95-lang.c index cc660fb9e47..1e1b640537e 100644 --- a/gcc/fortran/f95-lang.c +++ b/gcc/fortran/f95-lang.c @@ -615,7 +615,15 @@ gfc_init_decl_processing (void) only use it for actual characters, not for INTEGER(1). Also, we want double_type_node to actually have double precision. */ build_common_tree_nodes (false, false); - set_sizetype (long_unsigned_type_node); + /* x86_64 minw32 has a sizetype of "unsigned long long", most other hosts + have a sizetype of "unsigned long". Therefore choose the correct size + in mostly target independent way. */ + if (TYPE_MODE (long_unsigned_type_node) == Pmode) + set_sizetype (long_unsigned_type_node); + else if (TYPE_MODE (long_long_unsigned_type_node) == Pmode) + set_sizetype (long_long_unsigned_type_node); + else + set_sizetype (long_unsigned_type_node); build_common_tree_nodes_2 (0); void_list_node = build_tree_list (NULL_TREE, void_type_node); |