[PR 80293] Dont totally-scalarize char arrays
authorMartin Jambor <mjambor@suse.cz>
Mon, 24 Apr 2017 15:13:39 +0000 (17:13 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Mon, 24 Apr 2017 15:13:39 +0000 (17:13 +0200)
commita753df11b8bc86cf0e991fe2843ebb30b7992a16
tree6d3ec20ad48bcca2e3018827c134c624e86f5c74
parent957221f5511cf97447f52ba274eb0e0be7eff151
[PR 80293] Dont totally-scalarize char arrays

2017-04-24  Martin Jambor  <mjambor@suse.cz>

PR tree-optimization/80293
* tree-sra.c (scalarizable_type_p): New parameter const_decl, make
char arrays not totally scalarizable if it is false.
(analyze_all_variable_accesses): Pass correct value in the new
parameter.  Add a statistics counter.

testsuite/
* g++.dg/tree-ssa/pr80293.C: New test.

From-SVN: r247104
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/tree-ssa/pr80293.C [new file with mode: 0644]
gcc/tree-sra.c