Commit 34f56efc by Kai Tietz

winnt-cxx.c (i386_pe_type_dllexport_p): Don't dll-export inline-functions.

2013-09-13  Kai Tietz  <ktietz@redhat.com>

	* config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
	dll-export inline-functions.
	* config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.

Additional fix ChangeLog-date of prior commit.

From-SVN: r202555
parent f0e40b0a
2013-09-10 Jeff Law <law@redhat.com>
2013-09-13 Kai Tietz <ktietz@redhat.com>
* config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
dll-export inline-functions.
* config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
2013-09-13 Jeff Law <law@redhat.com>
PR middle-end/58387
Revert:
......
......@@ -65,6 +65,13 @@ i386_pe_type_dllexport_p (tree decl)
if (TREE_CODE (TREE_TYPE (decl)) == METHOD_TYPE
&& DECL_ARTIFICIAL (decl) && !DECL_THUNK_P (decl))
return false;
if (TREE_CODE (decl) == FUNCTION_DECL
&& DECL_DECLARED_INLINE_P (decl))
{
if (DECL_REALLY_EXTERN (decl)
|| !flag_keep_inline_dllexport)
return false;
}
return true;
}
......
......@@ -110,6 +110,11 @@ i386_pe_determine_dllexport_p (tree decl)
if (!TREE_PUBLIC (decl))
return false;
if (TREE_CODE (decl) == FUNCTION_DECL
&& DECL_DECLARED_INLINE_P (decl)
&& !flag_keep_inline_dllexport)
return false;
if (lookup_attribute ("dllexport", DECL_ATTRIBUTES (decl)))
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