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:
parent
a034d4bcdb
commit
157b930011
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue