]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR tree-optimization/86214 (Strongly increased stack usage)
authorJakub Jelinek <jakub@redhat.com>
Fri, 18 Jan 2019 10:07:27 +0000 (11:07 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 18 Jan 2019 10:07:27 +0000 (11:07 +0100)
commitd0bf921f6a0b8ffdad74fa5eb5ddf2e70a9acfd6
tree34400b335f0a502e54d5e3b06e3a7fe5a68a72e2
parent6616a31808d9f97b6dbca5f7cba4f61825e7289b
re PR tree-optimization/86214 (Strongly increased stack usage)

PR tree-optimization/86214
* tree-inline.h (struct copy_body_data): Add
add_clobbers_to_eh_landing_pads member.
* tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
(copy_edges_for_bb): Call it if EH edge destination is <
id->add_clobbers_to_eh_landing_pads.  Fix a comment typo.
(expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
if flag_stack_reuse != SR_NONE and clear it afterwards.

* g++.dg/opt/pr86214-1.C: New test.
* g++.dg/opt/pr86214-2.C: New test.

From-SVN: r268067
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr86214-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/opt/pr86214-2.C [new file with mode: 0644]
gcc/tree-inline.c
gcc/tree-inline.h