* config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
* config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
* config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
(rx_mode_dependent_address_p): ...this. Make static. Change argument
type to const_rtx.
(TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
From-SVN: r170154
+2011-02-14 Anatoly Sokolov <aesok@post.ru>
+
+ * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
+ * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
+ * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
+ (rx_mode_dependent_address_p): ...this. Make static. Change argument
+ type to const_rtx.
+ (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
+
2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
* config/stormy16/constraints.md: New file.
/* Exported function prototypes from the Renesas RX backend.
- Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
Contributed by Red Hat.
This file is part of GCC.
extern void rx_expand_epilogue (bool);
extern char * rx_gen_move_template (rtx *, bool);
extern bool rx_is_legitimate_constant (rtx);
-extern bool rx_is_mode_dependent_addr (rtx);
extern bool rx_is_restricted_memory_address (rtx, Mmode);
extern void rx_notice_update_cc (rtx body, rtx insn);
extern void rx_split_cbranch (Mmode, Rcode, rtx, rtx, rtx);
}
}
-bool
-rx_is_mode_dependent_addr (rtx addr)
+/* Implement TARGET_MODE_DEPENDENT_ADDRESS_P. */
+
+static bool
+rx_mode_dependent_address_p (const_rtx addr)
{
if (GET_CODE (addr) == CONST)
addr = XEXP (addr, 0);
#undef TARGET_LEGITIMATE_ADDRESS_P
#define TARGET_LEGITIMATE_ADDRESS_P rx_is_legitimate_address
+#undef TARGET_MODE_DEPENDENT_ADDRESS_P
+#define TARGET_MODE_DEPENDENT_ADDRESS_P rx_mode_dependent_address_p
+
#undef TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS
#define TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS rx_allocate_stack_slots_for_args
/* GCC backend definitions for the Renesas RX processor.
- Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
Contributed by Red Hat.
This file is part of GCC.
( (REG_P (X) \
|| (GET_CODE (X) == SUBREG \
&& REG_P (SUBREG_REG (X))))))
-
-#define GO_IF_MODE_DEPENDENT_ADDRESS(ADDR, LABEL) \
- do \
- { \
- if (rx_is_mode_dependent_addr (ADDR)) \
- goto LABEL; \
- } \
- while (0)
\f
#define RETURN_ADDR_RTX(COUNT, FRAMEADDR) \