[Bug rtl-optimization/45728] [4.4 Regression] ICE: in gen_lowpart_general, at rtlhooks.c:59 at -O1 when comparing union members

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Sep 23 07:41:00 GMT 2010



------- Comment #7 from jakub at gcc dot gnu dot org  2010-09-23 07:41 -------
Subject: Bug 45728

Author: jakub
Date: Thu Sep 23 07:41:30 2010
New Revision: 164549

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=164549
Log:
        PR rtl-optimization/45728
        * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
        gen_lowpart_common first and if that fails, force_reg first
        before calling gen_lowpart.

        * gcc.c-torture/compile/pr45728.c: New test.

Added:
    branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr45728.c
Modified:
    branches/gcc-4_4-branch/gcc/ChangeLog
    branches/gcc-4_4-branch/gcc/expr.c
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


-- 


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



More information about the Gcc-bugs mailing list