summaryrefslogtreecommitdiff
path: root/gcc/halfpic.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/halfpic.c')
-rw-r--r--gcc/halfpic.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/halfpic.c b/gcc/halfpic.c
index 9b75ebb9dfc..d78d1b028e8 100644
--- a/gcc/halfpic.c
+++ b/gcc/halfpic.c
@@ -68,13 +68,12 @@ int
half_pic_address_p (addr)
rtx addr;
{
- int offset;
char *name;
switch (GET_CODE (addr))
{
case CONST:
- offset = 0;
+ rtx offset = const0_rtx;
addr = eliminate_constant_term (addr, &offset);
if (GET_CODE (addr) != SYMBOL_REF)
return FALSE;