[LTO][PATCH] Fix 32-bit bootstrap failure.

Doug Kwan (關振德) dougkwan@google.com
Wed Aug 20 23:07:00 GMT 2008


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;



More information about the Gcc-patches mailing list