+2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
+
+ * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
+ Delete.
+ * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
+ * config/rx/rx.c (rx_function_arg_size): Make static.
+ (rx_function_arg): Likewise.
+ (rx_function_arg_advance): New function.
+ (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
+
2010-08-31 John Tytgat <John.Tytgat@aaug.net>
* config/arm/arm.c (arm_override_options): Remove superfluous test.
extern void rx_notice_update_cc (rtx body, rtx insn);
#endif
-#ifdef TREE_CODE
-extern unsigned int rx_function_arg_size (Mmode, const_tree);
-extern struct rtx_def * rx_function_arg (Fargs *, Mmode, const_tree, bool);
-#endif
-
#endif /* GCC_RX_PROTOS_H */
/* Return the number of bytes in the argument registers
occupied by an argument of type TYPE and mode MODE. */
-unsigned int
+static unsigned int
rx_function_arg_size (Mmode mode, const_tree type)
{
unsigned int num_bytes;
parameter list, or the last named parameter before the start of a
variable parameter list. */
-rtx
+static rtx
rx_function_arg (Fargs * cum, Mmode mode, const_tree type, bool named)
{
unsigned int next_reg;
return gen_rtx_REG (mode, next_reg);
}
+static void
+rx_function_arg_advance (Fargs * cum, Mmode mode, const_tree type,
+ bool named ATTRIBUTE_UNUSED)
+{
+ *cum += rx_function_arg_size (mode, type);
+}
+
/* Return an RTL describing where a function return value of type RET_TYPE
is held. */
#undef TARGET_FUNCTION_OK_FOR_SIBCALL
#define TARGET_FUNCTION_OK_FOR_SIBCALL rx_function_ok_for_sibcall
+#undef TARGET_FUNCTION_ARG
+#define TARGET_FUNCTION_ARG rx_function_arg
+
+#undef TARGET_FUNCTION_ARG_ADVANCE
+#define TARGET_FUNCTION_ARG_ADVANCE rx_function_arg_advance
+
#undef TARGET_SET_CURRENT_FUNCTION
#define TARGET_SET_CURRENT_FUNCTION rx_set_current_function
#define INIT_CUMULATIVE_ARGS(CUM, FNTYPE, LIBNAME, INDIRECT, N_NAMED_ARGS) \
(CUM) = 0
-#define FUNCTION_ARG(CUM, MODE, TYPE, NAMED) \
- rx_function_arg (& CUM, MODE, TYPE, NAMED)
-
-#define FUNCTION_ARG_ADVANCE(CUM, MODE, TYPE, NAMED) \
- (CUM) += rx_function_arg_size (MODE, TYPE)
\f
#define TRAMPOLINE_SIZE (! TARGET_BIG_ENDIAN_DATA ? 14 : 20)
#define TRAMPOLINE_ALIGNMENT 32