PATCH: RFA add case to purge addressof
Eric Christopher
echristo@redhat.com
Thu Oct 30 23:45:00 GMT 2003
> 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;
More information about the Gcc-patches
mailing list