rtti3.C: Scan for .weakext on alpha*-dec-osf*.
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Wed, 10 Nov 2010 17:48:42 +0000 (17:48 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Wed, 10 Nov 2010 17:48:42 +0000 (17:48 +0000)
* g++.dg/abi/rtti3.C: Scan for .weakext on alpha*-dec-osf*.
* g++.dg/abi/thunk4.C: Likewise.
* g++.dg/opt/combine.C: Add dg-require-visibility.
* g++.dg/other/anon5.C: Skip on alpha*-dec-osf*.
* g++.dg/warn/miss-format-1.C: XFAIL scanf attribute warning on
alpha*-dec-osf*.
* g++.dg/warn/pr31246.C: XFAIL on alpha*-dec-osf*.
* g++.dg/warn/weak1.C: Skip on alpha*-dec-osf*.
* g++.old-deja/g++.eh/badalloc1.C [!STACK_SIZE && __osf__]: Use
large arena_size.
* gcc.dg/attr-weakref-1.c: Skip on alpha*-dec-osf*.
* gcc.dg/intmax_t-1.c: Likewise.

From-SVN: r166548

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/abi/rtti3.C
gcc/testsuite/g++.dg/abi/thunk4.C
gcc/testsuite/g++.dg/opt/combine.C
gcc/testsuite/g++.dg/other/anon5.C
gcc/testsuite/g++.dg/warn/miss-format-1.C
gcc/testsuite/g++.dg/warn/pr31246.C
gcc/testsuite/g++.dg/warn/weak1.C
gcc/testsuite/g++.old-deja/g++.eh/badalloc1.C
gcc/testsuite/gcc.dg/attr-weakref-1.c
gcc/testsuite/gcc.dg/intmax_t-1.c

index dfb3abcc5ed8b3a5fd84f129c141503c1127c001..5143d156b09dad3f9d38242f20de7cf58806a84f 100644 (file)
@@ -1,3 +1,18 @@
+2010-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * g++.dg/abi/rtti3.C: Scan for .weakext on alpha*-dec-osf*.
+       * g++.dg/abi/thunk4.C: Likewise.
+       * g++.dg/opt/combine.C: Add dg-require-visibility.
+       * g++.dg/other/anon5.C: Skip on alpha*-dec-osf*.
+       * g++.dg/warn/miss-format-1.C: XFAIL scanf attribute warning on
+       alpha*-dec-osf*.
+       * g++.dg/warn/pr31246.C: XFAIL on alpha*-dec-osf*.
+       * g++.dg/warn/weak1.C: Skip on alpha*-dec-osf*.
+       * g++.old-deja/g++.eh/badalloc1.C [!STACK_SIZE && __osf__]: Use
+       large arena_size.
+       * gcc.dg/attr-weakref-1.c: Skip on alpha*-dec-osf*.
+       * gcc.dg/intmax_t-1.c: Likewise.
+
 2010-11-10  Tobias Burnus <burnus@net-b.de>
 
        PR fortran/46244
index c03e4611c0b47dee8e18826f4a235fd2125d8957..60dc9b8d628c1ab543a37ec6470df703ea0b9001 100644 (file)
@@ -3,10 +3,12 @@
 
 // { dg-require-weak "" }
 // { dg-skip-if "Linkonce not weak" { *-*-mingw* *-*-cygwin } { "*" } { "" } }
-// { dg-final { scan-assembler ".weak\[ \t\]_?_ZTSPP1A" { target { ! { *-*-darwin* } } } } }
-// { dg-final { scan-assembler-not ".weak\[ \t\]_?_ZTIPP1A" { target { ! { *-*-darwin* } } } } }
+// { dg-final { scan-assembler ".weak\[ \t\]_?_ZTSPP1A" { target { ! { *-*-darwin* alpha*-dec-osf* } } } } }
+// { dg-final { scan-assembler-not ".weak\[ \t\]_?_ZTIPP1A" { target { ! { *-*-darwin* alpha*-dec-osf* } } } } }
 // { dg-final { scan-assembler ".weak_definition\[ \t\]_?_ZTSPP1A" { target { *-*-darwin* } } } }
 // { dg-final { scan-assembler-not ".weak_definition\[ \t\]_?_ZTIPP1A" { target { *-*-darwin* } } } }
+// { dg-final { scan-assembler ".weakext\[ \t\]_?_ZTSPP1A" { target { alpha*-dec-osf* } } } }
+// { dg-final { scan-assembler-not ".weakext\[ \t\]_?_ZTIPP1A" { target { alpha*-dec-osf* } } } }
 
 struct A;
 
index fa5fbd4327714d323b7f0012100bd34226ba9855..cd9eac3ea103490b09d17a2cbf2536310f11be7a 100644 (file)
@@ -1,7 +1,8 @@
 // { dg-require-weak "" }
 // { dg-skip-if "Linkonce not weak" { *-*-mingw* *-*-cygwin } { "*" } { "" } }
-// { dg-final { scan-assembler ".weak\[ \t\]_?_ZThn._N7Derived3FooEv" { target { ! { *-*-darwin* } } } } }
+// { dg-final { scan-assembler ".weak\[ \t\]_?_ZThn._N7Derived3FooEv" { target { ! { *-*-darwin* alpha*-dec-osf* } } } } }
 // { dg-final { scan-assembler ".weak_definition\[ \t\]_?_ZThn._N7Derived3FooEv" { target { *-*-darwin* } } } }
+// { dg-final { scan-assembler ".weakext\[ \t\]_?_ZThn._N7Derived3FooEv" { target { alpha*-dec-osf* } } } }
 
 struct Base 
 {
index a9a4bb70010bc0902c42434b17c234c56b9d6a18..d01ae78a4bce66b79c005aed5bbb5c136f9fe391 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do assemble { target fpic } }
 // { dg-options "-O2 -fweb -fPIC -fvisibility=hidden" }
+// { dg-require-visibility "" }
 
 class QBasicAtomicInt
 {
index 12f0900f5f7ee462cbbe78f80a9d3d7a2ccb8a78..3f50db14036c10dc840dfffccf11fd2b542bd08a 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/34094
-// { dg-do link { target { ! { *-*-darwin* *-*-hpux* *-*-solaris2.* } } } }
+// { dg-do link { target { ! { *-*-darwin* *-*-hpux* *-*-solaris2.* alpha*-dec-osf* } } } }
 // { dg-options "-g" }
 
 namespace {
index d850504edd9b8b51d08a23ffbc71ea9119f5f0a0..a35cd9ca9afd0f4e85f4e641b6e1614c8131ff35 100644 (file)
@@ -4,7 +4,7 @@
 /* { dg-options "-Wmissing-format-attribute" } */
 /* { dg-options "-Wmissing-format-attribute -Wno-abi" { target arm_eabi } } */
 /* VxWorks does not provide vscanf, either in kernel or RTP mode.  */
-/* { dg-error "not declared" "" { target { *-*-solaris2.8 *-*-vxworks* alpha*-dec-osf5* } } 26 } */
+/* { dg-error "not declared" "" { target { *-*-solaris2.8 *-*-vxworks* alpha*-dec-osf* } } 26 } */
 
 #include <stdio.h>
 #include <stdarg.h>
@@ -23,7 +23,7 @@ bar (const char *fmt, ...)
 {
   va_list ap;
   va_start (ap, fmt);
-  vscanf (fmt, ap); /* { dg-warning "candidate" "scanf attribute warning" { xfail *-*-solaris2.8 *-*-vxworks* } } */
+  vscanf (fmt, ap); /* { dg-warning "candidate" "scanf attribute warning" { xfail *-*-solaris2.8 *-*-vxworks* alpha*-dec-osf* } } */
   va_end (ap);
 }
 
index f3603af478772c116746ce90f473ed16e598ef0b..a96dc96c19713b696520d4df229c5d1cd5d5c291 100644 (file)
@@ -1,6 +1,7 @@
 // PR 31246
 // { dg-do compile }
 // { dg-options "-Wunreachable-code -D_GLIBCXX_DEBUG" }
+// { dg-xfail-if "lack of weak symbols" { alpha*-dec-osf* } }
 #include <vector>
 
 int main()
index efce90a2bcf0fe0a90f4e4fd0fde47e24eee9a2a..8a50030bc9d3799c56e075ec76d485817a7e96e2 100644 (file)
@@ -1,7 +1,8 @@
 // { dg-do run }
 // { dg-require-weak "" }
-// The PA HP-UX dynamic loader doesn't support unsatisfied weak symbols.
-// { dg-skip-if "No unsat" { hppa*-*-hpux* } { "*" } { "" } }
+// The PA HP-UX and Tru64 UNIX dynamic loaders don't support unsatisfied
+// weak symbols.
+// { dg-skip-if "No unsat" { alpha*-dec-osf* hppa*-*-hpux* } { "*" } { "" } }
 // The darwin loader does, but they do need to exist at link time.
 // { dg-skip-if "No link unsat" { *-*-darwin* } { "*" } { "" } }
 // For kernel modules and static RTPs, the loader treats undefined weak
index 28eb36c8985710b1ef0119a50fdd8749a1978b76..cd902fbc3c04480a4381523c8f5edac0845afb66 100644 (file)
@@ -3,7 +3,7 @@
 // itself call malloc(), and will fail if there is no more
 // memory available.
 // { dg-do run { xfail { { xstormy16-*-* *-*-darwin[3-7]* } || vxworks_rtp } } }
-// Copyright (C) 2000, 2002, 2003 Free Software Foundation, Inc.
+// Copyright (C) 2000, 2002, 2003, 2010 Free Software Foundation, Inc.
 // Contributed by Nathan Sidwell 6 June 2000 <nathan@codesourcery.com>
 
 // Check we can throw a bad_alloc exception when malloc dies.
@@ -18,8 +18,8 @@ extern "C" void *memcpy(void *, const void *, size_t);
 #ifdef STACK_SIZE
 const int arena_size = 256;
 #else
-#if defined(__FreeBSD__) || defined(__sun__) || defined(__hpux__)
-// FreeBSD, Solaris and HP-UX with threads require even more
+#if defined(__FreeBSD__) || defined(__sun__) || defined(__hpux__) || defined(__osf__)
+// FreeBSD, Solaris, HP-UX and Tru64 UNIX with threads require even more
 // space at initialization time.  FreeBSD 5 now requires over 131072 bytes.
 const int arena_size = 262144;
 #else
index 898bc4169a038f8097f323c8093a259e2256028d..31d5379e47c786ad368b54578fa691d0447959d2 100644 (file)
@@ -2,9 +2,10 @@
 // { dg-require-weak "" }
 // On darwin, we use attr-weakref-1-darwin.c.
 // This test requires support for undefined weak symbols.  This support
-// is not available on hppa*-*-hpux*.  The test is skipped rather than
-// xfailed to suppress the warning that would otherwise arise.
-// { dg-skip-if "" { "*-*-darwin*" "hppa*-*-hpux*" } "*" { "" } }
+// is not available on alpha*-dec-osf* and hppa*-*-hpux*.  The test is
+// skipped rather than xfailed to suppress the warning that would otherwise
+// arise.
+// { dg-skip-if "" { "alpha*-dec-osf*" "*-*-darwin*" "hppa*-*-hpux*" } "*" { "" } }
 // For kernel modules and static RTPs, the loader treats undefined weak
 // symbols in the same way as undefined strong symbols.  The test
 // therefore fails to load, so skip it.
index 00b503c250906bb76c784a21c7005fdd352ec11a..2f21c63f0297822c1c647e32316a33b0ef9c087e 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-Wall" } */
 /* { dg-error "" "" { target { { *arm*-*-*elf* xtensa*-*-elf* } || vxworks_kernel } } 0 } */
+/* { dg-skip-if "No *intmax_t in <inttypes.h>" { alpha*-dec-osf* } } */
 
 /* Compile with -Wall to get a warning if built-in and system intmax_t don't
    match.  */