This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH,committed] g++.dg testsuite cleanups
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 04 Nov 2007 11:39:21 -0500
- Subject: [PATCH,committed] g++.dg testsuite cleanups
The appended patch fixes some g++.dg failures on AIX.
dg-require-visibility was missing an argument, causing it to be run on
targets that do not support visibility.
java-1.C references a symbol that includes a dollar sign, but AIX does not
allow dollar signs in identifiers.
Bootstrapped and regression tested on powerpc-ibm-aix5.3.0.0. Committed
as obvious.
David
* g++.dg/cpp/_Pragma1.C: Disable on AIX.
* g++.dg/ext/visibility/namespace2.C: Add argument to
dg-require-visibility.
* g++.dg/ext/java-1.C: Disable on AIX.
Index: cpp/_Pragma1.C
===================================================================
--- cpp/_Pragma1.C (revision 129879)
+++ cpp/_Pragma1.C (working copy)
@@ -2,7 +2,7 @@
// This is supposed to succeed only if
// the target defines HANDLE_PRAGMA_PACK_PUSH_POP
// and doesn't define HANDLE_PRAGMA_PACK_WITH_EXPANSION.
-// { dg-do compile { target { ! { *-*-solaris2* fido-*-* m68k-*-* sh*-[us]*-elf } } } }
+// { dg-do compile { target { ! { powerpc-ibm-aix* *-*-solaris2* fido-*-* m68k-*-* sh*-[us]*-elf } } } }
#define push bar
#define foo _Pragma ("pack(push)")
Index: ext/visibility/namespace2.C
===================================================================
--- ext/visibility/namespace2.C (revision 129879)
+++ ext/visibility/namespace2.C (working copy)
@@ -1,6 +1,6 @@
// PR c++/32470
-// { dg-require-visibility }
+// { dg-require-visibility "" }
// { dg-options "-fvisibility=hidden" }
// { dg-final { scan-hidden "_ZN4Test4testEv" } }
Index: ext/java-1.C
===================================================================
--- ext/java-1.C (revision 129879)
+++ ext/java-1.C (working copy)
@@ -1,4 +1,4 @@
-// { dg-do compile }
+// { dg-do compile { target { ! { powerpc-ibm-aix* } } } }
// { dg-options "" }
// Test extern "java" and some throwing of the objects.