diff options
Diffstat (limited to 'gcc')
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/regclass.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6d630d4..f186e3e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Tue Jan 4 19:22:39 MET 2000 Jan Hubicka <hubicka@freesoft.cz> + + * regclass.c (regclass): Do not obey REG_N_REFS in non-optimizing + compilation. + 2000-01-04 Stan Cox <scox@cygnus.com> * haifa-sched.c (build_control_flow): Change unreachable simple diff --git a/gcc/regclass.c b/gcc/regclass.c index 667250c..d1bcf30 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--) |
