diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/reload1.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9e56da5d5ec..93d3b9a300d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-08-14 Hans-Peter Nilsson <hp@bitrange.com> + + * reload1.c (reload_cse_simplify): Before checking + REG_FUNCTION_VALUE_P, check REG_P. + 2002-08-13 Geoffrey Keating <geoffk@redhat.com> * Makefile.in (attribs.o): Remove $(OBSTACK_H) dependency. diff --git a/gcc/reload1.c b/gcc/reload1.c index 894df877046..23ab50f1570 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -8044,7 +8044,8 @@ reload_cse_simplify (insn, testreg) { if (! reload_cse_noop_set_p (part)) break; - if (REG_FUNCTION_VALUE_P (SET_DEST (part))) + if (REG_P (SET_DEST (part)) + && REG_FUNCTION_VALUE_P (SET_DEST (part))) { if (value) break; |