diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6114e53bc81..98f174d6313 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-01-07 Richard Henderson + + * alias.c (find_base_value): Only use new_reg_base_value shortcut + if the register is set once. + 2003-01-07 Sylvain Pion * config/i386/i386.c (ix86_init_mmx_sse_builtins): diff --git a/gcc/alias.c b/gcc/alias.c index fee64b1e50d..960475be0c5 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -1,5 +1,6 @@ /* Alias analysis for GNU C - Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003 + Free Software Foundation, Inc. Contributed by John Carr (jfc@mit.edu). This file is part of GCC. @@ -787,7 +788,8 @@ find_base_value (src) { /* If we're inside init_alias_analysis, use new_reg_base_value to reduce the number of relaxation iterations. */ - if (new_reg_base_value && new_reg_base_value[regno]) + if (new_reg_base_value && new_reg_base_value[regno] + && REG_N_SETS (regno) == 1) return new_reg_base_value[regno]; if (reg_base_value[regno])