This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[cfg-branch] web.c: copy REG_ATTRS
- From: Josef Zlomek <zlomj9am at artax dot karlin dot mff dot cuni dot cz>
- To: gcc-pdo at atrey dot karlin dot mff dot cuni dot cz, gcc-patches at gcc dot gnu dot org
- Date: Fri, 15 Feb 2002 11:16:32 +0100
- Subject: [cfg-branch] web.c: copy REG_ATTRS
Hi,
this patch copys REG_ATTRS instead of REGNO_DECL.
I'm not sure if it is necessary.
Joe
2002-02-15 Josef Zlomek <zlomek@matfyz.cz>
web.c (entry_register): Copy REG_ATTRS.
*** gcc-old/gcc/web.c Tue Nov 20 16:59:07 2001
--- gcc-new/gcc/web.c Fri Feb 15 11:11:40 2002
*************** entry_register (entry, ref, used, use_ad
*** 222,228 ****
REG_POINTER (newreg) = REG_POINTER (reg);
REG_LOOP_TEST_P (newreg) = REG_LOOP_TEST_P (reg);
RTX_UNCHANGING_P (newreg) = RTX_UNCHANGING_P (reg);
! REGNO_DECL (REGNO (newreg)) = REGNO_DECL (REGNO (reg));
if (rtl_dump_file)
fprintf (rtl_dump_file, "Web oldreg=%i newreg=%i\n", REGNO (reg),
REGNO (newreg));
--- 222,228 ----
REG_POINTER (newreg) = REG_POINTER (reg);
REG_LOOP_TEST_P (newreg) = REG_LOOP_TEST_P (reg);
RTX_UNCHANGING_P (newreg) = RTX_UNCHANGING_P (reg);
! REG_ATTRS (newreg) = REG_ATTRS (reg);
if (rtl_dump_file)
fprintf (rtl_dump_file, "Web oldreg=%i newreg=%i\n", REGNO (reg),
REGNO (newreg));