This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[v3] Include <cstdlib> in some testcases


Hi,

noticed while playing with some additional tweaks for libstdc++/28080 without PCHs.

Tested x86-linux, committed to mainline.

Paolo.

///////////////////
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.
Index: testsuite/27_io/objects/wchar_t/9661-1.cc
===================================================================
--- testsuite/27_io/objects/wchar_t/9661-1.cc	(revision 122476)
+++ testsuite/27_io/objects/wchar_t/9661-1.cc	(working copy)
@@ -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>
Index: testsuite/27_io/objects/wchar_t/7.cc
===================================================================
--- testsuite/27_io/objects/wchar_t/7.cc	(revision 122476)
+++ testsuite/27_io/objects/wchar_t/7.cc	(working copy)
@@ -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>
Index: testsuite/27_io/objects/char/9661-1.cc
===================================================================
--- testsuite/27_io/objects/char/9661-1.cc	(revision 122476)
+++ testsuite/27_io/objects/char/9661-1.cc	(working copy)
@@ -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>
Index: testsuite/27_io/objects/char/7.cc
===================================================================
--- testsuite/27_io/objects/char/7.cc	(revision 122476)
+++ testsuite/27_io/objects/char/7.cc	(working copy)
@@ -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>
Index: testsuite/27_io/basic_istream/ignore/wchar_t/2.cc
===================================================================
--- testsuite/27_io/basic_istream/ignore/wchar_t/2.cc	(revision 122476)
+++ testsuite/27_io/basic_istream/ignore/wchar_t/2.cc	(working copy)
@@ -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;
Index: testsuite/27_io/basic_istream/ignore/char/2.cc
===================================================================
--- testsuite/27_io/basic_istream/ignore/char/2.cc	(revision 122476)
+++ testsuite/27_io/basic_istream/ignore/char/2.cc	(working copy)
@@ -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;
Index: testsuite/27_io/basic_istream/getline/wchar_t/5.cc
===================================================================
--- testsuite/27_io/basic_istream/getline/wchar_t/5.cc	(revision 122476)
+++ testsuite/27_io/basic_istream/getline/wchar_t/5.cc	(working copy)
@@ -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;
Index: testsuite/27_io/basic_istream/getline/char/5.cc
===================================================================
--- testsuite/27_io/basic_istream/getline/char/5.cc	(revision 122476)
+++ testsuite/27_io/basic_istream/getline/char/5.cc	(working copy)
@@ -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;
Index: testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc
===================================================================
--- testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc	(revision 122476)
+++ testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc	(working copy)
@@ -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
Index: testsuite/27_io/basic_istream/extractors_character/wchar_t/4.cc
===================================================================
--- testsuite/27_io/basic_istream/extractors_character/wchar_t/4.cc	(revision 122476)
+++ testsuite/27_io/basic_istream/extractors_character/wchar_t/4.cc	(working copy)
@@ -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;
Index: testsuite/27_io/basic_istream/extractors_character/char/4.cc
===================================================================
--- testsuite/27_io/basic_istream/extractors_character/char/4.cc	(revision 122476)
+++ testsuite/27_io/basic_istream/extractors_character/char/4.cc	(working copy)
@@ -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;
Index: testsuite/27_io/basic_ostream/seekp/wchar_t/2346-fstream.cc
===================================================================
--- testsuite/27_io/basic_ostream/seekp/wchar_t/2346-fstream.cc	(revision 122476)
+++ testsuite/27_io/basic_ostream/seekp/wchar_t/2346-fstream.cc	(working copy)
@@ -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";
Index: testsuite/27_io/basic_ostream/seekp/char/2346-fstream.cc
===================================================================
--- testsuite/27_io/basic_ostream/seekp/char/2346-fstream.cc	(revision 122476)
+++ testsuite/27_io/basic_ostream/seekp/char/2346-fstream.cc	(working copy)
@@ -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";
Index: testsuite/27_io/basic_filebuf/seekoff/char/26777.cc
===================================================================
--- testsuite/27_io/basic_filebuf/seekoff/char/26777.cc	(revision 122476)
+++ testsuite/27_io/basic_filebuf/seekoff/char/26777.cc	(working copy)
@@ -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>
Index: testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc
===================================================================
--- testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc	(revision 122476)
+++ testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc	(working copy)
@@ -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>
Index: testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc
===================================================================
--- testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc	(revision 122476)
+++ testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc	(working copy)
@@ -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>
Index: testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc
===================================================================
--- testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc	(revision 122476)
+++ testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc	(working copy)
@@ -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>
Index: testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc
===================================================================
--- testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc	(revision 122476)
+++ testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc	(working copy)
@@ -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>
Index: testsuite/27_io/basic_filebuf/close/char/4879.cc
===================================================================
--- testsuite/27_io/basic_filebuf/close/char/4879.cc	(revision 122476)
+++ testsuite/27_io/basic_filebuf/close/char/4879.cc	(working copy)
@@ -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>
Index: testsuite/27_io/basic_filebuf/close/char/9964.cc
===================================================================
--- testsuite/27_io/basic_filebuf/close/char/9964.cc	(revision 122476)
+++ testsuite/27_io/basic_filebuf/close/char/9964.cc	(working copy)
@@ -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>
Index: testsuite/27_io/basic_filebuf/underflow/char/10097.cc
===================================================================
--- testsuite/27_io/basic_filebuf/underflow/char/10097.cc	(revision 122476)
+++ testsuite/27_io/basic_filebuf/underflow/char/10097.cc	(working copy)
@@ -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>
Index: testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc
===================================================================
--- testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc	(revision 122476)
+++ testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc	(working copy)
@@ -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
Index: testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc
===================================================================
--- testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc	(revision 122476)
+++ testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc	(working copy)
@@ -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;
Index: testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc
===================================================================
--- testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc	(revision 122476)
+++ testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc	(working copy)
@@ -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;
Index: testsuite/21_strings/basic_string/inserters_extractors/char/10.cc
===================================================================
--- testsuite/21_strings/basic_string/inserters_extractors/char/10.cc	(revision 122476)
+++ testsuite/21_strings/basic_string/inserters_extractors/char/10.cc	(working copy)
@@ -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;
Index: testsuite/21_strings/basic_string/inserters_extractors/char/11.cc
===================================================================
--- testsuite/21_strings/basic_string/inserters_extractors/char/11.cc	(revision 122476)
+++ testsuite/21_strings/basic_string/inserters_extractors/char/11.cc	(working copy)
@@ -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;
Index: testsuite/ext/pb_ds/example/trie_dna.cc
===================================================================
--- testsuite/ext/pb_ds/example/trie_dna.cc	(revision 122476)
+++ testsuite/ext/pb_ds/example/trie_dna.cc	(working copy)
@@ -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 @@
       case 'T':
 	return 3;
       default:
