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

--- Comment #16 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Fri Oct 12 13:44:35 2018
New Revision: 265101

URL: https://gcc.gnu.org/viewcvs?rev=265101&root=gcc&view=rev
Log:
2018-10-12  Richard Biener  <rguent...@suse.de>

        PR c++/54278
        Backport from mainline
        2017-03-23  Richard Biener  <rguent...@suse.de>

        PR tree-optimization/80032
        * gimplify.c (gimple_push_cleanup): Forced unconditional
        cleanups still have to go to the conditional_cleanups
        sequence.

        2017-03-21  Richard Biener  <rguent...@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:
    branches/gcc-6-branch/gcc/testsuite/g++.dg/opt/pr80032.C
Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/gimplify.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog

Reply via email to