Commit 157b9300 by Eric Botcazou Committed by Eric Botcazou

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
parent a034d4bc
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
......
......@@ -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;
......
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