summaryrefslogtreecommitdiff
path: root/gcc/config/c4x
diff options
context:
space:
mode:
authorm.hayes <m.hayes@138bc75d-0d04-0410-961f-82ee72b054a4>1999-09-04 22:31:09 +0000
committerm.hayes <m.hayes@138bc75d-0d04-0410-961f-82ee72b054a4>1999-09-04 22:31:09 +0000
commit1dca94b4f7b58c18e24b3c720fabff8ba52f8db7 (patch)
treefd6fe258cd885a419ef954743057cfa302b83e9c /gcc/config/c4x
parentfa8477c933fad289de6d05db8be3c1e875ee9c94 (diff)
downloadgcc-1dca94b4f7b58c18e24b3c720fabff8ba52f8db7.tar.gz
* config/c4x/c4x.h (CALLER_SAVE_PROFITABLE): Disable.
This has been disabled since caller-save has marginal benefit on the c3x/c4x and it avoids a long standing caller-save bug. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29112 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/c4x')
-rw-r--r--gcc/config/c4x/c4x.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/config/c4x/c4x.h b/gcc/config/c4x/c4x.h
index 14b01338420..3f106f0270a 100644
--- a/gcc/config/c4x/c4x.h
+++ b/gcc/config/c4x/c4x.h
@@ -1086,11 +1086,11 @@ extern struct rtx_def *c4x_function_arg();
(c4x_function_arg(&CUM, MODE, TYPE, NAMED))
/* Define the profitability of saving registers around calls.
- NOTE: For now we turn this off because caller-save assumes
- that a register with a QFmode quantity can be saved/restored
- using QImode. */
+ We disable caller save to avoid a bug in flow.c (this also affects
+ other targets such as m68k). Since we must use stf/sti,
+ the profitability is marginal anyway. */
-/* #define CALLER_SAVE_PROFITABLE(REFS,CALLS) 0 */
+#define CALLER_SAVE_PROFITABLE(REFS,CALLS) 0
/* Never pass data by reference. */