This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/78847] pointer arithmetic from c++ ranged-based for loop not optimized


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78847

--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Fri Apr 21 12:09:20 2017
New Revision: 247061

URL: https://gcc.gnu.org/viewcvs?rev=247061&root=gcc&view=rev
Log:
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.

Added:
    trunk/gcc/testsuite/g++.dg/tree-ssa/pr78847.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]