This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: RFA add case to purge addressof
- From: Eric Christopher <echristo at redhat dot com>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 30 Oct 2003 15:38:12 -0800
- Subject: Re: PATCH: RFA add case to purge addressof
- References: <Pine.LNX.4.44.0310290646241.13238-100000@www.eyesopen.com>
> If you do another bootstrap and testsuite run, with these two changes,
> and then post the updated patch to gcc-patches, I'll approve it.
Done and done. Tested x86-linux, frv-elf, mipsisa64-elf.
OK?
-eric
--
Eric Christopher <echristo@redhat.com>
2003-10-25 Eric Christopher <echristo@redhat.com>
* function.c (purge_addressof_1): Add case for REG_RETVAL
notes when modes are unequal.
Index: function.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/function.c,v
retrieving revision 1.463
diff -u -p -w -r1.463 function.c
--- function.c 11 Oct 2003 20:56:20 -0000 1.463
+++ function.c 30 Oct 2003 23:36:34 -0000
@@ -3085,7 +3085,10 @@ purge_addressof_1 (rtx *loc, rtx insn, i
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;