diff options
author | John David Anglin <dave.anglin@nrc-cnrc.gc.ca> | 2005-12-02 12:56:47 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2005-12-02 12:56:47 +0000 |
commit | 69f8a2d68a851452b56452d866e4d383a83da7bd (patch) | |
tree | 30f8612d25f2df1e56683c7d270744417f4f525b /gcc | |
parent | 631ba327ca4f5b4053b9cbeefbbf1ce0183606ae (diff) | |
download | gcc-69f8a2d68a851452b56452d866e4d383a83da7bd.zip gcc-69f8a2d68a851452b56452d866e4d383a83da7bd.tar.gz gcc-69f8a2d68a851452b56452d866e4d383a83da7bd.tar.bz2 |
pa.c (pa_secondary_reload): Revise initialization of variable regno.
* pa.c (pa_secondary_reload): Revise initialization of variable regno.
From-SVN: r107890
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/pa/pa.c | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 305d1ee..b0f57b0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2005-12-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> + + * pa.c (pa_secondary_reload): Revise initialization of variable regno. + 2005-12-02 Gabriel Dos Reis <gdr@integrable-solutions.net> * ggc.h (GGC_RESIZEVEC): New. diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index 595577d..381a820 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 |