aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/bfin
diff options
context:
space:
mode:
authorBernd Schmidt <bernd.schmidt@analog.com>2008-05-15 12:56:18 +0000
committerBernd Schmidt <bernds@gcc.gnu.org>2008-05-15 12:56:18 +0000
commit7ba20e60ebde65ad615ab4249cb251200791ec47 (patch)
tree9e3fc3a8033fe2bfd8c15581431e5618209c08a4 /gcc/config/bfin
parent8d3bc02b9a51157661dd081015d81537a425871c (diff)
downloadgcc-7ba20e60ebde65ad615ab4249cb251200791ec47.zip
gcc-7ba20e60ebde65ad615ab4249cb251200791ec47.tar.gz
gcc-7ba20e60ebde65ad615ab4249cb251200791ec47.tar.bz2
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
Diffstat (limited to 'gcc/config/bfin')
-rw-r--r--gcc/config/bfin/bfin-protos.h1
-rw-r--r--gcc/config/bfin/bfin.c5
-rw-r--r--gcc/config/bfin/bfin.h1
3 files changed, 4 insertions, 3 deletions
diff --git a/gcc/config/bfin/bfin-protos.h b/gcc/config/bfin/bfin-protos.h
index 1dc46f7..b1e1108 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 e4c3f0c..f48ab0f 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 55a6b7d..38f96cb 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)