public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* PATCH: Fix bootstrap on 32bit host
@ 2009-09-03 13:17 H.J. Lu
  0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2009-09-03 13:17 UTC (permalink / raw)
  To: gcc-patches

Hi,

On Linux/ia32, I got

cc1: warnings being treated as errors
../../src-trunk/gcc/tree-parloops.c: In function 'parallelize_loops':
../../src-trunk/gcc/tree-parloops.c:1911:51: error: comparison between
signed and unsigned integer expressions
make[6]: *** [tree-parloops.o] Error 1

I am checking this patch as an obvious fix.

H.J.
---
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 151376)
+++ ChangeLog	(working copy)
@@ -1,3 +1,8 @@
+2009-09-03  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
+	when comparing aginst estimated_loop_iterations_int return.
+
 2009-09-03  Richard Guenther  <rguenther@suse.de>
 
 	* dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
Index: tree-parloops.c
===================================================================
--- tree-parloops.c	(revision 151376)
+++ tree-parloops.c	(working copy)
@@ -1908,7 +1908,8 @@ parallelize_loops (void)
       /* FIXME: Bypass this check as graphite doesn't update the
       count and frequency correctly now.  */
       if (!flag_loop_parallelize_all
-	  && (estimated_loop_iterations_int (loop, false)<= n_threads * MIN_PER_THREAD
+	  && ((estimated_loop_iterations_int (loop, false)
+	       <= (HOST_WIDE_INT) n_threads * MIN_PER_THREAD)
 	      /* Do not bother with loops in cold areas.  */
 	      || optimize_loop_nest_for_size_p (loop)))
 	continue;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-09-03 13:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-03 13:17 PATCH: Fix bootstrap on 32bit host H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).