system.h (DEFAULT_CALLER_SAVES): Poison.

* system.h (DEFAULT_CALLER_SAVES): Poison.
	* toplev.c (flag_caller_saves): Always initialize with 0.
	* doc/tm.texi (DEFAULT_CALLER_SAVES): Remove.

From-SVN: r74655
This commit is contained in:
Kazu Hirata 2003-12-16 00:11:48 +00:00 committed by Kazu Hirata
parent 9d05bbceb2
commit c98e7fe852
4 changed files with 7 additions and 13 deletions

View file

@ -1,3 +1,9 @@
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> 2003-12-15 Kazu Hirata <kazu@cs.umass.edu>
* flow.c (EXIT_IGNORE_STACK): Move to ... * flow.c (EXIT_IGNORE_STACK): Move to ...

View 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 makes it possible to use call-clobbered registers to hold variables that
must live across calls. 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}) @defmac CALLER_SAVE_PROFITABLE (@var{refs}, @var{calls})
A C expression to determine whether it is worthwhile to consider placing A C expression to determine whether it is worthwhile to consider placing
a pseudo-register in a call-clobbered hard register and saving and a pseudo-register in a call-clobbered hard register and saving and

View file

@ -618,7 +618,7 @@ typedef char _Bool;
DBX_WORKING_DIRECTORY INSN_CACHE_DEPTH INSN_CACHE_SIZE \ DBX_WORKING_DIRECTORY INSN_CACHE_DEPTH INSN_CACHE_SIZE \
INSN_CACHE_LINE_WIDTH INIT_SECTION_PREAMBLE NEED_ATEXIT ON_EXIT \ INSN_CACHE_LINE_WIDTH INIT_SECTION_PREAMBLE NEED_ATEXIT ON_EXIT \
EXIT_BODY OBJECT_FORMAT_ROSE MULTIBYTE_CHARS MAP_CHARACTER \ 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. */ /* Hooks that are no longer used. */
#pragma GCC poison LANG_HOOKS_FUNCTION_MARK LANG_HOOKS_FUNCTION_FREE \ #pragma GCC poison LANG_HOOKS_FUNCTION_MARK LANG_HOOKS_FUNCTION_FREE \

View file

@ -471,11 +471,7 @@ int flag_short_enums;
be saved across function calls, if that produces overall better code. be saved across function calls, if that produces overall better code.
Optional now, so people can test it. */ Optional now, so people can test it. */
#ifdef DEFAULT_CALLER_SAVES
int flag_caller_saves = 1;
#else
int flag_caller_saves = 0; int flag_caller_saves = 0;
#endif
/* Nonzero if structures and unions should be returned in memory. /* Nonzero if structures and unions should be returned in memory.