diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-01-14 15:10:41 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-01-14 15:10:41 +0000 |
commit | f6a7e9eac86ab44baa6ceb4c467ae47a2a815eea (patch) | |
tree | e5b9d9876fb957027d6e8ec87808b576556c7808 | |
parent | d83d8bc26a0c4a10d77540e10b0e5c8519b2b0e3 (diff) | |
download | gcc-f6a7e9eac86ab44baa6ceb4c467ae47a2a815eea.tar.gz |
PR target/68269
* combine.c (expand_field_assignment): Punt if compute_mode is
unsupported scalar mode.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232366 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/combine.c | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4cf1e815ce4..fe9a60a0c77 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/combine.c b/gcc/combine.c index d088031b853..2f913dd8ea9 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. */ |