This is the mail archive of the
mailing list for the GCC project.
Re: Declare function types correctly for cygwin32
- To: Ian Lance Taylor <ian at cygnus dot com>
- Subject: Re: Declare function types correctly for cygwin32
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 06 Jul 1998 23:58:23 -0600
- cc: egcs-patches at cygnus dot com, cygwin32-developers at cygnus dot com
- Reply-To: law at cygnus dot com
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.
> Thu Jul 2 18:47:12 1998 Ian Lance Taylor <firstname.lastname@example.org>
> * 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.