Commit 25fe40b0 by Richard Biener Committed by Richard Biener

re PR middle-end/60221 (gcc -fexceptions generates unnecessary cleanup code)

2014-02-20  Richard Biener  <rguenther@suse.de>

	PR middle-end/60221
	* tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
	regions at -O0.

From-SVN: r207937
parent 1f58214a
2014-02-20 Richard Biener <rguenther@suse.de>
PR middle-end/60221
* tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
regions at -O0.
2014-02-20 Jan Hubicka <hubicka@ucw.cz>
PR ipa/58555
......
......@@ -4557,11 +4557,12 @@ execute_cleanup_eh_1 (void)
remove_unreachable_handlers ();
/* Watch out for the region tree vanishing due to all unreachable. */
if (cfun->eh->region_tree && optimize)
if (cfun->eh->region_tree)
{
bool changed = false;
changed |= unsplit_all_eh ();
if (optimize)
changed |= unsplit_all_eh ();
changed |= cleanup_all_empty_eh ();
if (changed)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment