From 6bcdd1cd1e9836e32d2e4e5469920366b431b7dd Mon Sep 17 00:00:00 2001 From: matt Date: Thu, 16 Oct 2003 22:02:25 +0000 Subject: Cast using HOST_WIDE_INT, not unsigned. --- gnu/dist/gcc/gcc/config/m68k/m68k.c | 2 +- gnu/dist/toolchain/gcc/config/m68k/m68k.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu') diff --git a/gnu/dist/gcc/gcc/config/m68k/m68k.c b/gnu/dist/gcc/gcc/config/m68k/m68k.c index 694162dd3d6..592a772660d 100644 --- a/gnu/dist/gcc/gcc/config/m68k/m68k.c +++ b/gnu/dist/gcc/gcc/config/m68k/m68k.c @@ -2406,7 +2406,7 @@ output_addsi3 (operands) /* These insns can result from reloads to access stack slots over 64k from the frame pointer. */ if (GET_CODE (operands[2]) == CONST_INT - && INTVAL (operands[2]) + 0x8000 >= (unsigned) 0x10000) + && INTVAL (operands[2]) + 0x8000 >= (HOST_WIDE_INT) 0x10000) return "move%.l %2,%0\n\tadd%.l %1,%0"; #ifdef SGS if (GET_CODE (operands[2]) == REG) diff --git a/gnu/dist/toolchain/gcc/config/m68k/m68k.c b/gnu/dist/toolchain/gcc/config/m68k/m68k.c index 12fd36c8c57..3789b7d8c63 100644 --- a/gnu/dist/toolchain/gcc/config/m68k/m68k.c +++ b/gnu/dist/toolchain/gcc/config/m68k/m68k.c @@ -2119,7 +2119,7 @@ output_addsi3 (operands) /* These insns can result from reloads to access stack slots over 64k from the frame pointer. */ if (GET_CODE (operands[2]) == CONST_INT - && INTVAL (operands[2]) + 0x8000 >= (unsigned) 0x10000) + && INTVAL (operands[2]) + 0x8000 >= (HOST_WIDE_INT) 0x10000) return "move%.l %2,%0\n\tadd%.l %1,%0"; #ifdef SGS if (GET_CODE (operands[2]) == REG) -- cgit