[PATCH][LTO] Commited patch to fix 32-bit bootstrapping

Doug Kwan (關振德) dougkwan@google.com
Mon Sep 8 18:18:00 GMT 2008


Hi,

   I just commited this trivial patch to fix a bootstrap failure on
i386 due to format warnings.

-Doug

2008-09-08  Doug Kwan  <dougkwan@google.com>

	* lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
	to 64-bit to fix a 32-bit bootstrap failure due to format warnings.

 2008-09-08  Rafael Avila de Espindola  <espindola@google.com>

 	* Makefile.am (ltosymtab_SOURCES): add common.c.
Index: lto-plugin/lto-plugin.c
===================================================================
--- lto-plugin/lto-plugin.c	(revision 140112)
+++ lto-plugin/lto-plugin.c	(working copy)
@@ -277,8 +277,8 @@
 	  uint32_t slot = symtab->slots[j];
 	  unsigned int resolution = syms[j].resolution;
 	  fprintf(f, "%s\n%" PRId64 " %" PRId64 " %d %s\n",
-		  file->name, file->offset, file->filesize, slot,
-		  lto_resolution_str[resolution]);
+		  file->name, (int64_t) file->offset, (int64_t) file->filesize,
+		  slot, lto_resolution_str[resolution]);
 	}
       free (syms);
     }



More information about the Gcc-patches mailing list