This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: New and undocumented target hooks (cf. PR3386, a regression)
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: gcc at gcc dot gnu dot org,Steven Bosscher <stevenb at suse dot de>,rth at redhat dot com,<gcc-patches at gcc dot gnu dot org>
- Date: Sat, 4 Dec 2004 01:20:35 +0100
- Subject: Re: New and undocumented target hooks (cf. PR3386, a regression)
- References: <Pine.LNX.4.44.0412031547030.13445-100000@www.eyesopen.com>
> + @deftypefn {Target Hook} rtx TARGET_DELEGITIMIZE_ADDRESS (rtx @var{x})
> + This hook is used to undo the possibly obfuscating effects of the
> + @code{LEGITIMIZE_ADDRESS} and @code{LEGITIMIZE_RELOAD_ADDRESS} target
> + macros. Some backend implementations of these macros wrap symbol
> + references inside an @code{UNSPEC} rtx to represent PIC or similar
> + addressing modes. This target hook allows GCC's optimizers to understand
> + the semantics of these opaque @code{UNSPEC}s by converting them back
> + into their original form.
> + @end deftypefn
Let me say that I now understand why you weren't advertising it before. ;-)
--
Eric Botcazou