diff options
author | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-29 21:29:01 +0000 |
---|---|---|
committer | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-29 21:29:01 +0000 |
commit | 8aa4048f2b1828bf3db1dabcd3c55413c45e2d7c (patch) | |
tree | 1d4f5ac2c876956bee30bebebc053365793bd2be | |
parent | 6ad9543413d6d3d47fc0a0f1cf5eee5c69394aa9 (diff) | |
download | ppe42-gcc-8aa4048f2b1828bf3db1dabcd3c55413c45e2d7c.tar.gz ppe42-gcc-8aa4048f2b1828bf3db1dabcd3c55413c45e2d7c.zip |
Change default for -msave-toc-indirect
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178260 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/config/rs6000/rs6000.opt | 4 | ||||
-rw-r--r-- | gcc/doc/invoke.texi | 12 |
2 files changed, 13 insertions, 3 deletions
diff --git a/gcc/config/rs6000/rs6000.opt b/gcc/config/rs6000/rs6000.opt index 292308f60d0..fba4f1bcf98 100644 --- a/gcc/config/rs6000/rs6000.opt +++ b/gcc/config/rs6000/rs6000.opt @@ -526,5 +526,5 @@ Target Report Var(TARGET_POINTERS_TO_NESTED_FUNCTIONS) Init(1) Save Use/do not use r11 to hold the static link in calls to functions via pointers. msave-toc-indirect -Target Undocumented Var(TARGET_SAVE_TOC_INDIRECT) Save Init(1) -; Control whether we save the TOC in the prologue for indirect calls or generate the save inline +Target Report Var(TARGET_SAVE_TOC_INDIRECT) Save +Control whether we save the TOC in the prologue for indirect calls or generate the save inline diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 62a841cca43..d5474fe5c3c 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -814,7 +814,8 @@ See RS/6000 and PowerPC Options. -mrecip -mrecip=@var{opt} -mno-recip -mrecip-precision @gol -mno-recip-precision @gol -mveclibabi=@var{type} -mfriz -mno-friz @gol --mpointers-to-nested-functions -mno-pointers-to-nested-functions} +-mpointers-to-nested-functions -mno-pointers-to-nested-functions @gol +-msave-toc-indirect -mno-save-toc-indirect} @emph{RX Options} @gccoptlist{-m64bit-doubles -m32bit-doubles -fpu -nofpu@gol @@ -16438,6 +16439,15 @@ static chain value to be loaded in register @var{r11}. The not be able to call through pointers to nested functions or pointers to functions compiled in other languages that use the static chain if you use the @option{-mno-pointers-to-nested-functions}. + +@item -msave-toc-indirect +@itemx -mno-save-toc-indirect +@opindex msave-toc-indirect +Generate (do not generate) code to save the TOC value in the reserved +stack location in the function prologue if the function calls through +a pointer on AIX and 64-bit Linux systems. If the TOC value is not +saved in the prologue, it is saved just before the call through the +pointer. The @option{-mno-save-toc-indirect} option is the default. @end table @node RX Options |