This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix reload ICE with define-split
Roman Zippel wrote:
Hi,
On Mon, 26 Feb 2007, Nathan Sidwell wrote:
+static int
+add_auto_inc_notes (rtx *xp, void *data)
+{
+ rtx x = *xp;
+ rtx *notep = data;
+
+ if (GET_RTX_CLASS (GET_CODE (x)) == RTX_AUTOINC)
+ {
+ rtx reg = XEXP (x, 0);
+
+ *notep = alloc_EXPR_LIST (REG_INC, reg, *notep);
+ }
+
+ return 0;
+}
This would add notes for all autoinc expressions (even for newly created
by the split) and repeat it for every REG_INC note, but only if there was
one already before.
correct.
I can't tell if you're objecting or not.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk