This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]