aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorEric Christopher <echristo@gcc.gnu.org>2003-10-30 23:50:53 +0000
committerEric Christopher <echristo@gcc.gnu.org>2003-10-30 23:50:53 +0000
commit69e4e6e99c68afdef6db27f9246be60ab560c67e (patch)
treeface29257a5d20369e64e42ff522a23a4e89bbd1 /gcc/function.c
parentac3ef3f5060c4bb2c8bfc6290a46336b1248c2d5 (diff)
downloadgcc-69e4e6e99c68afdef6db27f9246be60ab560c67e.zip
gcc-69e4e6e99c68afdef6db27f9246be60ab560c67e.tar.gz
gcc-69e4e6e99c68afdef6db27f9246be60ab560c67e.tar.bz2
function.c (purge_addressof_1): Add case for REG_RETVAL notes when modes are unequal.
2003-10-25 Eric Christopher <echristo@redhat.com> * function.c (purge_addressof_1): Add case for REG_RETVAL notes when modes are unequal. From-SVN: r73107
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c5
1 files changed, 4 insertions, 1 deletions
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;