* 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
+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>
PR middle-end/36244
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);
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);
#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;
#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)