mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-04 19:11:19 +08:00
Only create TOC save area if function makes calls.
From-SVN: r12948
This commit is contained in:
parent
1df01bdf69
commit
82280d5eea
@ -3018,7 +3018,7 @@ rs6000_stack_info ()
|
||||
info_ptr->calls_p = rs6000_makes_calls ();
|
||||
|
||||
/* Allocate space to save the toc. */
|
||||
if (abi == ABI_NT)
|
||||
if (abi == ABI_NT && info_ptr->calls_p)
|
||||
{
|
||||
info_ptr->toc_save_p = 1;
|
||||
info_ptr->toc_size = reg_size;
|
||||
|
Loading…
x
Reference in New Issue
Block a user