From: Jakub Jelinek Date: Thu, 14 Jan 2016 15:10:41 +0000 (+0100) Subject: re PR target/68269 (FAIL: gcc.dg/pr68129_1.c (internal compiler error)) X-Git-Tag: basepoints/gcc-7~1646 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2ae4661ab37d05dc2610fb8bc1a6a32b2928748;p=thirdparty%2Fgcc.git re PR target/68269 (FAIL: gcc.dg/pr68129_1.c (internal compiler error)) PR target/68269 * combine.c (expand_field_assignment): Punt if compute_mode is unsupported scalar mode. From-SVN: r232366 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4cf1e815ce4f..fe9a60a0c779 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2016-01-14 Jakub Jelinek + + PR target/68269 + * combine.c (expand_field_assignment): Punt if compute_mode is + unsupported scalar mode. + 2016-01-14 Richard Biener PR tree-optimization/66856 diff --git a/gcc/combine.c b/gcc/combine.c index d088031b853f..2f913dd8ea97 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -7247,6 +7247,10 @@ expand_field_assignment (const_rtx x) if (len >= HOST_BITS_PER_WIDE_INT) break; + /* Don't try to compute in too wide unsupported modes. */ + if (!targetm.scalar_mode_supported_p (compute_mode)) + break; + /* Now compute the equivalent expression. Make a copy of INNER for the SET_DEST in case it is a MEM into which we will substitute; we don't want shared RTL in that case. */