]> gcc.gnu.org Git - gcc.git/commitdiff
testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to CXXFLAGS_save.
authorPaolo Carlini <pcarlini@suse.de>
Thu, 4 Mar 2004 23:29:44 +0000 (23:29 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 4 Mar 2004 23:29:44 +0000 (23:29 +0000)
2004-03-04  Paolo Carlini  <pcarlini@suse.de>

* scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
CXXFLAGS_save.
* testsuite/lib/libstdc++.exp: Don't add it conditionally to
DEFAULT_CXXFLAGS.
* testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
from the dg-options.
* testsuite/23_containers/vector/invalidation/1.cc: Likewise.
* testsuite/23_containers/vector/invalidation/2.cc: Likewise.
* testsuite/23_containers/vector/invalidation/3.cc: Likewise.
* testsuite/23_containers/vector/invalidation/4.cc: Likewise.
* testsuite/23_containers/vector/resize/1.cc: Likewise.
* testsuite/26_numerics/complex_value.cc: Likewise.
* testsuite/27_io/ios_base/storage/1.cc: Likewise.
* testsuite/27_io/ios_base/storage/2.cc: Likewise.
* testsuite/27_io/ios_base/storage/3.cc: Likewise.
* testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
* testsuite/27_io/objects/char/5.cc: Likewise.
* testsuite/27_io/objects/wchar_t/5.cc: Likewise.
* testsuite/backward/11460.cc: Likewise.
* testsuite/thread/pthread7-rope.cc: Likewise.

* testsuite/21_strings/basic_string/compare/char/1.cc: Add
missing test variable.
* testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
missing test variable.

From-SVN: r78942

20 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/scripts/testsuite_flags.in
libstdc++-v3/testsuite/18_support/numeric_limits.cc
libstdc++-v3/testsuite/21_strings/basic_string/compare/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/compare/wchar_t/1.cc
libstdc++-v3/testsuite/23_containers/vector/invalidation/1.cc
libstdc++-v3/testsuite/23_containers/vector/invalidation/2.cc
libstdc++-v3/testsuite/23_containers/vector/invalidation/3.cc
libstdc++-v3/testsuite/23_containers/vector/invalidation/4.cc
libstdc++-v3/testsuite/23_containers/vector/resize/1.cc
libstdc++-v3/testsuite/26_numerics/complex_value.cc
libstdc++-v3/testsuite/27_io/ios_base/storage/1.cc
libstdc++-v3/testsuite/27_io/ios_base/storage/2.cc
libstdc++-v3/testsuite/27_io/ios_base/storage/3.cc
libstdc++-v3/testsuite/27_io/manipulators/standard/char/2.cc
libstdc++-v3/testsuite/27_io/objects/char/5.cc
libstdc++-v3/testsuite/27_io/objects/wchar_t/5.cc
libstdc++-v3/testsuite/backward/11460.cc
libstdc++-v3/testsuite/lib/libstdc++.exp
libstdc++-v3/testsuite/thread/pthread7-rope.cc

index 2aa51bf946b7c3eb84d468f92c6c02f5f21ed1b0..1c46f8206cd555cba2869f67aee227cebe3a9cd3 100644 (file)
@@ -1,3 +1,31 @@
+2004-03-04  Paolo Carlini  <pcarlini@suse.de>
+
+       * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
+       CXXFLAGS_save.
+       * testsuite/lib/libstdc++.exp: Don't add it conditionally to
+       DEFAULT_CXXFLAGS. 
+       * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
+       from the dg-options.
+       * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
+       * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
+       * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
+       * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
+       * testsuite/23_containers/vector/resize/1.cc: Likewise.
+       * testsuite/26_numerics/complex_value.cc: Likewise.
+       * testsuite/27_io/ios_base/storage/1.cc: Likewise.
+       * testsuite/27_io/ios_base/storage/2.cc: Likewise.
+       * testsuite/27_io/ios_base/storage/3.cc: Likewise.
+       * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
+       * testsuite/27_io/objects/char/5.cc: Likewise.
+       * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
+       * testsuite/backward/11460.cc: Likewise.
+       * testsuite/thread/pthread7-rope.cc: Likewise.
+
+       * testsuite/21_strings/basic_string/compare/char/1.cc: Add
+       missing test variable.
+       * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
+       missing test variable.
+
 2004-03-04  Benjamin Kosnik  <bkoz@redhat.com>
 
        * testsuite/20_util/allocator/1.cc: Provide explicit
index f66082e2fae97240953e8112aa7aa502fd21518a..2a74f4782db4def3e1b1db788bb153bec47355bf 100755 (executable)
@@ -47,7 +47,7 @@ case ${query} in
       echo ${CXX}
       ;;
     --cxxflags)
