re PR tree-optimization/78847 (pointer arithmetic from c++ ranged-based for loop...
authorRichard Biener <rguenther@suse.de>
Fri, 21 Apr 2017 12:09:20 +0000 (12:09 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 21 Apr 2017 12:09:20 +0000 (12:09 +0000)
commitbb1bc604a852c38afd0df9d2f6a66a0e1a80db34
treeefe1044f9d6c29374fada2b86514b9f58dab0c3b
parente1478a0ee96f0273a36384cecb1376597fd4218f
re PR tree-optimization/78847 (pointer arithmetic from c++ ranged-based for loop not optimized)

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

PR tree-optimization/78847
* fold-const.c (split_tree): Handle POINTER_PLUS_EXPR.

* g++.dg/tree-ssa/pr78847.C: New testcase.

From-SVN: r247061
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/tree-ssa/pr78847.C [new file with mode: 0644]