This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-1.1 under cygwin, why save inline symbol names?
- To: khan at xraylith dot wisc dot edu
- Subject: Re: egcs-1.1 under cygwin, why save inline symbol names?
- From: Ian Lance Taylor <ian at cygnus dot com>
- Date: Fri, 9 Oct 1998 14:05:11 -0400
- CC: janr at molienergy dot bc dot ca, egcs at cygnus dot com
Date: Thu, 08 Oct 1998 11:43:57 -0500
From: Mumit Khan <khan@xraylith.wisc.edu>
Thanks for the clarification. I missed that earlier. The .def entries
were added to conform to MS specs (needed to support incremental linking I
believe), and looks like it's being emitted for "non externals" as well.
I'll look up the PE specs to see what it really says, and I'm sure Ian
Taylor, author of the patch, will be able to provide some answers to
our questions.
You need this patch, which is in the egcs main line but I guess is not
in the 1.1 release.
Ian
Thu Aug 13 12:53:13 1998 Jim Wilson <wilson@cygnus.com>
* i386/winnt.c (i386_pe_asm_file_end): Check TREE_SYMBOL_REFERENCED.
Index: winnt.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/config/i386/winnt.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- winnt.c 1998/07/28 22:30:29 1.6
+++ winnt.c 1998/08/13 13:09:40 1.7
@@ -561,7 +561,7 @@
decl = get_identifier (p->name);
/* Positively ensure only one declaration for any given symbol. */
- if (! TREE_ASM_WRITTEN (decl))
+ if (! TREE_ASM_WRITTEN (decl) && TREE_SYMBOL_REFERENCED (decl))
{
TREE_ASM_WRITTEN (decl) = 1;
i386_pe_declare_function_type (file, p->name, TREE_PUBLIC (decl));