Fix cygwin32 build problem with experimental version of winsup.

* i386/winnt.c (i386_pe_asm_file_end): Check TREE_SYMBOL_REFERENCED.

From-SVN: r21696
This commit is contained in:
Jim Wilson 1998-08-13 13:09:40 +00:00 committed by Jim Wilson
parent 1770091dfa
commit 6ece24871f
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Thu Aug 13 12:53:13 1998 Jim Wilson <wilson@cygnus.com>
* i386/winnt.c (i386_pe_asm_file_end): Check TREE_SYMBOL_REFERENCED.
Wed Aug 12 17:25:18 1998 Jeffrey A Law (law@cygnus.com)
* mn10300.c (REG_SAVE_BYTES): Only reserve space for registers

View 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));