mirror of git://gcc.gnu.org/git/gcc.git
arm.c (arm_promote_prototypes): New function.
* config/arm/arm.c (arm_promote_prototypes): New function. (TARGET_PROMOTE_PROTOTYPES): Use it. From-SVN: r81223
This commit is contained in:
parent
632933d5d0
commit
70301b45ac
|
@ -1,3 +1,8 @@
|
||||||
|
2004-04-27 Paul Brook <paul@codesourcery.com>
|
||||||
|
|
||||||
|
* config/arm/arm.c (arm_promote_prototypes): New function.
|
||||||
|
(TARGET_PROMOTE_PROTOTYPES): Use it.
|
||||||
|
|
||||||
2004-04-27 Paul Brook <paul@codesourcery.com>
|
2004-04-27 Paul Brook <paul@codesourcery.com>
|
||||||
|
|
||||||
* config/arm/arm.c (arm_expand_epilogue): Count blocks of 4 regs.
|
* config/arm/arm.c (arm_expand_epilogue): Count blocks of 4 regs.
|
||||||
|
|
|
@ -158,6 +158,7 @@ static void aof_file_end (void);
|
||||||
static rtx arm_struct_value_rtx (tree, int);
|
static rtx arm_struct_value_rtx (tree, int);
|
||||||
static void arm_setup_incoming_varargs (CUMULATIVE_ARGS *, enum machine_mode,
|
static void arm_setup_incoming_varargs (CUMULATIVE_ARGS *, enum machine_mode,
|
||||||
tree, int *, int);
|
tree, int *, int);
|
||||||
|
static bool arm_promote_prototypes (tree);
|
||||||
|
|
||||||
|
|
||||||
/* Initialize the GCC target structure. */
|
/* Initialize the GCC target structure. */
|
||||||
|
@ -247,7 +248,7 @@ static void arm_setup_incoming_varargs (CUMULATIVE_ARGS *, enum machine_mode,
|
||||||
#undef TARGET_PROMOTE_FUNCTION_RETURN
|
#undef TARGET_PROMOTE_FUNCTION_RETURN
|
||||||
#define TARGET_PROMOTE_FUNCTION_RETURN hook_bool_tree_true
|
#define TARGET_PROMOTE_FUNCTION_RETURN hook_bool_tree_true
|
||||||
#undef TARGET_PROMOTE_PROTOTYPES
|
#undef TARGET_PROMOTE_PROTOTYPES
|
||||||
#define TARGET_PROMOTE_PROTOTYPES hook_bool_tree_false
|
#define TARGET_PROMOTE_PROTOTYPES arm_promote_prototypes
|
||||||
|
|
||||||
#undef TARGET_STRUCT_VALUE_RTX
|
#undef TARGET_STRUCT_VALUE_RTX
|
||||||
#define TARGET_STRUCT_VALUE_RTX arm_struct_value_rtx
|
#define TARGET_STRUCT_VALUE_RTX arm_struct_value_rtx
|
||||||
|
@ -14439,3 +14440,13 @@ arm_no_early_mul_dep (rtx producer, rtx consumer)
|
||||||
&& !reg_overlap_mentioned_p (value, XEXP (op, 0)));
|
&& !reg_overlap_mentioned_p (value, XEXP (op, 0)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* We can't rely on the caller doing the proper promotion when
|
||||||
|
using APCS or ATPCS. */
|
||||||
|
|
||||||
|
static bool
|
||||||
|
arm_promote_prototypes (tree t ATTRIBUTE_UNUSED)
|
||||||
|
{
|
||||||
|
return arm_abi == ARM_ABI_APCS || arm_abi == ARM_ABI_ATPCS;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue