diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2010-10-10 21:25:09 +0200 |
---|---|---|
committer | Kai Tietz <ktietz@gcc.gnu.org> | 2010-10-10 21:25:09 +0200 |
commit | 6ea7f14af8bb3c974c544c6c905a087452b79470 (patch) | |
tree | bff49aba5cc8f66a494d0f7dab4a6679c5541b85 /gcc | |
parent | e14d28a7a56bd43f9f8bc4e3b35d6674ea2418ff (diff) | |
download | gcc-6ea7f14af8bb3c974c544c6c905a087452b79470.zip gcc-6ea7f14af8bb3c974c544c6c905a087452b79470.tar.gz gcc-6ea7f14af8bb3c974c544c6c905a087452b79470.tar.bz2 |
2010-10.10 Kai Tietz <kai.tietz@onevision.com>
* g++.dg/ext/dllexport-MI1.C: Enable for x86_64 mingw
and adjust -export symbol scanning.
* g++.dg/ext/dllexport1.C: Likewise.
* g++.dg/ext/dllexport3.C: Likewise.
* gcc.dg/dll-3.c: Likewise.
* gcc.dg/dll-4.c: Likewise.
* gcc.dg/dll-5.c: Likewise.
From-SVN: r165261
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 10 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/ext/dllexport-MI1.C | 20 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/ext/dllexport1.C | 6 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/ext/dllexport3.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/dll-3.c | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/dll-4.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/dll-5.c | 4 |
7 files changed, 30 insertions, 20 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8e8c71c..4efcbde 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,13 @@ +2010-10.10 Kai Tietz <kai.tietz@onevision.com> + + * g++.dg/ext/dllexport-MI1.C: Enable for x86_64 mingw + and adjust -export symbol scanning. + * g++.dg/ext/dllexport1.C: Likewise. + * g++.dg/ext/dllexport3.C: Likewise. + * gcc.dg/dll-3.c: Likewise. + * gcc.dg/dll-4.c: Likewise. + * gcc.dg/dll-5.c: Likewise. + 2010-10-10 Uros Bizjak <ubizjak@gmail.com> * gcc.dg/tree-prof/ic-misattribution-1a.c: Cleanup tree_profile_ipa diff --git a/gcc/testsuite/g++.dg/ext/dllexport-MI1.C b/gcc/testsuite/g++.dg/ext/dllexport-MI1.C index e640d3b..c5c27dd 100644 --- a/gcc/testsuite/g++.dg/ext/dllexport-MI1.C +++ b/gcc/testsuite/g++.dg/ext/dllexport-MI1.C @@ -1,4 +1,4 @@ -// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw*} } +// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw*} } // Test that non-virtual MI thunks are exported. @@ -27,25 +27,25 @@ DLL_IMPEXP MI1 dllMI1Copy = dllMI1; // Scan for export of some methods that are undefined in dllimportMI1.C, -// { dg-final { scan-assembler "-export:_ZNK2D12vfEv" } } -// { dg-final { scan-assembler "-export:_ZNK2D22vfEv" } } -// { dg-final { scan-assembler "-export:_ZNK3MI12vfEv" } } +// { dg-final { scan-assembler "-export:\[\\\\\"\]*_ZNK2D12vfEv" } } +// { dg-final { scan-assembler "-export:\[\\\\\"\]*_ZNK2D22vfEv" } } +// { dg-final { scan-assembler "-export:\[\\\\\"\]*_ZNK3MI12vfEv" } } // and MI thunks, -// { dg-final { scan-assembler "-export:_ZThn4_NK3MI12vfEv" } } -// { dg-final { scan-assembler "-export:_ZTv0_n12_NK2D12vfEv" } } +// { dg-final { scan-assembler "-export:\[\\\\\"\]*_ZThn4_NK3MI12vfEv" } } +// { dg-final { scan-assembler "-export:\[\\\\\"\]*_ZTv0_n12_NK2D12vfEv" } } // and a vtable data variable. -// { dg-final { scan-assembler "-export:_ZTV2D1,data" } } +// { dg-final { scan-assembler "-export:\[\\\\\"\]*_ZTV2D1\[\\\"\]*,data" } } // an explicit copy ctor -// { dg-final { scan-assembler "-export:_ZN2D2C2ERKS_" } } +// { dg-final { scan-assembler "-export:\[\\\\\"\]*_ZN2D2C2ERKS_" } } // but not implicit copy ctor generated by compiler // nor implicit dtor -// { dg-final { scan-assembler-not "-export:_ZN2D1C2ERKS_" } } -// { dg-final { scan-assembler-not "-export:_ZN2D1D2Ev" } } +// { dg-final { scan-assembler-not "-export:\[\\\\\"\]*_ZN2D1C2ERKS_" } } +// { dg-final { scan-assembler-not "-export:\[\\\\\"\]*_ZN2D1D2Ev" } } diff --git a/gcc/testsuite/g++.dg/ext/dllexport1.C b/gcc/testsuite/g++.dg/ext/dllexport1.C index 5f065d4..3683d08 100644 --- a/gcc/testsuite/g++.dg/ext/dllexport1.C +++ b/gcc/testsuite/g++.dg/ext/dllexport1.C @@ -1,5 +1,5 @@ // Test that inline functions are exported with -fkeep-inline-functions. -// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw*} } +// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw*} } // { dg-options -fkeep-inline-functions } __attribute__((dllexport)) inline int foo (int a) { return a;} @@ -19,5 +19,5 @@ int Bar::outline_bar(int a) {return foo (a);} Bar abar; // { dg-final { scan-assembler "\.section\[ \t\]*.drectve\n.*_ZN3Bar11outline_barEi" } } -// { dg-final { scan-assembler " -export:_ZN3Bar10inline_barEi" } } -// { dg-final { scan-assembler " -export:_Z3fooi" } } +// { dg-final { scan-assembler " -export:\[\\\\\"\]*_ZN3Bar10inline_barEi" } } +// { dg-final { scan-assembler " -export:\[\\\\\"\]*_Z3fooi" } } diff --git a/gcc/testsuite/g++.dg/ext/dllexport3.C b/gcc/testsuite/g++.dg/ext/dllexport3.C index a47a5e0..206dfc9 100644 --- a/gcc/testsuite/g++.dg/ext/dllexport3.C +++ b/gcc/testsuite/g++.dg/ext/dllexport3.C @@ -1,6 +1,6 @@ // PR c++/42870 // { dg-do compile { target i?86-*-cygwin *-*-mingw* } } -// { dg-final { scan-assembler "-export:_ZN2SaD1Ev" } } +// { dg-final { scan-assembler "-export:\[\\\\\"\]*_ZN2SaD1Ev" } } #define ATTRIBUTE __attribute__ ((dllexport)) class ATTRIBUTE Sa { diff --git a/gcc/testsuite/gcc.dg/dll-3.c b/gcc/testsuite/gcc.dg/dll-3.c index 0a3f7df..f68758c 100644 --- a/gcc/testsuite/gcc.dg/dll-3.c +++ b/gcc/testsuite/gcc.dg/dll-3.c @@ -2,7 +2,7 @@ /* { dg-do compile { target arm*-*-pe* } } */ /* { dg-do compile { target i?86-pc-cygwin } } */ -/* { dg-do compile { target i?86-pc-mingw* } } */ +/* { dg-do compile { target i?86-*-mingw* x86_64-*-mingw*} } */ __declspec (dllimport) int foo1 (); __declspec (dllexport) int foo1 (); /* { dg-warning "previous dllimport ignored" } */ @@ -13,6 +13,6 @@ __declspec (dllimport) int foo2 (); /* { dg-warning "dllimport ignored" } */ __declspec (dllexport) int foo1 () { return foo2 (); } __declspec (dllexport) int foo2 () { return foo1 (); } -/* { dg-final { scan-assembler "\.section\[ \t\]*.drectve\n.*-export:foo2" } } */ -/* { dg-final { scan-assembler "-export:foo1" } } */ +/* { dg-final { scan-assembler "\.section\[ \t\]*.drectve\n.*-export:\[\\\\\"\]*foo2" } } */ +/* { dg-final { scan-assembler "-export:\[\\\\\"\]*foo1" } } */ /* { dg-final { scan-assembler-not "(__imp_foo1|_imp__foo1|__imp_foo2|_imp__foo2)" } } */ diff --git a/gcc/testsuite/gcc.dg/dll-4.c b/gcc/testsuite/gcc.dg/dll-4.c index 897b550..e2d701b 100644 --- a/gcc/testsuite/gcc.dg/dll-4.c +++ b/gcc/testsuite/gcc.dg/dll-4.c @@ -1,6 +1,6 @@ /* { dg-do compile { target arm*-*-pe* } } */ /* { dg-do compile { target i?86-pc-cygwin } } */ -/* { dg-do compile { target i?86-pc-mingw* } } */ +/* { dg-do compile { target i?86-*-mingw* x86_64-*-mingw* } } */ __declspec (dllimport) int foo1; int foo1; /* { dg-warning "redeclared without dllimport" } */ diff --git a/gcc/testsuite/gcc.dg/dll-5.c b/gcc/testsuite/gcc.dg/dll-5.c index df7e3e3..d28603b 100644 --- a/gcc/testsuite/gcc.dg/dll-5.c +++ b/gcc/testsuite/gcc.dg/dll-5.c @@ -1,5 +1,5 @@ /* { dg-do compile { target i?86-pc-cygwin } } */ -/* { dg-do compile { target i?86-pc-mingw* } } */ +/* { dg-do compile { target i?86-*-mingw* x86_64-*-mingw* } } */ /* { dg-do compile { target arm*-*-pe* } } */ /* { dg-options -mnop-fun-dllimport } */ @@ -19,4 +19,4 @@ __declspec (dllexport) void dllexp () /* { dg-final { scan-assembler-not "(__imp_dllimpfn|_imp__dllimpfn)" } } */ /* { dg-final { scan-assembler "(__imp_dllimpvar|_imp__dllimpvar)" } } */ -/* { dg-final { scan-assembler "\.section\[ \t\]*.drectve\n\.*-export:dllexp" } } */ +/* { dg-final { scan-assembler "\.section\[ \t\]*.drectve\n\.*-export:\[\\\\\"\]*dllexp" } } */ |