From: Martin Jambor Date: Mon, 24 Feb 2014 12:39:52 +0000 (+0100) Subject: re PR ipa/60266 (ICE: in ipa_get_parm_lattices, at ipa-cp.c:261 during LibreOffice... X-Git-Tag: releases/gcc-4.9.0~739 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3fec19fb8f6ae5c4b95acb6e2b1b76846a84c44;p=thirdparty%2Fgcc.git re PR ipa/60266 (ICE: in ipa_get_parm_lattices, at ipa-cp.c:261 during LibreOffice LTO build) 2014-02-24 Martin Jambor PR ipa/60266 * ipa-cp.c (propagate_constants_accross_call): Bail out early if there are no parameter descriptors. From-SVN: r208067 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dd9415b76c75..6ca0b176467f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-02-24 Martin Jambor + + PR ipa/60266 + * ipa-cp.c (propagate_constants_accross_call): Bail out early if + there are no parameter descriptors. + 2014-02-24 Andrey Belevantsev PR rtl-optimization/60268 diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c index 9bcd02c511f3..b71048acc71a 100644 --- a/gcc/ipa-cp.c +++ b/gcc/ipa-cp.c @@ -1430,6 +1430,8 @@ propagate_constants_accross_call (struct cgraph_edge *cs) args = IPA_EDGE_REF (cs); args_count = ipa_get_cs_argument_count (args); parms_count = ipa_get_param_count (callee_info); + if (parms_count == 0) + return false; /* If this call goes through a thunk we must not propagate to the first (0th) parameter. However, we might need to uncover a thunk from below a series