-      CXXFLAGS_save="-g -O2"
+      CXXFLAGS_save="-g -O2 -D_GLIBCXX_ASSERT"
       CXXFLAGS_config='@SECTION_FLAGS@ @SECTION_LDFLAGS@ -fmessage-length=0 
                      @EXTRA_CXX_FLAGS@ -DLOCALEDIR="@glibcxx_localedir@" '
       echo ${CXXFLAGS_save} ${CXXFLAGS_config}
index a7c2494a8b9e6bdd8dd36e7fb0574b3b0fdc40f4..93be8372d058b5e5aa984999dc9fb47f136b18a4 100644 (file)
@@ -1,8 +1,8 @@
-// { dg-options "-D_GLIBCXX_ASSERT -mieee" { target alpha*-*-* } }
+// { dg-options "-mieee" { target alpha*-*-* } }
 
 // 1999-08-23 bkoz
 
-// Copyright (C) 1999, 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 1999, 2001, 2002, 2003, 2004 Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index 096f4f3957d8474f5c55a529b2e6edd3d7100d43..75dc5ad7db6cf1cc83849448c014c28bfc7d9660 100644 (file)
@@ -1,6 +1,6 @@
 // 980930 bkoz work with libstdc++v3
 
-// Copyright (C) 1998, 1999, 2003 Free Software Foundation, Inc.
+// Copyright (C) 1998, 1999, 2003, 2004 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -41,6 +41,7 @@ test_value(int result, want_value expected);
 int
 test_value(int result, want_value expected)
 {
+  bool test __attribute__((unused)) = true;
   bool pass = false;
 
   switch (expected) {
index 5d6151900b2ed6a700e3de0e34af65461ebc72d4..2ad25204ebaa9b39e83010d0abdc6dd68d3a798f 100644 (file)
@@ -1,6 +1,6 @@
 // 980930 bkoz work with libstdc++v3
 
-// Copyright (C) 1998, 1999, 2003 Free Software Foundation, Inc.
+// Copyright (C) 1998, 1999, 2003, 2004 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -41,6 +41,7 @@ test_value(int result, want_value expected);
 int
 test_value(int result, want_value expected)
 {
+  bool test __attribute__((unused)) = true;
   bool pass = false;
 
   switch (expected) {
index b93146fb6c035ebb1dcc02bbdb928a2defcc13d7..1e1e524a74b5aa9a9d9db8b004e2b203ba5c4a8f 100644 (file)
@@ -1,6 +1,6 @@
 // Vector iterator invalidation tests
 
-// Copyright (C) 2003 Free Software Foundation, Inc.
+// Copyright (C) 2003, 2004 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -19,7 +19,7 @@
 // USA.
 
 // We need to be pedantic about reallocations for this testcase to be correct.
-// { dg-options "-D_GLIBCXX_ASSERT -D_GLIBCXX_DEBUG_PEDANTIC" }
+// { dg-options "-D_GLIBCXX_DEBUG_PEDANTIC" }
 
 #ifndef _GLIBCXX_DEBUG_PEDANTIC
 #  define _GLIBCXX_DEBUG_PEDANTIC 1
index 75f67b02d176570b417815ffce020ffebde12ea8..13210acf903fb5b844a4aa66fa0d47a3d42706a4 100644 (file)
@@ -1,6 +1,6 @@
 // Vector iterator invalidation tests
 
-// Copyright (C) 2003 Free Software Foundation, Inc.
+// Copyright (C) 2003, 2004 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -19,7 +19,7 @@
 // USA.
 
 // We need to be pedantic about reallocations for this testcase to be correct.
-// { dg-options "-D_GLIBCXX_ASSERT -D_GLIBCXX_DEBUG_PEDANTIC" }
+// { dg-options "-D_GLIBCXX_DEBUG_PEDANTIC" }
 
 #ifndef _GLIBCXX_DEBUG_PEDANTIC
 #  define _GLIBCXX_DEBUG_PEDANTIC 1
index 5447cf8ac43f575ea982c52be1d3b62db88cbdee..a0df965a1b6f9459ac1cdab2171a503381de4333 100644 (file)
@@ -1,6 +1,6 @@
 // Vector iterator invalidation tests
 
-// Copyright (C) 2003 Free Software Foundation, Inc.
+// Copyright (C) 2003, 2004 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -19,7 +19,7 @@
 // USA.
 
 // We need to be pedantic about reallocations for this testcase to be correct.
-// { dg-options "-D_GLIBCXX_ASSERT -D_GLIBCXX_DEBUG_PEDANTIC" }
+// { dg-options "-D_GLIBCXX_DEBUG_PEDANTIC" }
 
 #ifndef _GLIBCXX_DEBUG_PEDANTIC
 #  define _GLIBCXX_DEBUG_PEDANTIC 1
index 347d2312a1fc0bc29a3a0ee630c40225c7c3f314..8ee2234216aeae76c371e6f04d4014b8a39f9976 100644 (file)
@@ -1,6 +1,6 @@
 // Vector iterator invalidation tests
 
-// Copyright (C) 2003 Free Software Foundation, Inc.
+// Copyright (C) 2003, 2004 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -19,7 +19,7 @@
 // USA.
 
 // We need to be pedantic about reallocations for this testcase to be correct.
-// { dg-options "-D_GLIBCXX_ASSERT -D_GLIBCXX_DEBUG_PEDANTIC" }
+// { dg-options "-D_GLIBCXX_DEBUG_PEDANTIC" }
 
 #ifndef _GLIBCXX_DEBUG_PEDANTIC
 #  define _GLIBCXX_DEBUG_PEDANTIC 1
index 7bc579809f75bb586866e483e0df66a34d11a483..b5b31e8d1ae0b7828ab21da81dafe1ad529695cb 100644 (file)
@@ -24,7 +24,7 @@
 // XXX This test will not work for irix6 because of bug(s) in libc malloc
 // XXX for very large allocations.  However -lmalloc seems to work.
 // See http://gcc.gnu.org/ml/libstdc++/2002-12/msg00131.html
-// { dg-options "-D_GLIBCXX_ASSERT -lmalloc" { target mips*-*-irix6* } }
+// { dg-options "-lmalloc" { target mips*-*-irix6* } }
 
 #include <vector>
 #include <stdexcept>
index edb8f33c5449a1e640ca82037e63e7e9ec494f36..03f26284092df05adb958dea8721a573243dbb39 100644 (file)
@@ -1,8 +1,8 @@
-// { dg-options "-D_GLIBCXX_ASSERT -O0" }
+// { dg-options "-O0" }
 // 2000-11-20
 // Benjamin Kosnik bkoz@redhat.com
 
-// Copyright (C) 2000, 2003 Free Software Foundation, Inc.
+// Copyright (C) 2000, 2003, 2004 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index 07b9bbe79fb4de0acdd0f7b2c9142e9439d92a55..71753317202c817b6b2d1fdeb406993b36636603 100644 (file)
@@ -1,6 +1,6 @@
 // 2000-12-19 bkoz
 
-// Copyright (C) 2000, 2002, 2003 Free Software Foundation
+// Copyright (C) 2000, 2002, 2003, 2004 Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -24,7 +24,7 @@
 // XXX bug(s) in libc malloc for very large allocations.  However
 // XXX -lmalloc seems to work.
 // See http://gcc.gnu.org/ml/gcc/2002-05/msg01012.html
-// { dg-options "-D_GLIBCXX_ASSERT -lmalloc" { target mips*-*-irix6* } }
+// { dg-options "-lmalloc" { target mips*-*-irix6* } }
 
 #include <sstream>
 #include <iostream>
index 65ed829e193a0f03fc739759a17e1b0d1442106d..0da1382edd57d23ce60e29e8c86330c921a85646 100644 (file)
@@ -1,6 +1,6 @@
 // 2000-12-19 bkoz
 
-// Copyright (C) 2000, 2002, 2003 Free Software Foundation
+// Copyright (C) 2000, 2002, 2003, 2004 Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -24,7 +24,7 @@
 // XXX bug(s) in libc malloc for very large allocations.  However
 // XXX -lmalloc seems to work.
 // See http://gcc.gnu.org/ml/gcc/2002-05/msg01012.html
-// { dg-options "-D_GLIBCXX_ASSERT -lmalloc" { target mips*-*-irix6* } }
+// { dg-options "-lmalloc" { target mips*-*-irix6* } }
 
 #include <sstream>
 #include <iostream>
index 3a5d7025ce70c877bdea0c04de42743843cc53b2..e0d477f716de1150732d327959943c3246983473 100644 (file)
@@ -1,6 +1,6 @@
 // 2000-12-19 bkoz
 
-// Copyright (C) 2000, 2002, 2003 Free Software Foundation
+// Copyright (C) 2000, 2002, 2003, 2004 Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -24,7 +24,7 @@
 // XXX bug(s) in libc malloc for very large allocations.  However
 // XXX -lmalloc seems to work.
 // See http://gcc.gnu.org/ml/gcc/2002-05/msg01012.html
-// { dg-options "-D_GLIBCXX_ASSERT -lmalloc" { target mips*-*-irix6* } }
+// { dg-options "-lmalloc" { target mips*-*-irix6* } }
 
 #include <sstream>
 #include <iostream>
index 6d07434851a55278f9b34a32e51949c323c5cf5c..74376ec6d49e03068821a65a19018058d6fbe75b 100644 (file)
@@ -1,6 +1,6 @@
-// { dg-options "-D_GLIBCXX_ASSERT -fno-implicit-templates" }
+// { dg-options "-fno-implicit-templates" }
 
-// Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2002, 2004 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index acf8d6d3f0a0261d6429ee6e64e7b9d340b847f6..a5177dc9fe567a662f47b7290f8584fa7f772967 100644 (file)
@@ -1,7 +1,6 @@
-// { dg-options "-D_GLIBCXX_ASSERT" { target *-*-* } }
 // 2003-04-26 Petur Runolfsson  <peturr02@ru.is>
 
-// Copyright (C) 2003 Free Software Foundation
+// Copyright (C) 2003, 2004 Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index ed6f317325644b44b8fd4ac0c60fc88e09dac8f2..f7c4339b36d9c25d736a69ce9f03f096579f25e8 100644 (file)
@@ -1,7 +1,6 @@
-// { dg-options "-D_GLIBCXX_ASSERT" { target *-*-* } }
 // 2003-05-01 Petur Runolfsson  <peturr02@ru.is>
 
-// Copyright (C) 2003 Free Software Foundation
+// Copyright (C) 2003, 2004 Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index a0139e98d8913c94ffc32737c73b8a1c3d3c5dbb..25bcddd0a822546a6ca1c1d361419befd22a0ade 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-options "-Wno-deprecated -D_GLIBCXX_ASSERT" }
-// Copyright (C) 2003 Free Software Foundation, Inc.
+// { dg-options "-Wno-deprecated" }
+// Copyright (C) 2003, 2004 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index e2c8ddd808832049e0d3e44c71cb4c9828d2f9da..8bba2827b2422839ea9fd17be7692315ca1d6cbc 100644 (file)
@@ -96,15 +96,13 @@ proc libstdc++_init { testfile } {
     # headers, or without assertions.
     global DEFAULT_CXXFLAGS
     if ![info exists DEFAULT_CXXFLAGS] then {
-       set DEFAULT_CXXFLAGS "-D_GLIBCXX_ASSERT"
-
        # Set up includes for stdc++.h.gch, the precompiled header file.
        if { [file exists $flags_file] } {
            set cxxpchflags [exec sh $flags_file --cxxpchflags]
        } else {
            set cxxpchflags ""
        }
-       append DEFAULT_CXXFLAGS " ${cxxpchflags}"
+       set DEFAULT_CXXFLAGS " ${cxxpchflags}"
 
        # Host specific goo here.
        if { [string match "powerpc-*-darwin*" $target_triplet] } {
@@ -195,7 +193,7 @@ proc libstdc++_init { testfile } {
             return "untested"
         }
       set cxx [transform "g++"]
-      set cxxflags "-ggdb3 -D_GLIBCXX_ASSERT"
+      set cxxflags "-ggdb3"
       set includes "-I./"
     } else {
         # If we find a testsuite_flags file, we're testing in the build dir.
@@ -205,7 +203,7 @@ proc libstdc++_init { testfile } {
             set includes [exec sh $flags_file --build-includes]
         } else {
             set cxx [transform "g++"]
-            set cxxflags "-ggdb3 -D_GLIBCXX_ASSERT"
+            set cxxflags "-ggdb3"
             set includes "-I${srcdir}"
         }
     }
index 5b4d099fee5820d2025456b637bf78138dc18845..916a4550cdab740694988f8e2294336637e47483 100644 (file)
@@ -19,8 +19,8 @@
 // USA.
 
 // { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* } }
-// { dg-options "-D_GLIBCXX_ASSERT -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* } }
-// { dg-options "-D_GLIBCXX_ASSERT -pthreads" { target *-*-solaris* } }
+// { dg-options "-pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* } }
+// { dg-options "-pthreads" { target *-*-solaris* } }
 
 #include <ext/rope>
 #include <cstring>
This page took 0.085777 seconds and 5 git commands to generate.