[Bug rtl-optimization/46804] [4.5 Regression] gfortran.dg/char_cshift_2.f90 FAILs with -fregmove

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Jan 16 20:20:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46804

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-01-16 20:16:34 UTC ---
Author: jakub
Date: Sun Jan 16 20:16:30 2011
New Revision: 168863

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168863
Log:
    Backport from mainline
    2010-12-10  Jakub Jelinek  <jakub@redhat.com>

    PR rtl-optimization/46804
    * regmove.c (optimize_reg_copy_3): Look for REG_EQUAL note
    on the setter of src_reg rather than on insn.  If it is
    equal to the setter's original SET_SRC, replace it with its
    zero or sign extension instead of dropping it.

    * gfortran.dg/pr46804.f90: New test.

Added:
    branches/gcc-4_5-branch/gcc/testsuite/gfortran.dg/pr46804.f90
Modified:
    branches/gcc-4_5-branch/gcc/ChangeLog
    branches/gcc-4_5-branch/gcc/regmove.c
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list