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: [PING] [PATCH,i386][4.3][RFC] PIC Generation on windows/cygwin


Here is the patch as an attached text file.

Thanks
Murali

===================================================================
2007-02-01  Murali Vemulapati  <murali.vemulapati@gmail.com>

      * config/i386/i386.h : define TARGET_CYGMING to 0.
      * config/i386/cygming.h : define TARGET_CYGMING to 1.
      Do not ignore -fpic.
      Declare i386_pe_generate_imported_symbol_ref().
      * config/i386/winnt.c : define function
      i386_pe_generate_imported_symbol_ref.
      * config/i386/i386.c : declare pic_base_label.
      (output_set_got): generate a base label and save it in pic_base_label.
      (legitimate_pic_address_disp_p) : UNSPEC_GOTOFF is generated for
      imported symbols too.
      (legitimize_pic_address) : generate UNSPEC_GOTOFF for dllimported
      and global symbols.
      (output_pic_addr_const) : On target cygming, interpret UNSPEC_GOTOFF
      as offset from base label.
      (imported_symbolic_operand): New function which returns true
      if operand is a symbol rtx and is dllimported.
      (ix86_output_addr_diff_elt) : output an element of address diff
      vector as a relative offset from base label.
      (ix86_expand_call) : On target cygming, convert the address of a
      non-static, direct function to a PIC reference by calling
      legitimize_pic_address.

===============================================================

On 2/8/07, Danny Smith <dannysmith@clear.net.nz> wrote:
> From Murali Vemulapati
> Sent: Friday, 9 February 2007 7:36 a.m.
> Can somebody please review and/or approve this patch for i386/cygwin?
>
> Thanks
> Murali
>
http://gcc.gnu.org/ml/gcc-patches/2007-02/msg00117.html


The patch does not apply cleanly. Most (all?) of the empty lines have been converted to two empty lines. Could you check that and perhaps resend as attachment rather than inline text.

Thanks
Danny


Attachment: gccpatch.txt
Description: Text document


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