This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: iq2000 trampolines
- From: Ian Lance Taylor <iant at google dot com>
- To: DJ Delorie <dj at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 09 Jun 2006 17:04:46 -0700
- Subject: Re: iq2000 trampolines
- References: <200606092351.k59NpXJe005559@greed.delorie.com>
DJ Delorie <dj@redhat.com> writes:
> What's the preferred way of letting the user know this? Aside from
> the hack (below) which I'm using locally?
>
> Index: iq2000.h
> ===================================================================
> --- iq2000.h (revision 114529)
> +++ iq2000.h (working copy)
> @@ -518,6 +518,7 @@ typedef struct iq2000_args
>
> #define INITIALIZE_TRAMPOLINE(ADDR, FUNC, CHAIN) \
> { \
> rtx addr = ADDR; \
> + error ("trampolines are not supported on iq2000"); \
> emit_move_insn (gen_rtx_MEM (SImode, plus_constant (addr, 32)), FUNC); \
> emit_move_insn (gen_rtx_MEM (SImode, plus_constant (addr, 36)), CHAIN);\
I think the usual way is to just write
#define TRAMPOLINE_SIZE 0
#define INITIALIZE_TRAMPOLINE(ADDR, FUNC, CHAIN) sorry ("trampolines")
(which obviously has a similar effect to what you are doing).
Ian