Commit b2469a9b by Jason Merrill Committed by Jason Merrill

re PR c++/42870 (__attribute__ ((dllexport)) produces broken linkage)

	PR c++/42870
	* config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
	i386_pe_maybe_record_exported_symbol.

From-SVN: r156529
parent bc235186
2010-02-03 Jason Merrill <jason@redhat.com>
PR c++/42870
* config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
i386_pe_maybe_record_exported_symbol.
2010-02-05 Steve Ellcey <sje@cup.hp.com> 2010-02-05 Steve Ellcey <sje@cup.hp.com>
PR target/42924 PR target/42924
......
...@@ -361,6 +361,7 @@ do { \ ...@@ -361,6 +361,7 @@ do { \
{ \ { \
const char *alias \ const char *alias \
= IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (DECL)); \ = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (DECL)); \
i386_pe_maybe_record_exported_symbol (DECL, alias, 0); \
if (TREE_CODE (DECL) == FUNCTION_DECL) \ if (TREE_CODE (DECL) == FUNCTION_DECL) \
i386_pe_declare_function_type (STREAM, alias, \ i386_pe_declare_function_type (STREAM, alias, \
TREE_PUBLIC (DECL)); \ TREE_PUBLIC (DECL)); \
......
2010-02-03 Jason Merrill <jason@redhat.com>
PR c++/42870
* g++.dg/ext/dllexport3.C: New.
2010-02-05 Ozkan Sezer <sezeroz@gmail.com> 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
* gcc.dg/format/ms-format3.c: New test for specific MS types. * gcc.dg/format/ms-format3.c: New test for specific MS types.
......
// PR c++/42870
// { dg-do compile { target i?86-*-cygwin *-*-mingw* } }
// { dg-final { scan-assembler "-export:_ZN2SaD1Ev" } }
#define ATTRIBUTE __attribute__ ((dllexport))
class ATTRIBUTE Sa {
public:
Sa()
{}
~Sa();
};
ATTRIBUTE Sa::~Sa()
{return;}
bool DllMain(void *a,void*b,int)
{
Sa s;
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