From 516c23423ecba82c46ba633870014dac2db0dd91 Mon Sep 17 00:00:00 2001 From: Jeffrey A Law Date: Thu, 2 Apr 1998 23:18:27 +0000 Subject: [PATCH] pa.c (output_global_address): Initialize base. * pa.c (output_global_address): Initialize base. * pa.h (GO_IF_LEGITIMATE_ADDRESS): Initialize index. From-SVN: r18972 --- gcc/ChangeLog | 5 +++++ gcc/config/pa/pa.c | 2 +- gcc/config/pa/pa.h | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4df54dfafeba..3d74cff65746 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Fri Apr 3 00:17:01 1998 Jeffrey A Law (law@cygnus.com) + + * pa.c (output_global_address): Initialize base. + * pa.h (GO_IF_LEGITIMATE_ADDRESS): Initialize index. + 1998-04-03 Mike Stump * gthr.h: Support systems that don't have weak, but have threads. diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index a4d8e7c76339..068303ba4b8d 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -3907,7 +3907,7 @@ output_global_address (file, x, round_constant) { char *sep = ""; int offset = 0; /* assembler wants -$global$ at end */ - rtx base; + rtx base = NULL_RTX; if (GET_CODE (XEXP (XEXP (x, 0), 0)) == SYMBOL_REF) { diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h index 4fed5fe3ff87..db0f99e5f44c 100644 --- a/gcc/config/pa/pa.h +++ b/gcc/config/pa/pa.h @@ -1553,7 +1553,7 @@ extern struct rtx_def *hppa_builtin_saveregs (); goto ADDR; \ else if (GET_CODE (X) == PLUS) \ { \ - rtx base = 0, index; \ + rtx base = 0, index = 0; \ if (flag_pic && XEXP (X, 0) == pic_offset_table_rtx)\ { \ if (GET_CODE (XEXP (X, 1)) == REG \