summaryrefslogtreecommitdiff
path: root/gcc/regclass.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2000-01-04 18:26:39 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2000-01-04 18:26:39 +0000
commitadf6ebcacf605364c54e4bf2295c48894b101755 (patch)
tree339994eec3449de7beab85c4f0f356a75044cf01 /gcc/regclass.c
parentb310b60a66b772cc8a64697ef9426edd502c36d2 (diff)
downloadgcc-adf6ebcacf605364c54e4bf2295c48894b101755.tar.gz
* regclass.c (regclass): Do not obey REG_N_REFS in non-optimizing
compilation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31209 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/regclass.c')
-rw-r--r--gcc/regclass.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/regclass.c b/gcc/regclass.c
index 667250c7cc6..d1bcf30601c 100644
--- a/gcc/regclass.c
+++ b/gcc/regclass.c
@@ -1141,7 +1141,9 @@ regclass (f, nregs, dump)
register int class;
register struct costs *p = &costs[i];
- if (!REG_N_REFS (i))
+ /* In non-optimizing compilation REG_N_REFS is not initialized
+ yet. */
+ if (optimize && !REG_N_REFS (i))
continue;
for (class = (int) ALL_REGS - 1; class > 0; class--)