tm.texi (Caller Saves): Say that DEFAULT_CALLER_SAVES has no effect when -O2 and...
authorHans-Peter Nilsson <hp@axis.se>
Wed, 19 Aug 1998 12:53:25 +0000 (14:53 +0200)
committerJeff Law <law@gcc.gnu.org>
Wed, 19 Aug 1998 12:53:25 +0000 (06:53 -0600)
        * 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
gcc/invoke.texi
gcc/tm.texi

index ef587f68cdb6bf7ca1b9f4799c4020239c2c8d43..d4d702301171b437944cfed5dce9760e16ddbbac 100644 (file)
@@ -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
index b2b68781d37c78d84fabcca5bc1f909115827751..617875a7491aef20160af96a775079f00f1c194f 100644 (file)
@@ -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
index 1c5d3b665a2c7f0df8bb3d513e44552ac5537131..2d0aeaf86f4a6e1750e0fd2c9da11b3f191cb621 100644 (file)
@@ -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})