From: law AT cygnus DOT com (Jeffrey A Law) Subject: Re: Declare function types correctly for cygwin32 6 Jul 1998 23:22:54 -0700 Message-ID: <6368.899791103.cygnus.cygwin32.developers@hurl.cygnus.com> References: <199807022251 DOT SAA27079 AT subrogation DOT cygnus DOT com> Reply-To: law AT cygnus DOT com To: Ian Lance Taylor Cc: egcs-patches AT cygnus DOT com, cygwin32-developers AT cygnus DOT com In message <199807022251 DOT SAA27079 AT subrogation DOT cygnus DOT 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 > > * 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