This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[LTO][PATCH] Fix 32-bit bootstrap failure.
- From: "=?big5?b?RG91ZyBLd2FuICjD9q62vHcp?=" <dougkwan at google dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>, "Rafael Espindola" <espindola at google dot com>
- Date: Wed, 20 Aug 2008 15:13:43 -0700
- Subject: [LTO][PATCH] Fix 32-bit bootstrap failure.
Hi,
I have just commited this one-line fix for a bootstrap failure on
i686-unknown-linux-gnu.
-Doug
2008-08-20 Doug Kwan <dougkwan@google.com>
* lto-section-out.c (produce_symtab_1): Fix a 32-bit bootstrap
failure due to a missing cast.
===================================================================
--- gcc/gcc/lto-section-out.c (revision 139344)
+++ gcc/gcc/lto-section-out.c (working copy)
@@ -987,7 +987,7 @@ produce_symtab_1 (htab_t hash, struct lt
}
if (kind == LDPK_COMMON)
- size = TREE_INT_CST_HIGH (DECL_SIZE (t)) << 32
+ size = ((uint64_t) TREE_INT_CST_HIGH (DECL_SIZE (t))) << 32
| TREE_INT_CST_LOW (DECL_SIZE (t));
else
size = 0;