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]

Re: Patch to improve PIC find_base_term


> Date: Mon, 21 Aug 2000 17:29:32 -0400 (EDT)
> From: John Wehle <john@feith.com>

> Something such as PIC_BASE_TERM is still necessary for alias analysis
> to understand PIC addresses which refer to static objects.  Actually,
> it would also be nice if alias analysis understood the GOT loads
> (so it knew about references to global objects when using PIC) ...
> perhaps a change to find_base_value?  I'll investigate further.

You could portably represent that in the RTL by adding a
REG_EQUAL/REG_EQUIV note:  (reg_equiv (symbol_ref "foo")).
Then propagate this with the alias-analysis code.

-- 
- Geoffrey Keating <geoffk@cygnus.com>

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