diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2010-05-27 08:13:58 +0000 |
---|---|---|
committer | Kai Tietz <ktietz@gcc.gnu.org> | 2010-05-27 10:13:58 +0200 |
commit | 64c31785445fdd307b4d918747825405def267d1 (patch) | |
tree | 04b352125b3c30f7b7e9831b54f686d56cfba379 /gcc/c-lex.c | |
parent | df72d556a5c8cf32bf2157396e9d261c0e58bee7 (diff) | |
download | gcc-64c31785445fdd307b4d918747825405def267d1.zip gcc-64c31785445fdd307b4d918747825405def267d1.tar.gz gcc-64c31785445fdd307b4d918747825405def267d1.tar.bz2 |
re PR bootstrap/44287 (Failed to bootstrap)
gcc/cp/
2010-05-27 Kai Tietz <kai.tietz@onevision.com>
PR bootstrap/44287
* rtti.c (emit_support_tinfos): Check for NULL_TREE.
* class.c (layout_class_type): Likewise.
* decl.c (finish_enum): Likewise.
* mangle.c (write_builitin_type): Likewise.
gcc/
2010-05-27 Kai Tietz <kai.tietz@onevision.com>
PR bootstrp/44287
* c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
(narrow_signed_type): Likewise.
From-SVN: r159912
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r-- | gcc/c-lex.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c index 22a0068..6deec26 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -480,7 +480,11 @@ narrowest_unsigned_type (unsigned HOST_WIDE_INT low, for (; itk < itk_none; itk += 2 /* skip unsigned types */) { - tree upper = TYPE_MAX_VALUE (integer_types[itk]); + tree upper; + + if (integer_types[itk] == NULL_TREE) + continue; + upper = TYPE_MAX_VALUE (integer_types[itk]); if ((unsigned HOST_WIDE_INT) TREE_INT_CST_HIGH (upper) > high || ((unsigned HOST_WIDE_INT) TREE_INT_CST_HIGH (upper) == high @@ -508,7 +512,11 @@ narrowest_signed_type (unsigned HOST_WIDE_INT low, for (; itk < itk_none; itk += 2 /* skip signed types */) { - tree upper = TYPE_MAX_VALUE (integer_types[itk]); + tree upper; + + if (integer_types[itk] == NULL_TREE) + continue; + upper = TYPE_MAX_VALUE (integer_types[itk]); if ((unsigned HOST_WIDE_INT) TREE_INT_CST_HIGH (upper) > high || ((unsigned HOST_WIDE_INT) TREE_INT_CST_HIGH (upper) == high |