mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-27 06:04:12 +08:00
testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to CXXFLAGS_save.
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
This commit is contained in:
parent
b9e4e5d1c0
commit
2aa89cbb78
@ -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
|
||||
|
@ -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}
|
||||
|
@ -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
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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}"
|
||||
}
|
||||
}
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user