From: Richard Guenther Date: Fri, 30 Jul 2010 11:01:22 +0000 (+0000) Subject: re PR lto/45141 (lto1 ICEs when linking cns_solve again) X-Git-Tag: releases/gcc-4.6.0~5320 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f60f74e3fb70b2e46935120ba577d19b2fee7e7;p=thirdparty%2Fgcc.git re PR lto/45141 (lto1 ICEs when linking cns_solve again) 2010-07-30 Richard Guenther PR middle-end/45141 * expr.c (expand_expr_real_1): Check for not handled base address. From-SVN: r162709 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 07da5fda978a..416d049d4e7a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-07-30 Richard Guenther + + PR middle-end/45141 + * expr.c (expand_expr_real_1): Check for not handled base address. + 2010-07-30 Richard Guenther * ipa-prop.c (ipa_modify_formal_parameters): Use diff --git a/gcc/expr.c b/gcc/expr.c index a27dfd8e4ab7..f0a3b9caa40f 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -8664,7 +8664,8 @@ expand_expr_real_1 (tree exp, rtx target, enum machine_mode tmode, set_mem_attributes (temp, TMR_ORIGINAL (exp), 0); set_mem_addr_space (temp, as); base = get_base_address (TMR_ORIGINAL (exp)); - if (INDIRECT_REF_P (base) + if (base + && INDIRECT_REF_P (base) && TMR_BASE (exp) && TREE_CODE (TMR_BASE (exp)) == SSA_NAME && POINTER_TYPE_P (TREE_TYPE (TMR_BASE (exp))))