From 0a619688e6c16b34df5557405b14e943b3a9e4fa Mon Sep 17 00:00:00 2001 From: bernds Date: Thu, 15 May 2008 12:56:18 +0000 Subject: [PATCH] * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here. * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare. * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool. (TARGET_RETURN_IN_MEMORY): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@135344 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 7 +++++++ gcc/config/bfin/bfin-protos.h | 1 - gcc/config/bfin/bfin.c | 5 ++++- gcc/config/bfin/bfin.h | 1 - 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d30ef0ffc44..c5cacb43e40 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2008-05-15 Bernd Schmidt + + * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here. + * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare. + * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool. + (TARGET_RETURN_IN_MEMORY): Define. + 2008-05-15 Richard Guenther PR middle-end/36244 diff --git a/gcc/config/bfin/bfin-protos.h b/gcc/config/bfin/bfin-protos.h index 1dc46f7657e..b1e11084d5b 100644 --- a/gcc/config/bfin/bfin-protos.h +++ b/gcc/config/bfin/bfin-protos.h @@ -120,7 +120,6 @@ extern void asm_conditional_branch (rtx, rtx *, int, int); extern rtx bfin_gen_compare (rtx, Mmode); extern int bfin_local_alignment (tree, int); -extern int bfin_return_in_memory (const_tree, const_tree); extern void initialize_trampoline (rtx, rtx, rtx); extern bool bfin_legitimate_address_p (Mmode, rtx, int); extern rtx bfin_va_arg (tree, tree); diff --git a/gcc/config/bfin/bfin.c b/gcc/config/bfin/bfin.c index e4c3f0c7832..f48ab0f264b 100644 --- a/gcc/config/bfin/bfin.c +++ b/gcc/config/bfin/bfin.c @@ -1842,7 +1842,7 @@ bfin_pass_by_reference (CUMULATIVE_ARGS *cum ATTRIBUTE_UNUSED, or in a register (false). This is called by the macro TARGET_RETURN_IN_MEMORY. */ -int +static bool bfin_return_in_memory (const_tree type, const_tree fntype ATTRIBUTE_UNUSED) { int size = int_size_in_bytes (type); @@ -5913,4 +5913,7 @@ bfin_expand_builtin (tree exp, rtx target ATTRIBUTE_UNUSED, #undef TARGET_CANNOT_FORCE_CONST_MEM #define TARGET_CANNOT_FORCE_CONST_MEM bfin_cannot_force_const_mem +#undef TARGET_RETURN_IN_MEMORY +#define TARGET_RETURN_IN_MEMORY bfin_return_in_memory + struct gcc_target targetm = TARGET_INITIALIZER; diff --git a/gcc/config/bfin/bfin.h b/gcc/config/bfin/bfin.h index 55a6b7d2de3..38f96cb360a 100644 --- a/gcc/config/bfin/bfin.h +++ b/gcc/config/bfin/bfin.h @@ -841,7 +841,6 @@ typedef struct { #define FUNCTION_VALUE_REGNO_P(N) ((N) == REG_R0) #define DEFAULT_PCC_STRUCT_RETURN 0 -#define TARGET_RETURN_IN_MEMORY bfin_return_in_memory /* Before the prologue, the return address is in the RETS register. */ #define INCOMING_RETURN_ADDR_RTX gen_rtx_REG (Pmode, REG_RETS) -- 2.11.4.GIT