[Bug rtl-optimization/45728] 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
Mon Sep 20 22:39:00 GMT 2010



------- Comment #5 from jakub at gcc dot gnu dot org  2010-09-20 22:38 -------
Subject: Bug 45728

Author: jakub
Date: Mon Sep 20 22:38:42 2010
New Revision: 164468

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=164468
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_5-branch/gcc/testsuite/gcc.c-torture/compile/pr45728.c
Modified:
    branches/gcc-4_5-branch/gcc/ChangeLog
    branches/gcc-4_5-branch/gcc/expr.c
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog


-- 


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



More information about the Gcc-bugs mailing list