]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
winnt.c (i386_pe_asm_file_end): Check TREE_SYMBOL_REFERENCED.
authorJim Wilson <wilson@cygnus.com>
Fri, 2 Oct 1998 00:35:17 +0000 (00:35 +0000)
committerJeff Law <law@gcc.gnu.org>
Fri, 2 Oct 1998 00:35:17 +0000 (18:35 -0600)
        * i386/winnt.c (i386_pe_asm_file_end): Check
        TREE_SYMBOL_REFERENCED.

From-SVN: r22735

gcc/ChangeLog
gcc/config/i386/winnt.c

index f003b8d49b38cd059d6b58876344e2f060c2c4fa..e8a2ea22965f1384f365eb2b894508e2a83534ef 100644 (file)
@@ -1,3 +1,8 @@
+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.
index d6c2a79f2bc76b04a9a17976e2214db6654c6f32..0058eb76499b8f446d7519afb1b9e21d481f8d0a 100644 (file)
@@ -561,7 +561,7 @@ i386_pe_asm_file_end (file)
       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));