re PR tree-optimization/80032 (C++ excessive stack usage (no stack reuse))
authorRichard Biener <rguenther@suse.de>
Tue, 21 Mar 2017 11:43:45 +0000 (11:43 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 21 Mar 2017 11:43:45 +0000 (11:43 +0000)
commite650ea2a5efcd806b5f1aafc2db980d083fbfd7c
treeb7ff424f8729b56a0c9c67b0f850a1672a1c2b49
parentda2ce5f993367610a67df1367665dda8a0abc354
re PR tree-optimization/80032 (C++ excessive stack usage (no stack reuse))

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.

From-SVN: r246314
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr80032.C [new file with mode: 0644]