This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: iq2000 trampolines


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]