-	abort();
+	std::abort();
       };
   }
 };
Index: testsuite/ext/new_allocator/deallocate_global.cc
===================================================================
--- testsuite/ext/new_allocator/deallocate_global.cc	(revision 122476)
+++ testsuite/ext/new_allocator/deallocate_global.cc	(working copy)
@@ -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 @@
 
 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 delete(void* p) throw()
 {
-  printf("operator delete is called \n");
+  std::printf("operator delete is called \n");
   if (p == NULL)
     return;
   count--;
Index: testsuite/ext/new_allocator/deallocate_local.cc
===================================================================
--- testsuite/ext/new_allocator/deallocate_local.cc	(revision 122476)
+++ testsuite/ext/new_allocator/deallocate_local.cc	(working copy)
@@ -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 @@
 
 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 delete(void* p) throw()
 {
-  printf("operator delete is called \n");
+  std::printf("operator delete is called \n");
   if (p == NULL)
     return;
   count--;
Index: testsuite/performance/27_io/filebuf_sgetn_unbuf.cc
===================================================================
--- testsuite/performance/27_io/filebuf_sgetn_unbuf.cc	(revision 122476)
+++ testsuite/performance/27_io/filebuf_sgetn_unbuf.cc	(working copy)
@@ -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>
 
Index: testsuite/performance/27_io/ifstream_getline.cc
===================================================================
--- testsuite/performance/27_io/ifstream_getline.cc	(revision 122476)
+++ testsuite/performance/27_io/ifstream_getline.cc	(working copy)
@@ -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)
Index: testsuite/22_locale/locale/cons/4.cc
===================================================================
--- testsuite/22_locale/locale/cons/4.cc	(revision 122476)
+++ testsuite/22_locale/locale/cons/4.cc	(working copy)
@@ -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>
Index: testsuite/22_locale/locale/cons/5.cc
===================================================================
--- testsuite/22_locale/locale/cons/5.cc	(revision 122476)
+++ testsuite/22_locale/locale/cons/5.cc	(working copy)
@@ -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>
Index: testsuite/tr1/2_general_utilities/shared_ptr/thread/mutex_weaktoshared.cc
===================================================================
--- testsuite/tr1/2_general_utilities/shared_ptr/thread/mutex_weaktoshared.cc	(revision 122476)
+++ testsuite/tr1/2_general_utilities/shared_ptr/thread/mutex_weaktoshared.cc	(working copy)
@@ -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 @@
     {
       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();
   
Index: testsuite/tr1/2_general_utilities/shared_ptr/thread/default_weaktoshared.cc
===================================================================
--- testsuite/tr1/2_general_utilities/shared_ptr/thread/default_weaktoshared.cc	(revision 122476)
+++ testsuite/tr1/2_general_utilities/shared_ptr/thread/default_weaktoshared.cc	(working copy)
@@ -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 @@
     {
       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();
   
Index: testsuite/thread/pthread5.cc
===================================================================
--- testsuite/thread/pthread5.cc	(revision 122478)
+++ testsuite/thread/pthread5.cc	(working copy)
@@ -28,6 +28,7 @@
 #include <vector>
 #include <list>
 #include <string>
+#include <cstdlib>
 #include <pthread.h>
 
 #ifdef _GLIBCXX_HAVE_UNISTD_H
Index: testsuite/thread/pthread1.cc
===================================================================
--- testsuite/thread/pthread1.cc	(revision 122478)
+++ testsuite/thread/pthread1.cc	(working copy)
@@ -31,6 +31,7 @@
 // if the STL threading support is fubar'd).
 
 #include <list>
+#include <cstdlib>
 #include <pthread.h>
 
 using namespace std;
Index: testsuite/23_containers/deque/cons/assign/1.cc
===================================================================
--- testsuite/23_containers/deque/cons/assign/1.cc	(revision 122476)
+++ testsuite/23_containers/deque/cons/assign/1.cc	(working copy)
@@ -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()

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]