[cfg-branch] web.c: copy REG_ATTRS

Josef Zlomek zlomj9am@artax.karlin.mff.cuni.cz
Fri Feb 15 03:06:00 GMT 2002


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



More information about the Gcc-patches mailing list