diff options
author | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1996-10-10 22:50:14 +0000 |
---|---|---|
committer | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1996-10-10 22:50:14 +0000 |
commit | 74f16fb1f93f05d69bf095ba99309f7477c7ede5 (patch) | |
tree | f7990a2cc9d7f2d0b7083fcbe378cf89d324f749 /gcc/config/rs6000/rs6000.c | |
parent | f181b0dd0f12901a2d781abfaac1870981a2ef32 (diff) |
Only create TOC save area if function makes calls.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12948 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/rs6000/rs6000.c')
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index fafaba90f65..244dc2e54c9 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -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; |