diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-02 18:11:15 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-02 18:11:15 +0000 |
commit | ceb6f07a6d552bbebec0951a039a0d59a6124354 (patch) | |
tree | 0779b391d5ec1af6765a65c0aaa04a1b6836a43c | |
parent | 3e24a03e6507a031951eb615f464fc96a2b51186 (diff) | |
download | gcc-ceb6f07a6d552bbebec0951a039a0d59a6124354.tar.gz |
2007-03-02 Paolo Carlini <pcarlini@suse.de>
* testsuite/27_io/objects/wchar_t/9661-1.cc: Include <cstdlib>.
* testsuite/27_io/objects/wchar_t/7.cc: Likewise.
* testsuite/27_io/objects/char/9661-1.cc: Likewise.
* testsuite/27_io/objects/char/7.cc: Likewise.
* testsuite/27_io/basic_istream/ignore/wchar_t/2.cc: Likewise.
* testsuite/27_io/basic_istream/ignore/char/2.cc: Likewise.
* testsuite/27_io/basic_istream/getline/wchar_t/5.cc: Likewise.
* testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/
11.cc: Likewise.
* testsuite/27_io/basic_istream/extractors_character/wchar_t/
4.cc: Likewise.
* testsuite/27_io/basic_istream/extractors_character/char/
4.cc: Likewise.
* testsuite/27_io/basic_ostream/seekp/wchar_t/
2346-fstream.cc: Likewise.
* testsuite/27_io/basic_ostream/seekp/char/
2346-fstream.cc: Likewise.
* testsuite/27_io/basic_filebuf/seekoff/char/26777.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: Likewise.
* testsuite/27_io/basic_filebuf/close/char/4879.cc: Likewise.
* testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
* testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
* testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Likewise.
* testsuite/21_strings/basic_string/inserters_extractors/
wchar_t/10.cc: Likewise.
* testsuite/21_strings/basic_string/inserters_extractors/
wchar_t/11.cc: Likewise.
* testsuite/21_strings/basic_string/inserters_extractors/
char/10.cc: Likewise.
* testsuite/21_strings/basic_string/inserters_extractors/
char/11.cc: Likewise.
* testsuite/ext/pb_ds/example/trie_dna.cc: Likewise.
* testsuite/ext/new_allocator/deallocate_global.cc: Likewise.
* testsuite/ext/new_allocator/deallocate_local.cc: Likewise.
* testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: Likewise.
* testsuite/performance/27_io/ifstream_getline.cc: Likewise.
* testsuite/22_locale/locale/cons/4.cc: Likewise.
* testsuite/22_locale/locale/cons/5.cc: Likewise.
* testsuite/tr1/2_general_utilities/shared_ptr/thread/
mutex_weaktoshared.cc: Likewise.
* testsuite/tr1/2_general_utilities/shared_ptr/thread/
default_weaktoshared.cc: Likewise.
* testsuite/thread/pthread5.cc: Likewise.
* testsuite/thread/pthread1.cc: Likewise.
* testsuite/23_containers/deque/cons/assign/1.cc: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122482 138bc75d-0d04-0410-961f-82ee72b054a4
39 files changed, 139 insertions, 46 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index e43a9533245..bd20ce0c1ac 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,57 @@ 2007-03-02 Paolo Carlini <pcarlini@suse.de> + * testsuite/27_io/objects/wchar_t/9661-1.cc: Include <cstdlib>. + * testsuite/27_io/objects/wchar_t/7.cc: Likewise. + * testsuite/27_io/objects/char/9661-1.cc: Likewise. + * testsuite/27_io/objects/char/7.cc: Likewise. + * testsuite/27_io/basic_istream/ignore/wchar_t/2.cc: Likewise. + * testsuite/27_io/basic_istream/ignore/char/2.cc: Likewise. + * testsuite/27_io/basic_istream/getline/wchar_t/5.cc: Likewise. + * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise. + * testsuite/27_io/basic_istream/extractors_arithmetic/char/ + 11.cc: Likewise. + * testsuite/27_io/basic_istream/extractors_character/wchar_t/ + 4.cc: Likewise. + * testsuite/27_io/basic_istream/extractors_character/char/ + 4.cc: Likewise. + * testsuite/27_io/basic_ostream/seekp/wchar_t/ + 2346-fstream.cc: Likewise. + * testsuite/27_io/basic_ostream/seekp/char/ + 2346-fstream.cc: Likewise. + * testsuite/27_io/basic_filebuf/seekoff/char/26777.cc: Likewise. + * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Likewise. + * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: Likewise. + * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise. + * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: Likewise. + * testsuite/27_io/basic_filebuf/close/char/4879.cc: Likewise. + * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise. + * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise. + * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Likewise. + * testsuite/21_strings/basic_string/inserters_extractors/ + wchar_t/10.cc: Likewise. + * testsuite/21_strings/basic_string/inserters_extractors/ + wchar_t/11.cc: Likewise. + * testsuite/21_strings/basic_string/inserters_extractors/ + char/10.cc: Likewise. + * testsuite/21_strings/basic_string/inserters_extractors/ + char/11.cc: Likewise. + * testsuite/ext/pb_ds/example/trie_dna.cc: Likewise. + * testsuite/ext/new_allocator/deallocate_global.cc: Likewise. + * testsuite/ext/new_allocator/deallocate_local.cc: Likewise. + * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: Likewise. + * testsuite/performance/27_io/ifstream_getline.cc: Likewise. + * testsuite/22_locale/locale/cons/4.cc: Likewise. + * testsuite/22_locale/locale/cons/5.cc: Likewise. + * testsuite/tr1/2_general_utilities/shared_ptr/thread/ + mutex_weaktoshared.cc: Likewise. + * testsuite/tr1/2_general_utilities/shared_ptr/thread/ + default_weaktoshared.cc: Likewise. + * testsuite/thread/pthread5.cc: Likewise. + * testsuite/thread/pthread1.cc: Likewise. + * testsuite/23_containers/deque/cons/assign/1.cc: Likewise. + +2007-03-02 Paolo Carlini <pcarlini@suse.de> + * testsuite/thread/pthread1.cc: Include <pthread.h>. * testsuite/thread/pthread2.cc: Likewise. * testsuite/thread/pthread3.cc: Likewise. diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/10.cc b/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/10.cc index 9c6d69440f1..204ea4c53d2 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/10.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/10.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2004 Free Software Foundation +// Copyright (C) 2004, 2005, 2006, 2007 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 @@ -21,6 +21,7 @@ #include <istream> #include <string> #include <fstream> +#include <cstdlib> #include <testsuite_hooks.h> using namespace std; diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/11.cc b/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/11.cc index a400cd9bb9e..9897bb28778 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/11.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/11.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2004 Free Software Foundation +// Copyright (C) 2004, 2005, 2006, 2007 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 @@ -21,6 +21,7 @@ #include <istream> #include <string> #include <fstream> +#include <cstdlib> #include <testsuite_hooks.h> using namespace std; diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc b/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc index c2c4e619f5e..4a7fa50ff9b 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2004 Free Software Foundation +// Copyright (C) 2004, 2005, 2006, 2007 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 @@ -21,6 +21,7 @@ #include <istream> #include <string> #include <fstream> +#include <cstdlib> #include <testsuite_hooks.h> using namespace std; diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc b/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc index 391cece916e..e3b5c173404 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2004 Free Software Foundation +// Copyright (C) 2004, 2005, 2006, 2007 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 @@ -21,6 +21,7 @@ #include <istream> #include <string> #include <fstream> +#include <cstdlib> #include <testsuite_hooks.h> using namespace std; diff --git a/libstdc++-v3/testsuite/22_locale/locale/cons/4.cc b/libstdc++-v3/testsuite/22_locale/locale/cons/4.cc index 2f90053fbb9..6d69ed2dc02 100644 --- a/libstdc++-v3/testsuite/22_locale/locale/cons/4.cc +++ b/libstdc++-v3/testsuite/22_locale/locale/cons/4.cc @@ -23,6 +23,7 @@ // 22.1.1.2 locale constructors and destructors [lib.locale.cons] #include <cwchar> // for mbstate_t +#include <cstdlib> #include <locale> #include <stdexcept> #include <testsuite_hooks.h> diff --git a/libstdc++-v3/testsuite/22_locale/locale/cons/5.cc b/libstdc++-v3/testsuite/22_locale/locale/cons/5.cc index b08b3466c08..85610958894 100644 --- a/libstdc++-v3/testsuite/22_locale/locale/cons/5.cc +++ b/libstdc++-v3/testsuite/22_locale/locale/cons/5.cc @@ -2,7 +2,8 @@ // 2000-09-13 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2000, 2001, 2002, 2003, 2005 Free Software Foundation +// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 +// 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 @@ -23,6 +24,7 @@ // 22.1.1.2 locale constructors and destructors [lib.locale.cons] #include <cwchar> // for mbstate_t +#include <cstdlib> #include <locale> #include <stdexcept> #include <testsuite_hooks.h> diff --git a/libstdc++-v3/testsuite/23_containers/deque/cons/assign/1.cc b/libstdc++-v3/testsuite/23_containers/deque/cons/assign/1.cc index df6c846064d..a9b0a4baee0 100644 --- a/libstdc++-v3/testsuite/23_containers/deque/cons/assign/1.cc +++ b/libstdc++-v3/testsuite/23_containers/deque/cons/assign/1.cc @@ -1,6 +1,6 @@ // 2005-12-12 Paolo Carlini <pcarlini@suse.de> // -// Copyright (C) 2005, 2006 Free Software Foundation, Inc. +// Copyright (C) 2005, 2006, 2007 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 @@ -21,6 +21,7 @@ // 23.2.1.1 deque constructors, copy, and assignment #include <deque> +#include <cstdlib> #include <testsuite_hooks.h> void test01() diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/4879.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/4879.cc index e976c370f8d..b726fff1dd7 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/4879.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/4879.cc @@ -1,7 +1,7 @@ // { dg-require-fork "" } // { dg-require-mkfifo "" } -// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 // Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free @@ -29,6 +29,7 @@ #include <fstream> #include <iostream> +#include <cstdlib> #include <unistd.h> #include <signal.h> #include <fcntl.h> diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/9964.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/9964.cc index 1b9c3ff90ec..53f70fab910 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/9964.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/9964.cc @@ -1,7 +1,7 @@ // { dg-require-fork "" } // { dg-require-mkfifo "" } -// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 // Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free @@ -28,6 +28,7 @@ // the non-portable functionality in the libstdc++-v3 IO library #include <fstream> +#include <cstdlib> #include <unistd.h> #include <signal.h> #include <fcntl.h> diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc index f1649580fec..ff71a17b883 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc @@ -2,7 +2,7 @@ // { dg-require-fork "" } // { dg-require-mkfifo "" } -// Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +// Copyright (C) 2003, 2004, 2005, 2006, 2007 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 @@ -24,6 +24,7 @@ #include <fstream> #include <locale> +#include <cstdlib> #include <sys/types.h> #include <sys/stat.h> diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc index 111f819f6e6..ef0a1561df3 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc @@ -4,7 +4,7 @@ // 2004-01-11 Petur Runolfsson <peturr02@ru.is> -// Copyright (C) 2004, 2005 Free Software Foundation, Inc. +// Copyright (C) 2004, 2005, 2006, 2007 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 @@ -26,6 +26,7 @@ #include <fstream> #include <locale> +#include <cstdlib> #include <unistd.h> #include <sys/types.h> diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc index 385888a3cdb..61d6cae4a73 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc @@ -4,7 +4,7 @@ // 2004-01-11 Petur Runolfsson <peturr02@ru.is> -// Copyright (C) 2004, 2005 Free Software Foundation, Inc. +// Copyright (C) 2004, 2005, 2006, 2007 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 @@ -26,6 +26,7 @@ #include <fstream> #include <locale> +#include <cstdlib> #include <unistd.h> #include <sys/types.h> diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc index 14cfde77fbd..1b3da5ad557 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc @@ -4,7 +4,7 @@ // 2004-04-16 Petur Runolfsson <peturr02@ru.is> -// Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc. +// Copyright (C) 2004, 2005, 2006, 2007 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 @@ -24,6 +24,7 @@ #include <fstream> #include <locale> +#include <cstdlib> #include <unistd.h> #include <signal.h> #include <fcntl.h> diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/26777.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/26777.cc index 9cc973315a5..9963b052bd1 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/26777.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/26777.cc @@ -3,7 +3,7 @@ // 2006-03-22 Paolo Carlini <pcarlini@suse.de> -// Copyright (C) 2006 Free Software Foundation, Inc. +// Copyright (C) 2006, 2007 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 @@ -27,6 +27,7 @@ #include <testsuite_hooks.h> #include <fstream> #include <sstream> +#include <cstdlib> #include <unistd.h> #include <signal.h> #include <fcntl.h> diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc index d9b91088654..106ecda8bba 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc @@ -1,7 +1,7 @@ // { dg-require-fork "" } // { dg-require-mkfifo "" } -// Copyright (C) 2003 Free Software Foundation, Inc. +// Copyright (C) 2003, 2004, 2005, 2006, 2007 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 @@ -27,6 +27,7 @@ #include <sys/types.h> #include <sys/stat.h> #include <fstream> +#include <cstdlib> #include <testsuite_hooks.h> // libstdc++/9533 diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/char/10097.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/char/10097.cc index ffc36a3fc07..83b2f2b8629 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/char/10097.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/char/10097.cc @@ -3,7 +3,7 @@ // 2001-05-21 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 // Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free @@ -25,6 +25,7 @@ // 27.8.1.4 Overridden virtual functions #include <fstream> +#include <cstdlib> #include <unistd.h> #include <signal.h> #include <fcntl.h> diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc index 0fa42e21c3c..370b18ccfdd 100644 --- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc +++ b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc @@ -1,6 +1,7 @@ // 1999-04-12 bkoz -// Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation, Inc. +// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 +// 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 @@ -23,6 +24,7 @@ #include <istream> #include <sstream> #include <locale> +#include <cstdlib> #include <testsuite_hooks.h> // In the presence of no fmtflags, the input operator should behave diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/char/4.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/char/4.cc index 9a1a71b8587..be2831df074 100644 --- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/char/4.cc +++ b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/char/4.cc @@ -1,6 +1,6 @@ // 2005-07-22 Paolo Carlini <pcarlini@suse.de> -// Copyright (C) 2005 Free Software Foundation +// Copyright (C) 2005, 2006, 2007 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 @@ -23,6 +23,7 @@ #include <istream> #include <string> #include <fstream> +#include <cstdlib> #include <testsuite_hooks.h> using namespace std; diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/wchar_t/4.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/wchar_t/4.cc index d4e0069163b..924f6d2dd1a 100644 --- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/wchar_t/4.cc +++ b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/wchar_t/4.cc @@ -1,6 +1,6 @@ // 2005-07-22 Paolo Carlini <pcarlini@suse.de> -// Copyright (C) 2005 Free Software Foundation +// Copyright (C) 2005, 2006, 2007 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 @@ -23,6 +23,7 @@ #include <istream> #include <string> #include <fstream> +#include <cstdlib> #include <testsuite_hooks.h> using namespace std; diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/getline/char/5.cc b/libstdc++-v3/testsuite/27_io/basic_istream/getline/char/5.cc index dccaa9f938b..1e57c0bd237 100644 --- a/libstdc++-v3/testsuite/27_io/basic_istream/getline/char/5.cc +++ b/libstdc++-v3/testsuite/27_io/basic_istream/getline/char/5.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2004 Free Software Foundation +// Copyright (C) 2004, 2005, 2006, 2007 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 @@ -21,6 +21,7 @@ #include <istream> #include <string> #include <fstream> +#include <cstdlib> #include <testsuite_hooks.h> using namespace std; diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/getline/wchar_t/5.cc b/libstdc++-v3/testsuite/27_io/basic_istream/getline/wchar_t/5.cc index 19cd94ff4a4..12cf727001f 100644 --- a/libstdc++-v3/testsuite/27_io/basic_istream/getline/wchar_t/5.cc +++ b/libstdc++-v3/testsuite/27_io/basic_istream/getline/wchar_t/5.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2004 Free Software Foundation +// Copyright (C) 2004, 2005, 2006, 2007 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 @@ -21,6 +21,7 @@ #include <istream> #include <string> #include <fstream> +#include <cstdlib> #include <testsuite_hooks.h> using namespace std; diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/ignore/char/2.cc b/libstdc++-v3/testsuite/27_io/basic_istream/ignore/char/2.cc index 1ed3a8435e3..9aa78a7e113 100644 --- a/libstdc++-v3/testsuite/27_io/basic_istream/ignore/char/2.cc +++ b/libstdc++-v3/testsuite/27_io/basic_istream/ignore/char/2.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2004 Free Software Foundation +// Copyright (C) 2004, 2005, 2006, 2007 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 @@ -22,6 +22,7 @@ #include <string> #include <fstream> #include <limits> +#include <cstdlib> #include <testsuite_hooks.h> using namespace std; diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/ignore/wchar_t/2.cc b/libstdc++-v3/testsuite/27_io/basic_istream/ignore/wchar_t/2.cc index 0107f87dcef..5f4309bcde2 100644 --- a/libstdc++-v3/testsuite/27_io/basic_istream/ignore/wchar_t/2.cc +++ b/libstdc++-v3/testsuite/27_io/basic_istream/ignore/wchar_t/2.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2004 Free Software Foundation +// Copyright (C) 2004, 2005, 2006, 2007 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 @@ -22,6 +22,7 @@ #include <string> #include <fstream> #include <limits> +#include <cstdlib> #include <testsuite_hooks.h> using namespace std; diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/seekp/char/2346-fstream.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/seekp/char/2346-fstream.cc index 7f4cd4c2799..7ae0a55d7de 100644 --- a/libstdc++-v3/testsuite/27_io/basic_ostream/seekp/char/2346-fstream.cc +++ b/libstdc++-v3/testsuite/27_io/basic_ostream/seekp/char/2346-fstream.cc @@ -1,6 +1,7 @@ // 2000-06-29 bkoz -// Copyright (C) 2000, 2001, 2002, 2003, 2004 Free Software Foundation +// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 +// 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 @@ -25,6 +26,7 @@ #include <ostream> #include <istream> #include <fstream> +#include <cstdlib> #include <testsuite_hooks.h> const char* s = " lootpack, peanut butter wolf, rob swift, madlib, quasimoto"; diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/seekp/wchar_t/2346-fstream.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/seekp/wchar_t/2346-fstream.cc index 2a698d3d3bb..1b80e4e01ed 100644 --- a/libstdc++-v3/testsuite/27_io/basic_ostream/seekp/wchar_t/2346-fstream.cc +++ b/libstdc++-v3/testsuite/27_io/basic_ostream/seekp/wchar_t/2346-fstream.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2005 Free Software Foundation +// Copyright (C) 2005, 2006, 2007 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 @@ -23,6 +23,7 @@ #include <ostream> #include <istream> #include <fstream> +#include <cstdlib> #include <testsuite_hooks.h> const wchar_t* s = L" lootpack, peanut butter wolf, rob swift, madlib, quasimoto"; diff --git a/libstdc++-v3/testsuite/27_io/objects/char/7.cc b/libstdc++-v3/testsuite/27_io/objects/char/7.cc index a90fa03a5b5..53162256be2 100644 --- a/libstdc++-v3/testsuite/27_io/objects/char/7.cc +++ b/libstdc++-v3/testsuite/27_io/objects/char/7.cc @@ -3,7 +3,7 @@ // 2003-04-26 Petur Runolfsson <peturr02@ru.is> -// Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +// Copyright (C) 2003, 2004, 2005, 2006, 2007 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 @@ -25,6 +25,7 @@ #include <fstream> #include <iostream> +#include <cstdlib> #include <unistd.h> #include <signal.h> #include <fcntl.h> diff --git a/libstdc++-v3/testsuite/27_io/objects/char/9661-1.cc b/libstdc++-v3/testsuite/27_io/objects/char/9661-1.cc index 47232826503..3bba3d84d44 100644 --- a/libstdc++-v3/testsuite/27_io/objects/char/9661-1.cc +++ b/libstdc++-v3/testsuite/27_io/objects/char/9661-1.cc @@ -3,7 +3,7 @@ // 2003-04-30 Petur Runolfsson <peturr02@ru.is> -// Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +// Copyright (C) 2003, 2004, 2005, 2006, 2007 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 @@ -26,6 +26,7 @@ #include <testsuite_hooks.h> #include <cstdio> +#include <cstdlib> #include <iostream> #include <unistd.h> #include <signal.h> diff --git a/libstdc++-v3/testsuite/27_io/objects/wchar_t/7.cc b/libstdc++-v3/testsuite/27_io/objects/wchar_t/7.cc index 1e962d7eda4..7240e8352d6 100644 --- a/libstdc++-v3/testsuite/27_io/objects/wchar_t/7.cc +++ b/libstdc++-v3/testsuite/27_io/objects/wchar_t/7.cc @@ -3,7 +3,7 @@ // 2003-05-01 Petur Runolfsson <peturr02@ru.is> -// Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +// Copyright (C) 2003, 2004, 2005, 2006, 2007 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 @@ -25,6 +25,7 @@ #include <fstream> #include <iostream> +#include <cstdlib> #include <unistd.h> #include <signal.h> #include <fcntl.h> diff --git a/libstdc++-v3/testsuite/27_io/objects/wchar_t/9661-1.cc b/libstdc++-v3/testsuite/27_io/objects/wchar_t/9661-1.cc index beee4046a21..21218975b72 100644 --- a/libstdc++-v3/testsuite/27_io/objects/wchar_t/9661-1.cc +++ b/libstdc++-v3/testsuite/27_io/objects/wchar_t/9661-1.cc @@ -3,7 +3,7 @@ // 2003-04-30 Petur Runolfsson <peturr02@ru.is> -// Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +// Copyright (C) 2003, 2004, 2005, 2006, 2007 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 @@ -26,6 +26,7 @@ #include <testsuite_hooks.h> #include <cstdio> +#include <cstdlib> #include <iostream> #include <unistd.h> #include <signal.h> diff --git a/libstdc++-v3/testsuite/ext/new_allocator/deallocate_global.cc b/libstdc++-v3/testsuite/ext/new_allocator/deallocate_global.cc index 170737db3f4..387e715704a 100644 --- a/libstdc++-v3/testsuite/ext/new_allocator/deallocate_global.cc +++ b/libstdc++-v3/testsuite/ext/new_allocator/deallocate_global.cc @@ -1,5 +1,5 @@ // -// Copyright (C) 2004, 2005 Free Software Foundation, Inc. +// Copyright (C) 2004, 2005, 2006, 2007 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 @@ -21,6 +21,7 @@ #include <string> #include <stdexcept> +#include <cstdlib> #include <ext/new_allocator.h> static size_t count; @@ -39,8 +40,8 @@ static count_check check; void* operator new(size_t size) throw(std::bad_alloc) { - printf("operator new is called \n"); - void* p = malloc(size); + std::printf("operator new is called \n"); + void* p = std::malloc(size); if (p == NULL) throw std::bad_alloc(); count++; @@ -49,7 +50,7 @@ void* operator new(size_t size) throw(std::bad_alloc) void operator delete(void* p) throw() { - printf("operator delete is called \n"); + std::printf("operator delete is called \n"); if (p == NULL) return; count--; diff --git a/libstdc++-v3/testsuite/ext/new_allocator/deallocate_local.cc b/libstdc++-v3/testsuite/ext/new_allocator/deallocate_local.cc index 6512f2e8ed1..572c34421fb 100644 --- a/libstdc++-v3/testsuite/ext/new_allocator/deallocate_local.cc +++ b/libstdc++-v3/testsuite/ext/new_allocator/deallocate_local.cc @@ -1,5 +1,5 @@ // -// Copyright (C) 2004, 2005 Free Software Foundation, Inc. +// Copyright (C) 2004, 2005, 2006, 2007 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 @@ -21,6 +21,7 @@ #include <string> #include <stdexcept> +#include <cstdlib> #include <ext/new_allocator.h> static size_t count; @@ -39,8 +40,8 @@ static count_check check; void* operator new(size_t size) throw(std::bad_alloc) { - printf("operator new is called \n"); - void* p = malloc(size); + std::printf("operator new is called \n"); + void* p = std::malloc(size); if (p == NULL) throw std::bad_alloc(); count++; @@ -49,7 +50,7 @@ void* operator new(size_t size) throw(std::bad_alloc) void operator delete(void* p) throw() { - printf("operator delete is called \n"); + std::printf("operator delete is called \n"); if (p == NULL) return; count--; diff --git a/libstdc++-v3/testsuite/ext/pb_ds/example/trie_dna.cc b/libstdc++-v3/testsuite/ext/pb_ds/example/trie_dna.cc index c1f23d524c4..63afba382ba 100644 --- a/libstdc++-v3/testsuite/ext/pb_ds/example/trie_dna.cc +++ b/libstdc++-v3/testsuite/ext/pb_ds/example/trie_dna.cc @@ -1,6 +1,6 @@ // -*- C++ -*- -// Copyright (C) 2005, 2006 Free Software Foundation, Inc. +// Copyright (C) 2005, 2006, 2007 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 terms @@ -52,6 +52,7 @@ #include <cassert> #include <iostream> +#include <cstdlib> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/trie_policy.hpp> @@ -102,7 +103,7 @@ public: case 'T': return 3; default: - abort(); + std::abort(); }; } }; diff --git a/libstdc++-v3/testsuite/performance/27_io/filebuf_sgetn_unbuf.cc b/libstdc++-v3/testsuite/performance/27_io/filebuf_sgetn_unbuf.cc index 16afbe5bef2..07c5163ac75 100644 --- a/libstdc++-v3/testsuite/performance/27_io/filebuf_sgetn_unbuf.cc +++ b/libstdc++-v3/testsuite/performance/27_io/filebuf_sgetn_unbuf.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2004 Free Software Foundation, Inc. +// Copyright (C) 2004, 2005, 2006, 2007 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 @@ -26,6 +26,7 @@ // the GNU General Public License. #include <cstdio> +#include <cstdlib> #include <fstream> #include <testsuite_performance.h> diff --git a/libstdc++-v3/testsuite/performance/27_io/ifstream_getline.cc b/libstdc++-v3/testsuite/performance/27_io/ifstream_getline.cc index b5eaddf3f70..ea4fab0b39c 100644 --- a/libstdc++-v3/testsuite/performance/27_io/ifstream_getline.cc +++ b/libstdc++-v3/testsuite/performance/27_io/ifstream_getline.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2003 Free Software Foundation, Inc. +// Copyright (C) 2003, 2004, 2005, 2006, 2007 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 @@ -26,6 +26,7 @@ // the GNU General Public License. #include <fstream> +#include <cstdlib> #include <testsuite_performance.h> // libstdc++/5001 (100,000 line input file) diff --git a/libstdc++-v3/testsuite/thread/pthread1.cc b/libstdc++-v3/testsuite/thread/pthread1.cc index f66c3c9e846..fc19378ef4d 100644 --- a/libstdc++-v3/testsuite/thread/pthread1.cc +++ b/libstdc++-v3/testsuite/thread/pthread1.cc @@ -31,6 +31,7 @@ // if the STL threading support is fubar'd). #include <list> +#include <cstdlib> #include <pthread.h> using namespace std; diff --git a/libstdc++-v3/testsuite/thread/pthread5.cc b/libstdc++-v3/testsuite/thread/pthread5.cc index 4d5aac4365b..fd3b483301c 100644 --- a/libstdc++-v3/testsuite/thread/pthread5.cc +++ b/libstdc++-v3/testsuite/thread/pthread5.cc @@ -28,6 +28,7 @@ #include <vector> #include <list> #include <string> +#include <cstdlib> #include <pthread.h> #ifdef _GLIBCXX_HAVE_UNISTD_H diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/thread/default_weaktoshared.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/thread/default_weaktoshared.cc index 5b17500165f..5149daa5b6d 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/thread/default_weaktoshared.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/thread/default_weaktoshared.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2006 Free Software Foundation +// Copyright (C) 2006, 2007 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 @@ -27,6 +27,7 @@ #include <vector> #include <testsuite_hooks.h> #include <iostream> +#include <cstdlib> #include <pthread.h> @@ -169,14 +170,14 @@ test01() { if (pthread_create(&threads[worker], &tattr, thread_hammer, reinterpret_cast<void*>(&weak_pool[worker]))) - abort(); + std::abort(); } // Wait for threads to complete, then check integrity of reference. void* status; for (unsigned int worker = 0; worker < HAMMER_MAX_THREADS; worker++) { if (pthread_join(threads[worker], &status)) - abort(); + std::abort(); } obj_pool.clear(); diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/thread/mutex_weaktoshared.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/thread/mutex_weaktoshared.cc index 370218a1136..0333b9f7754 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/thread/mutex_weaktoshared.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/thread/mutex_weaktoshared.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2006 Free Software Foundation +// Copyright (C) 2006, 2007 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 @@ -27,6 +27,7 @@ #include <vector> #include <testsuite_hooks.h> #include <iostream> +#include <cstdlib> #include <pthread.h> @@ -171,14 +172,14 @@ test01() { if (pthread_create(&threads[worker], &tattr, thread_hammer, reinterpret_cast<void*>(&weak_pool[worker]))) - abort(); + std::abort(); } // Wait for threads to complete, then check integrity of reference. void* status; for (unsigned int worker = 0; worker < HAMMER_MAX_THREADS; worker++) { if (pthread_join(threads[worker], &status)) - abort(); + std::abort(); } obj_pool.clear(); |