OSDN Git Service

* system.h (DEFAULT_CALLER_SAVES): Poison.
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Dec 2003 00:11:48 +0000 (00:11 +0000)
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Dec 2003 00:11:48 +0000 (00:11 +0000)
* toplev.c (flag_caller_saves): Always initialize with 0.
* doc/tm.texi (DEFAULT_CALLER_SAVES): Remove.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74655 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/doc/tm.texi
gcc/system.h
gcc/toplev.c

index 91088ab..cc3def4 100644 (file)
@@ -1,5 +1,11 @@
 2003-12-15  Kazu Hirata  <kazu@cs.umass.edu>
 
+       * system.h (DEFAULT_CALLER_SAVES): Poison.
+       * toplev.c (flag_caller_saves): Always initialize with 0.
+       * doc/tm.texi (DEFAULT_CALLER_SAVES): Remove.
+
+2003-12-15  Kazu Hirata  <kazu@cs.umass.edu>
+
        * flow.c (EXIT_IGNORE_STACK): Move to ...
        * defaults.h (EXIT_IGNORE_STACK): ... here.
        * dojump.c (clear_pending_stack_adjust): Don't use #ifdef
index 1b028f9..4a71779 100644 (file)
@@ -4010,14 +4010,6 @@ If you enable it, GCC can save registers around function calls.  This
 makes it possible to use call-clobbered registers to hold variables that
 must live across calls.
 
-@defmac 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.  When defined, this macro enables @option{-fcaller-saves}
-by default for all optimization levels.  It has no effect for optimization
-levels 2 and higher, where @option{-fcaller-saves} is the default.
-@end defmac
-
 @defmac CALLER_SAVE_PROFITABLE (@var{refs}, @var{calls})
 A C expression to determine whether it is worthwhile to consider placing
 a pseudo-register in a call-clobbered hard register and saving and
index a72474b..ed0aaf9 100644 (file)
@@ -618,7 +618,7 @@ typedef char _Bool;
        DBX_WORKING_DIRECTORY INSN_CACHE_DEPTH INSN_CACHE_SIZE             \
        INSN_CACHE_LINE_WIDTH INIT_SECTION_PREAMBLE NEED_ATEXIT ON_EXIT    \
        EXIT_BODY OBJECT_FORMAT_ROSE MULTIBYTE_CHARS MAP_CHARACTER         \
-       LIBGCC_NEEDS_DOUBLE FINAL_PRESCAN_LABEL
+       LIBGCC_NEEDS_DOUBLE FINAL_PRESCAN_LABEL DEFAULT_CALLER_SAVES
 
 /* Hooks that are no longer used.  */
  #pragma GCC poison LANG_HOOKS_FUNCTION_MARK LANG_HOOKS_FUNCTION_FREE  \
index 47cdc73..f70946c 100644 (file)
@@ -471,11 +471,7 @@ int flag_short_enums;
    be saved across function calls, if that produces overall better code.
    Optional now, so people can test it.  */
 
-#ifdef DEFAULT_CALLER_SAVES
-int flag_caller_saves = 1;
-#else
 int flag_caller_saves = 0;
-#endif
 
 /* Nonzero if structures and unions should be returned in memory.