* config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
the function receives nonlocal gotos.
From-SVN: r175477
+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
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;