sparc.c (sparc_frame_pointer_required): Return true if the function receives nonlocal gotos.

* config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
	the function receives nonlocal gotos.

From-SVN: r175477
This commit is contained in:
Eric Botcazou 2011-06-27 11:07:55 +00:00 committed by Eric Botcazou
parent a034d4bcdb
commit 157b930011
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
* config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
the function receives nonlocal gotos.
2011-06-27 Richard Guenther <rguenther@suse.de>
PR tree-optimization/49536

View File

@ -10153,6 +10153,11 @@ sparc_frame_pointer_required (void)
if (cfun->calls_alloca)
return true;
/* If the function receives nonlocal gotos, it needs to save the frame
pointer in the nonlocal_goto_save_area object. */
if (cfun->has_nonlocal_label)
return true;
/* In flat mode, that's it. */
if (TARGET_FLAT)
return false;