diff mbox

[ARM] Fix signed-unsigned comparison warning

Message ID 01b601ce320d$ab10ed60$0132c820$@tkachov@arm.com
State New
Headers show

Commit Message

Kyrylo Tkachov April 5, 2013, 2:55 p.m. UTC
Hi all

This patch fixes a warning in arm.c about a comparison between signed and
unsigned integers.
This is usually harmless, but during bootstrap we compile with -Werror and
this turns
into an error. The fix is a one-liner.

Tested to make sure warning goes away and did a regtest run for
arm-none-eabi.

Ok for trunk?

Thanks,
Kyrill

2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

	* config/arm/arm.c (arm_expand_builtin): Change fcode
	type to unsigned int.
diff mbox

Patch

diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index 231a27f..1558fb0 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -21489,7 +21489,7 @@  arm_expand_builtin (tree exp,
   rtx               op1;
   rtx               op2;
   rtx               pat;
-  int               fcode = DECL_FUNCTION_CODE (fndecl);
+  unsigned int      fcode = DECL_FUNCTION_CODE (fndecl);
   size_t            i;
   enum machine_mode tmode;
   enum machine_mode mode0;