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: Register window support in DWARF-2


On Thu, Nov 25, 2004 at 01:18:09PM +0100, Eric Botcazou wrote:
> +  /* This target hook allows the backend to emit frame-related insns that
> +     contain UNSPECs or UNSPEC_VOLATILEs.  The call frame debugging info
> +     engine will invoke it on insns of the form
> +       (set (reg) (unspec [...] UNSPEC_INDEX))
> +     and
> +       (set (reg) (unspec_volatile [...] UNSPECV_INDEX))
> +     to let the backend emit the call frame instructions.  */
> +  void (* dwarf_handle_frame_unspec) (const char *);

I think that you should pass the instruction pattern as well.  
Otherwise you can't distinguish which unspec.


r~


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