From 69e4e6e99c68afdef6db27f9246be60ab560c67e Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Thu, 30 Oct 2003 23:50:53 +0000 Subject: function.c (purge_addressof_1): Add case for REG_RETVAL notes when modes are unequal. 2003-10-25 Eric Christopher * function.c (purge_addressof_1): Add case for REG_RETVAL notes when modes are unequal. From-SVN: r73107 --- gcc/function.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gcc/function.c') diff --git a/gcc/function.c b/gcc/function.c index 6531c02..c2f3202 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -3085,7 +3085,10 @@ purge_addressof_1 (rtx *loc, rtx insn, int force, int store, int may_postpone, subregs. */ || (GET_MODE_SIZE (GET_MODE (x)) > UNITS_PER_WORD && (GET_MODE_SIZE (GET_MODE (x)) - > GET_MODE_SIZE (GET_MODE (sub))))) + > GET_MODE_SIZE (GET_MODE (sub)))) + || (GET_MODE_SIZE (GET_MODE (x)) + < GET_MODE_SIZE (GET_MODE (sub)))) + { *loc = gen_rtx_SUBREG (GET_MODE (x), sub, 0); return true; -- cgit v1.1