[Bug c++/82084] [5/6/7/8 Regression] ICE: constructing wstring with -O3
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Sep 4 14:10:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82084
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Mon Sep 4 14:10:11 2017
New Revision: 251661
URL: https://gcc.gnu.org/viewcvs?rev=251661&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/torture/pr82084.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/fold-const.h
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-vect-stmts.c
More information about the Gcc-bugs
mailing list