* i386/winnt.c (i386_pe_asm_file_end): Check
TREE_SYMBOL_REFERENCED.
From-SVN: r22735
+Fri Oct 2 01:33:30 1998 Jim Wilson <wilson@cygnus.com>
+
+ * i386/winnt.c (i386_pe_asm_file_end): Check
+ TREE_SYMBOL_REFERENCED.
+
Fri Oct 2 01:31:54 1998 Jeffrey A Law (law@cygnus.com)
* gcc.texi: Fix version # that somehow slipped through.
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));