Commit 7ba20e60 by Bernd Schmidt Committed by Bernd Schmidt

bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.

	* 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.

From-SVN: r135344
parent 8d3bc02b
2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
* 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 <rguenther@suse.de> 2008-05-15 Richard Guenther <rguenther@suse.de>
PR middle-end/36244 PR middle-end/36244
......
...@@ -120,7 +120,6 @@ extern void asm_conditional_branch (rtx, rtx *, int, int); ...@@ -120,7 +120,6 @@ extern void asm_conditional_branch (rtx, rtx *, int, int);
extern rtx bfin_gen_compare (rtx, Mmode); extern rtx bfin_gen_compare (rtx, Mmode);
extern int bfin_local_alignment (tree, int); 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 void initialize_trampoline (rtx, rtx, rtx);
extern bool bfin_legitimate_address_p (Mmode, rtx, int); extern bool bfin_legitimate_address_p (Mmode, rtx, int);
extern rtx bfin_va_arg (tree, tree); extern rtx bfin_va_arg (tree, tree);
......
...@@ -1842,7 +1842,7 @@ bfin_pass_by_reference (CUMULATIVE_ARGS *cum ATTRIBUTE_UNUSED, ...@@ -1842,7 +1842,7 @@ bfin_pass_by_reference (CUMULATIVE_ARGS *cum ATTRIBUTE_UNUSED,
or in a register (false). This is called by the macro or in a register (false). This is called by the macro
TARGET_RETURN_IN_MEMORY. */ TARGET_RETURN_IN_MEMORY. */
int static bool
bfin_return_in_memory (const_tree type, const_tree fntype ATTRIBUTE_UNUSED) bfin_return_in_memory (const_tree type, const_tree fntype ATTRIBUTE_UNUSED)
{ {
int size = int_size_in_bytes (type); int size = int_size_in_bytes (type);
...@@ -5913,4 +5913,7 @@ bfin_expand_builtin (tree exp, rtx target ATTRIBUTE_UNUSED, ...@@ -5913,4 +5913,7 @@ bfin_expand_builtin (tree exp, rtx target ATTRIBUTE_UNUSED,
#undef TARGET_CANNOT_FORCE_CONST_MEM #undef TARGET_CANNOT_FORCE_CONST_MEM
#define TARGET_CANNOT_FORCE_CONST_MEM bfin_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; struct gcc_target targetm = TARGET_INITIALIZER;
...@@ -841,7 +841,6 @@ typedef struct { ...@@ -841,7 +841,6 @@ typedef struct {
#define FUNCTION_VALUE_REGNO_P(N) ((N) == REG_R0) #define FUNCTION_VALUE_REGNO_P(N) ((N) == REG_R0)
#define DEFAULT_PCC_STRUCT_RETURN 0 #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. */ /* Before the prologue, the return address is in the RETS register. */
#define INCOMING_RETURN_ADDR_RTX gen_rtx_REG (Pmode, REG_RETS) #define INCOMING_RETURN_ADDR_RTX gen_rtx_REG (Pmode, REG_RETS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment