From 81610a0d48c63d7531a05db6b81725ca7728de72 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Wed, 19 Aug 1998 14:53:25 +0200 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/invoke.texi | 7 +++++-- gcc/tm.texi | 6 +++--- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ef587f68cdb..d4d70230117 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +Wed Aug 19 13:51:35 1998 Hans-Peter Nilsson + + * 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 * regclass.c: Changed register set documentation to be consistent diff --git a/gcc/invoke.texi b/gcc/invoke.texi index b2b68781d37..617875a7491 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 1c5d3b665a2..2d0aeaf86f4 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}) -- 2.30.2