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: Declare function types correctly for cygwin32



  In message <199807022251.SAA27079@subrogation.cygnus.com>you write:
  > The Microsoft Windows linker requires that the n_type field of each
  > symbol which represents a function be set to indicate that the symbol
  > is a function.  This includes undefined symbols used for external
  > called functions.  The Microsoft documentation indicates that type is
  > used to support incremental linking.
  > 
  > The appended patch modifies the cygwin32 toolchain to emit this
  > information.  This changes gcc to emit .type directives as needed for
  > cygwin32.  This is based on similar patches to the Irix 5 port to
  > declare all external function symbols.
  > 
  > Ian
  > 
  > 
  > Thu Jul  2 18:47:12 1998  Ian Lance Taylor  <ian@cygnus.com>
  > 
  > 	* i386/cygwin32.h: Add some declaration of external functions.
  >  	(ASM_DECLARE_FUNCTION_NAME): Define.
  > 	(ASM_OUTPUT_EXTERNAL, ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
  > 	(ASM_FILE_END): Define.
  > 	* i386/winnt.c (i386_pe_declare_function_type): New function.
  > 	(struct extern_list, extern_head): Define.
  > 	(i386_pe_record_external_function): New function.
  > 	(i386_pe_asm_file_end): New function.
Thanks.  Installed.
jeff


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