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/80032] [6/7 Regression] C++ excessive stack usage (no stack reuse)


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

--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Tue Mar 21 11:43:45 2017
New Revision: 246314

URL: https://gcc.gnu.org/viewcvs?rev=246314&root=gcc&view=rev
Log:
2017-03-21  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/80032
        * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
        if set force the cleanup to happen unconditionally.
        (gimplify_target_expr): Push inserted clobbers with force_uncond
        to avoid them being removed by control-dependent DCE.

        * g++.dg/opt/pr80032.C: New testcase.

Added:
    trunk/gcc/testsuite/g++.dg/opt/pr80032.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimplify.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]