Commit 2dfccd83 by Dave Korn Committed by Dave Korn

winnt.c (i386_pe_binds_local_p): Handle weak decls.

	* config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.

From-SVN: r158983
parent 63004b49
2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
* config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
2010-05-02 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
......
......@@ -321,6 +321,11 @@ i386_pe_binds_local_p (const_tree exp)
&& DECL_DLLIMPORT_P (exp))
return false;
/* Or a weak one, now that they are supported. */
if ((TREE_CODE (exp) == VAR_DECL || TREE_CODE (exp) == FUNCTION_DECL)
&& DECL_WEAK (exp))
return false;
return true;
}
......
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