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
This commit is contained in:
Richard Biener 2014-02-20 09:00:23 +00:00 committed by Richard Biener
parent 1f58214aa2
commit 25fe40b0f2
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -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)