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]

Re: [PATCH] Bugfix: Additional parameter for canonicalize comparison


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


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