cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Declare function aliases as functions.
authorDanny Smith <dannysmith@users.sourceforge.net>
Wed, 26 Nov 2003 22:15:07 +0000 (22:15 +0000)
committerDanny Smith <dannysmith@gcc.gnu.org>
Wed, 26 Nov 2003 22:15:07 +0000 (22:15 +0000)
* config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS):
Declare function aliases as functions.

Fix typo in 2003-10-24 entry.

From-SVN: r73966

gcc/ChangeLog
gcc/config/i386/cygming.h

index 0aa3e29ad0495ed879c5dae1f117013a7fe13c6c..7c9c3846746e2059b44f1138988c3b0354f29a5d 100644 (file)
@@ -1,3 +1,8 @@
+2003-11-26  Danny Smith  <dannysmith@users.sourceforge.net>
+
+       * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Declare
+       function aliases as functions.
+
 2003-11-26  Nathanael Nerode  <neroden@gcc.gnu.org>
 
        * aclocal.m4 (gcc_AC_PROG_GNAT): Rewrite to account for removal
 
 2003-10-24  Danny Smith  <dannysmith@users.sourceforge.net>
 
-       * 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  <kazu@cs.umass.edu>
index 8ed30443bc806f26bcc18b10ef251a5329494070..99b037233dae59fbb3aab2a82d477b5402687db8 100644 (file)
@@ -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
-