https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85681

--- Comment #2 from kargl at gcc dot gnu.org ---
(In reply to kargl from comment #0)
> ../../gcc/gcc/tree-ssa-loop-prefetch.c: In function 'bool
> should_issue_prefetch_p(mem_ref*)':
> ../../gcc/gcc/tree-ssa-loop-prefetch.c:1010:54: error: comparison of integer
> expressions of different signedness: 'long unsigned int' and 'int'
> [-Werror=sign-compare]
>        && absu_hwi (int_cst_value (ref->group->step)) <
> PREFETCH_MINIMUM_STRIDE)
> ../../gcc/gcc/tree-ssa-loop-prefetch.c:1014:4: error: format '%d' expects
> argument of type 'int', but argument 5 has type 'long int' [-Werror=format=]
>     "Step for reference %u:%u (%d) is less than the mininum "
>     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     "required stride of %d\n",
>     ~~~~~~~~~~~~~~~~~~~~~~~~~
>     ref->group->uid, ref->uid, int_cst_value (ref->group->step),
>                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> cc1plus: all warnings being treated as errors
> gmake[3]: *** [Makefile:1110: tree-ssa-loop-prefetch.o] Error 1
> gmake[3]: Leaving directory '/safe/sgk/gcc/obj/gcc'
> gmake[2]: *** [Makefile:4662: all-stage2-gcc] Error 2
> gmake[2]: Leaving directory '/safe/sgk/gcc/obj'

The obvious patch

Index: gcc/tree-ssa-loop-prefetch.c
===================================================================
--- gcc/tree-ssa-loop-prefetch.c        (revision 259999)
+++ gcc/tree-ssa-loop-prefetch.c        (working copy)
@@ -1011,7 +1011,7 @@ should_issue_prefetch_p (struct mem_ref *ref)
     {
       if (dump_file && (dump_flags & TDF_DETAILS))
        fprintf (dump_file,
-                "Step for reference %u:%u (%d) is less than the mininum "
+                "Step for reference %u:%u (%ld) is less than the mininum "
                 "required stride of %d\n",
                 ref->group->uid, ref->uid, int_cst_value (ref->group->step),
                 PREFETCH_MINIMUM_STRIDE);

allows bootstrap to get to

 -MMD -MP -MF ./.deps/tree-ssa-loop-prefetch.TPo
../../gcc/gcc/tree-ssa-loop-prefetch.c
../../gcc/gcc/tree-ssa-loop-prefetch.c: In function 'bool
should_issue_prefetch_p(mem_ref*)':
../../gcc/gcc/tree-ssa-loop-prefetch.c:1010:54: error: comparison of integer
expressions of different signedness: 'long unsigned int' and 'int'
[-Werror=sign-compare]
       && absu_hwi (int_cst_value (ref->group->step)) <
PREFETCH_MINIMUM_STRIDE)
cc1plus: all warnings being treated as errors
gmake[3]: *** [Makefile:1110: tree-ssa-loop-prefetch.o] Error 1
gmake[3]: Leaving directory '/safe/sgk/gcc/obj/gcc'
gmake[2]: *** [Makefile:4662: all-stage2-gcc] Error 2
gmake[2]: Leaving directory '/safe/sgk/gcc/obj'

Please backout your patch.

Reply via email to