]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR tree-optimization/50682 (ICE: SIGSEGV in main_block_label with -O2 -fnon-call...
authorJakub Jelinek <jakub@redhat.com>
Mon, 28 Nov 2011 21:02:27 +0000 (22:02 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 28 Nov 2011 21:02:27 +0000 (22:02 +0100)
commit99d8763e19ee7949d3afee72f07612ebb3bf37f8
treebb8a862dbfe8dc6771f668944332fe22797539f2
parent62bad7cd053b0f139bb46ae54976ed97d6dc0811
re PR tree-optimization/50682 (ICE: SIGSEGV in main_block_label with -O2 -fnon-call-exceptions -ftracer)

PR tree-optimization/50682
* tree-eh.c (maybe_remove_unreachable_handlers): New function.
* tree-flow.h (maybe_remove_unreachable_handlers): New prototype.
* tree-optimize.c (execute_cleanup_cfg_post_optimizing): Call it.

* g++.dg/opt/pr50682.C: New test.

From-SVN: r181785
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr50682.C [new file with mode: 0644]
gcc/tree-eh.c
gcc/tree-flow.h
gcc/tree-optimize.c