From cf87d551b09fe04a5878a6ea481114d039b93496 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Wed, 14 Aug 2002 00:49:08 +0000 Subject: [PATCH] reload1.c (reload_cse_simplify): Before checking REG_FUNCTION_VALUE_P, check REG_P. * reload1.c (reload_cse_simplify): Before checking REG_FUNCTION_VALUE_P, check REG_P. From-SVN: r56267 --- gcc/ChangeLog | 5 +++++ gcc/reload1.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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 + + * reload1.c (reload_cse_simplify): Before checking + REG_FUNCTION_VALUE_P, check REG_P. + 2002-08-13 Geoffrey Keating * 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;