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
This commit is contained in:
Jakub Jelinek 2016-01-14 16:10:41 +01:00 committed by Jakub Jelinek
parent 21f88b7a13
commit a2ae4661ab
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2016-01-14 Jakub Jelinek <jakub@redhat.com>
PR target/68269
* combine.c (expand_field_assignment): Punt if compute_mode is
unsupported scalar mode.
2016-01-14 Richard Biener <rguenther@suse.de>
PR tree-optimization/66856

View File

@ -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. */