From: Michael Meissner Date: Thu, 10 Oct 1996 22:50:14 +0000 (+0000) Subject: Only create TOC save area if function makes calls. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=82280d5eeaaadd317ee8989c71c36760948a242d;p=gcc.git Only create TOC save area if function makes calls. From-SVN: r12948 --- 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;