This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Register window support in DWARF-2
- From: Steven Bosscher <stevenb at suse dot de>
- To: Richard Henderson <rth at redhat dot com>, Eric Botcazou <ebotcazou at libertysurf dot fr>
- Cc: gcc at gcc dot gnu dot org, Jason Merrill <jason at redhat dot com>
- Date: Wed, 24 Nov 2004 01:53:07 +0100
- Subject: Re: Register window support in DWARF-2
- Organization: SUSE Labs
- References: <200411240022.55423.ebotcazou@libertysurf.fr> <20041124003752.GB6028@redhat.com>
On Wednesday 24 November 2004 01:37, Richard Henderson wrote:
> On Wed, Nov 24, 2004 at 12:26:11AM +0100, Eric Botcazou wrote:
> > What about adding a new rule to handle UNSPEC_VOLATILEs with the
> > help of a new target hook? Something like:
> >
> > Rule 15:
> > (set <reg> {unspec, unspec_volatile})
> > effects: target-dependent
>
> That, or a magic attribute, such that
>
> #ifdef HAVE_ATTR_window_save
> if (RTX_FRAME_RELATED_P (insn)
> && get_attr_window_save (insn))
> ...
> #endif
That doesn't fit in well with the idea of target-hookizing everything
and making the mythical swapable backend possible. So if that's still
a goal, then Eric's idea is probably better...
Gr.
Steven