summaryrefslogtreecommitdiff
path: root/gcc/config/pa
diff options
context:
space:
mode:
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2005-12-02 12:56:47 +0000
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2005-12-02 12:56:47 +0000
commitcca0fae1fd1287393b766628f070ba6fee7190ec (patch)
tree30f8612d25f2df1e56683c7d270744417f4f525b /gcc/config/pa
parentca9ef96ad99d648c4fd97cbb442ac0b48bedb4bc (diff)
downloadgcc-cca0fae1fd1287393b766628f070ba6fee7190ec.tar.gz
* pa.c (pa_secondary_reload): Revise initialization of variable regno.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107890 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/pa')
-rw-r--r--gcc/config/pa/pa.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c
index 595577d0cc0..381a820a885 100644
--- a/gcc/config/pa/pa.c
+++ b/gcc/config/pa/pa.c
@@ -5577,8 +5577,7 @@ static enum reg_class
pa_secondary_reload (bool in_p, rtx x, enum reg_class class,
enum machine_mode mode, secondary_reload_info *sri)
{
- int is_symbolic;
- int regno = -1;
+ int is_symbolic, regno;
/* Handle the easy stuff first. */
if (class == R1_REGS)
@@ -5590,6 +5589,8 @@ pa_secondary_reload (bool in_p, rtx x, enum reg_class class,
if (class == BASE_REG_CLASS && regno < FIRST_PSEUDO_REGISTER)
return NO_REGS;
}
+ else
+ regno = -1;
/* If we have something like (mem (mem (...)), we can safely assume the
inner MEM will end up in a general register after reloading, so there's