This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: RFA add case to purge addressof

> 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.



Eric Christopher <>

2003-10-25  Eric Christopher  <>

        * 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))
-			      > 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;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]