This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [2/2] Add VxWorks PIC support to i386
- From: Richard Henderson <rth at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org, richard at codesourcery dot com
- Date: Tue, 6 Mar 2007 15:12:00 -0800
- Subject: Re: [2/2] Add VxWorks PIC support to i386
- References: <874pp3looh.fsf@firetop.home> <20070302181304.GA25687@redhat.com> <87ejo28ce1.fsf_-_@firetop.home>
On Tue, Mar 06, 2007 at 06:17:42PM +0000, Richard Sandiford wrote:
> * config/i386/i386.c (output_set_got): Add a GOT initialization
> sequence for VxWorks PIC.
> (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
> around labels as well as symbols. Use gotoff_operand instead
> of local_symbolic_operand.
> (legitimize_pic_address): Use gotoff_operand instead of
> local_symbolic_operand. Use @GOT accesses for labels as
> well as symbols.
> (ix86_output_addr_diff_elt): Use PC-relative rather than
> GP-relative offsets for VxWorks PIC.
> (ix86_expand_move): Use legitimize_pic_address instead
> of legitimize_address. Use op0 as a temporary register if
> no_new_pseudos.
> * config/i386/i386.md (tablejump): Use PC-relative rather than
> GP-relative offsets for VxWorks PIC.
> * config/i386/predicates.md (gotoff_operand): New predicate.
Ok.
r~