Commit f4df3ce5 by Danny Smith Committed by Danny Smith

winnt-cxx.c (i386_pe_adjust_class_at_definition): Check that elements of…

winnt-cxx.c (i386_pe_adjust_class_at_definition): Check that elements of TYPE_METHODS are FUNCTION_DECLs.

	* config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
	Check that elements of TYPE_METHODS are FUNCTION_DECLs.

From-SVN: r105577
parent 6d2989e1
2005-10-18 Danny Smith <dannysmith@users.sourceforge.net>
* config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
Check that elements of TYPE_METHODS are FUNCTION_DECLs.
2005-10-17 Alexey Starovoytov <alexey.starovoytov@sun.com> 2005-10-17 Alexey Starovoytov <alexey.starovoytov@sun.com>
Ian Lance Taylor <ian@airs.com> Ian Lance Taylor <ian@airs.com>
......
...@@ -152,7 +152,8 @@ i386_pe_adjust_class_at_definition (tree t) ...@@ -152,7 +152,8 @@ i386_pe_adjust_class_at_definition (tree t)
/* Check FUNCTION_DECL's. */ /* Check FUNCTION_DECL's. */
for (member = TYPE_METHODS (t); member; member = TREE_CHAIN (member)) for (member = TYPE_METHODS (t); member; member = TREE_CHAIN (member))
maybe_add_dllimport (member); if (TREE_CODE (member) == FUNCTION_DECL)
maybe_add_dllimport (member);
/* Check vtables */ /* Check vtables */
for (member = CLASSTYPE_VTABLES (t); member; member = TREE_CHAIN (member)) for (member = CLASSTYPE_VTABLES (t); member; member = TREE_CHAIN (member))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment