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

James Greenhalgh james.greenhalgh@arm.com
Thu Feb 28 09:38:00 GMT 2013


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-AArch64-AArch64-4.7-Fix-warning-Unused-variable-in-a.patch
Type: text/x-patch
Size: 800 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130228/481775fc/attachment.bin>


More information about the Gcc-patches mailing list