re PR c++/82084 (ICE: constructing wstring with -O3)
authorRichard Biener <rguenther@suse.de>
Mon, 4 Sep 2017 14:10:11 +0000 (14:10 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 4 Sep 2017 14:10:11 +0000 (14:10 +0000)
commit11a82e2597c54016345beb99e5339e37851c7d59
tree80cc35078ff2a50b99bcac103fa940b55569c370
parentbc7fe95200214ce70419fde6f965dc88bbd645a6
re PR c++/82084 (ICE: constructing wstring with -O3)

2017-09-04  Richard Biener  <rguenther@suse.de>

PR tree-optimization/82084
* fold-const.h (can_native_encode_string_p): Declare.
* fold-const.c (can_native_encode_string_p): Factor out from ...
(native_encode_string): ... here.
* tree-vect-stmts.c (vectorizable_store): Call it to avoid
vectorizing stores from constants we later cannot handle.

* g++.dg/torture/pr82084.C: New testcase.

From-SVN: r251661
gcc/ChangeLog
gcc/fold-const.c
gcc/fold-const.h
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr82084.C [new file with mode: 0644]
gcc/tree-vect-stmts.c