[AArch64/AArch64-4.7] Fix warning - Unused variable in aarch64_float_const_representable.

Marcus Shawcroft marcus.shawcroft@gmail.com
Thu Feb 28 16:23:00 GMT 2013


OK

On 28 February 2013 09:38, James Greenhalgh <james.greenhalgh@arm.com> wrote:
>
> Hi,
>
> In aarch64_float_const_representable, `sign' is unused.
>
> This patch removes all references to it. The patch is equally
> applicable to trunk and aarch64-4.7-branch.
>
> This patch fixes the warning:
>
> config/aarch64/aarch64.c: In function ‘aarch64_float_const_representable_p’:
> config/aarch64/aarch64.c:7075:7: warning: variable ‘sign’ set but not used [-Wunused-but-set-variable]
>
> Regression tested on aarch64-none-elf with no regressions.
>
> OK for trunk and aarch64-4.7-branch?
>
> Thanks,
> James Greenhalgh
>
> ---
> gcc/
>
> 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
>
>         * config/aarch64/aarch64.c
>         (aarch64_float_const_representable): Remove unused variable.



More information about the Gcc-patches mailing list