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


On 11/12/12 00:12, Kaz Kojima wrote:
> 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]

urgs - I'll fix this. Is the patch ok with that change for sh?

-Andreas-


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