[PATCH] Bugfix: Additional parameter for canonicalize comparison
Kaz Kojima
kkojima@rr.iij4u.or.jp
Mon Dec 10 23:13:00 GMT 2012
Andreas Krebbel <krebbel@linux.vnet.ibm.com> wrote:
> Index: gcc/config/sh/sh.c
> ===================================================================
> *** gcc/config/sh/sh.c.orig
> --- gcc/config/sh/sh.c
[snop]
> ! static void
> sh_canonicalize_comparison (enum rtx_code& cmp, rtx& op0, rtx& op1,
> ! enum machine_mode mode,
> ! bool op0_preserve_value ATTRIBUTE_UNUSED)
> {
> + HOST_WIDE_INT val;
> +
Please remove the last two lines which cause the warning:
gcc/config/sh/sh.c:1927:17: warning: unused variable 'val' [-Wunused-variable]
Regards,
kaz
More information about the Gcc-patches
mailing list