summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1992-08-03 01:37:21 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1992-08-03 01:37:21 +0000
commit1ac1757b6cc2e4baf17462feea1b4e0a93a08114 (patch)
tree9b996279b731664a7690f0a4ac49c4f3e7778bc0 /gcc
parent918f31520a2a4a0c73feb24173adb5e109c087b4 (diff)
downloadgcc-1ac1757b6cc2e4baf17462feea1b4e0a93a08114.tar.gz
(find_use_as_address): Use HOST_WIDE_INT instead of int when comparing a
pointer to an integer constant; also when returning int. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1748 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/flow.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/flow.c b/gcc/flow.c
index 90e763d59b0..93b76f7bccc 100644
--- a/gcc/flow.c
+++ b/gcc/flow.c
@@ -2523,11 +2523,11 @@ find_use_as_address (x, reg, plusconst)
/* If REG occurs inside a MEM used in a bit-field reference,
that is unacceptable. */
if (find_use_as_address (XEXP (x, 0), reg, 0) != 0)
- return (rtx) 1;
+ return (rtx) (HOST_WIDE_INT) 1;
}
if (x == reg)
- return (rtx) 1;
+ return (rtx) (HOST_WIDE_INT) 1;
for (i = GET_RTX_LENGTH (code) - 1; i >= 0; i--)
{
@@ -2537,7 +2537,7 @@ find_use_as_address (x, reg, plusconst)
if (value == 0)
value = tem;
else if (tem != 0)
- return (rtx) 1;
+ return (rtx) (HOST_WIDE_INT) 1;
}
if (fmt[i] == 'E')
{
@@ -2548,7 +2548,7 @@ find_use_as_address (x, reg, plusconst)
if (value == 0)
value = tem;
else if (tem != 0)
- return (rtx) 1;
+ return (rtx) (HOST_WIDE_INT) 1;
}
}
}