diff options
author | Hans-Peter Nilsson <hp@axis.se> | 1998-08-19 14:53:25 +0200 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-08-19 06:53:25 -0600 |
commit | 81610a0d48c63d7531a05db6b81725ca7728de72 (patch) | |
tree | 2bf37150cc7a0be44059f8bd46df9702dc2bf9e1 | |
parent | 252f342a37a49c09dc2c292e02f3c4697b76318c (diff) | |
download | gcc-81610a0d48c63d7531a05db6b81725ca7728de72.zip gcc-81610a0d48c63d7531a05db6b81725ca7728de72.tar.gz gcc-81610a0d48c63d7531a05db6b81725ca7728de72.tar.bz2 |
tm.texi (Caller Saves): Say that DEFAULT_CALLER_SAVES has no effect when -O2 and higher.
* tm.texi (Caller Saves): Say that DEFAULT_CALLER_SAVES has no
effect when -O2 and higher.
* invoke.texi (Optimize Options): Likewise for -fcaller-saves.
From-SVN: r21848
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/invoke.texi | 7 | ||||
-rw-r--r-- | gcc/tm.texi | 6 |
3 files changed, 14 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ef587f6..d4d7023 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +Wed Aug 19 13:51:35 1998 Hans-Peter Nilsson <hp@axis.se> + + * tm.texi (Caller Saves): Say that DEFAULT_CALLER_SAVES has no + effect when -O2 and higher. + * invoke.texi (Optimize Options): Likewise for -fcaller-saves. + 1998-08-19 Michael Hayes <michaelh@ongaonga.chch.cri.nz> * regclass.c: Changed register set documentation to be consistent diff --git a/gcc/invoke.texi b/gcc/invoke.texi index b2b6878..617875a 100644 --- a/gcc/invoke.texi +++ b/gcc/invoke.texi @@ -2397,8 +2397,11 @@ function calls, by emitting extra instructions to save and restore the registers around such calls. Such allocation is done only when it seems to result in better code than would otherwise be produced. -This option is enabled by default on certain machines, usually those -which have no call-preserved registers to use instead. +This option is always enabled by default on certain machines, usually +those which have no call-preserved registers to use instead. + +For all machines, optimization level 2 and higher enables this flag by +default. @item -funroll-loops Perform the optimization of loop unrolling. This is only done for loops diff --git a/gcc/tm.texi b/gcc/tm.texi index 1c5d3b6..2d0aeaf 100644 --- a/gcc/tm.texi +++ b/gcc/tm.texi @@ -3150,9 +3150,9 @@ must live across calls. @item DEFAULT_CALLER_SAVES Define this macro if function calls on the target machine do not preserve any registers; in other words, if @code{CALL_USED_REGISTERS} has 1 -for all registers. This macro enables @samp{-fcaller-saves} by default. -Eventually that option will be enabled by default on all machines and both -the option and this macro will be eliminated. +for all registers. When defined, this macro enables @samp{-fcaller-saves} +by default for all optimization levels. It has no effect for optimization +levels 2 and higher, where @samp{-fcaller-saves} is the default. @findex CALLER_SAVE_PROFITABLE @item CALLER_SAVE_PROFITABLE (@var{refs}, @var{calls}) |