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]: Fix build on 32bit host


Hi,

I am checking in this patch to fix build on 32bit hosts.


H.J.
---
Index: lto-function-out.c
===================================================================
--- lto-function-out.c	(revision 147908)
+++ lto-function-out.c	(working copy)
@@ -991,7 +991,7 @@ output_block_or_decl (struct output_bloc
 static void
 output_tree_block (struct output_block *ob, tree block)
 {
-  unsigned HOST_WIDE_INT block_flags;
+  unsigned HOST_WIDEST_INT block_flags;
   unsigned i;
   tree t;
   static struct function *last_cfun = NULL;
Index: lto-function-in.c
===================================================================
--- lto-function-in.c	(revision 147908)
+++ lto-function-in.c	(working copy)
@@ -3336,7 +3336,7 @@ input_block_or_decl (struct lto_input_bl
 static tree
 input_tree_block (struct lto_input_block *ib, struct data_in *data_in)
 {
-  unsigned HOST_WIDE_INT block_flags;
+  unsigned HOST_WIDEST_INT block_flags;
   tree block;
   unsigned i, vlen;
   enum LTO_tags tag;
Index: ChangeLog.lto
===================================================================
--- ChangeLog.lto	(revision 147908)
+++ ChangeLog.lto	(working copy)
@@ -1,3 +1,9 @@
+2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* lto-function-in.c (input_tree_block): Use HOST_WIDEST_INT
+	on block_flags.
+	* lto-function-out.c (output_tree_block): Likewise.
+
 2009-05-27  Diego Novillo  <dnovillo@google.com>
 
 	* lto-section-out.c (write_symbol_vec): Tidy test for


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