aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2003-12-16 00:11:48 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2003-12-16 00:11:48 +0000
commitc98e7fe852a0a47e1a88ac68528491af7889b706 (patch)
tree2b5556bfacb2c22de66a560c89b037ff53a18c3e /gcc
parent9d05bbceb29f58b912b95cee1e43b0bcd8994e56 (diff)
downloadgcc-c98e7fe852a0a47e1a88ac68528491af7889b706.zip
gcc-c98e7fe852a0a47e1a88ac68528491af7889b706.tar.gz
gcc-c98e7fe852a0a47e1a88ac68528491af7889b706.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/doc/tm.texi8
-rw-r--r--gcc/system.h2
-rw-r--r--gcc/toplev.c4
4 files changed, 7 insertions, 13 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 91088ab..cc3def4 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
index 1b028f9..4a71779 100644
--- a/gcc/doc/tm.texi
+++ b/gcc/doc/tm.texi
@@ -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
diff --git a/gcc/system.h b/gcc/system.h
index a72474b..ed0aaf9 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -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 \
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 47cdc73..f70946c 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -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.