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: New and undocumented target hooks (cf. PR3386, a regression)


> + @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


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