From ad3781e1a9194a0c886ec250c4fedfe71ab329ff Mon Sep 17 00:00:00 2001 From: Michael Hayes Date: Sat, 4 Sep 1999 22:31:09 +0000 Subject: [PATCH] c4x.h (CALLER_SAVE_PROFITABLE): Disable. * 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. From-SVN: r29112 --- gcc/ChangeLog | 4 ++++ gcc/config/c4x/c4x.h | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 326147a..e765fac 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Sun Sep 5 10:13:19 1999 Michael Hayes + + * config/c4x/c4x.h (CALLER_SAVE_PROFITABLE): Disable. + Sat Sep 4 13:44:01 1999 Mark Mitchell * Makefile.in (C_AND_C_OBJS): Add gcc-callbacks.o. diff --git a/gcc/config/c4x/c4x.h b/gcc/config/c4x/c4x.h index 14b0133..3f106f0 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. */ -- 2.7.4