From: Danny Smith Date: Wed, 26 Nov 2003 22:15:07 +0000 (+0000) Subject: cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Declare function aliases as functions. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=034f23169e28ccf6d58dd77d669cccf8a3c91967;p=gcc.git cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Declare function aliases as functions. * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Declare function aliases as functions. Fix typo in 2003-10-24 entry. From-SVN: r73966 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0aa3e29ad04..7c9c3846746 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-11-26 Danny Smith + + * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Declare + function aliases as functions. + 2003-11-26 Nathanael Nerode * aclocal.m4 (gcc_AC_PROG_GNAT): Rewrite to account for removal @@ -2239,7 +2244,7 @@ 2003-10-24 Danny Smith - * config/i386/cygwin.asm. Add copyright notice. Add comment + * config/i386/cygwin.asm: Add copyright notice. Add comment on why this code is needed. 2003-10-23 Kazu Hirata diff --git a/gcc/config/i386/cygming.h b/gcc/config/i386/cygming.h index 8ed30443bc8..99b037233da 100644 --- a/gcc/config/i386/cygming.h +++ b/gcc/config/i386/cygming.h @@ -376,6 +376,9 @@ extern int i386_pe_dllimport_name_p (const char *); alias = XSTR (rtlname, 0); \ else \ abort (); \ + if (TREE_CODE (DECL) == FUNCTION_DECL) \ + i386_pe_declare_function_type (STREAM, alias, \ + TREE_PUBLIC (DECL)); \ ASM_OUTPUT_DEF (STREAM, alias, IDENTIFIER_POINTER (TARGET)); \ } while (0) @@ -384,4 +387,3 @@ extern int i386_pe_dllimport_name_p (const char *); #ifndef BUFSIZ # undef FILE #endif -