PR libstdc++/28080 (partial)
* include/bits/stl_algobase.h: Do not include <cstdlib>.
* src/localename.cc: Do it here.
* src/ctype.cc: Likewise.
* include/ext/pb_ds/detail/map_debug_base.hpp: Likewise.
* include/ext/pb_ds/exception.hpp: Likewise.
* include/ext/pb_ds/list_update_policy.hpp: Likewise.
* include/bits/stl_algo.h: Likewise.
* include/tr1/random: Likewise.
* testsuite/util/testsuite_hooks.cc: Likewise.
* testsuite/util/testsuite_abi_check.cc: Likewise.
* testsuite/util/testsuite_abi.cc: Likewise.
* testsuite/util/performance/assoc/timing/
tree_order_statistics_test.hpp: Likewise.
* config/locale/darwin/ctype_members.cc: Likewise.
* config/locale/gnu/c++locale_internal.h: Likewise.
* config/locale/generic/ctype_members.cc: Likewise.
* config/locale/generic/time_members.cc: Likewise.
* include/ext/pb_ds/detail/resize_policy/
hash_load_check_resize_trigger_imp.hpp: Qualify abort.
* testsuite/util/performance/assoc/timing/
multimap_find_test.hpp: Likewise.
* include/std/valarray: Do include <cstdlib>.
* include/tr1/hashtable: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122628
138bc75d-0d04-0410-961f-
82ee72b054a4
+2007-03-06 Paolo Carlini <pcarlini@suse.de>
+
+ PR libstdc++/28080 (partial)
+ * include/bits/stl_algobase.h: Do not include <cstdlib>.
+ * src/localename.cc: Do it here.
+ * src/ctype.cc: Likewise.
+ * include/ext/pb_ds/detail/map_debug_base.hpp: Likewise.
+ * include/ext/pb_ds/exception.hpp: Likewise.
+ * include/ext/pb_ds/list_update_policy.hpp: Likewise.
+ * include/bits/stl_algo.h: Likewise.
+ * include/tr1/random: Likewise.
+ * testsuite/util/testsuite_hooks.cc: Likewise.
+ * testsuite/util/testsuite_abi_check.cc: Likewise.
+ * testsuite/util/testsuite_abi.cc: Likewise.
+ * testsuite/util/performance/assoc/timing/
+ tree_order_statistics_test.hpp: Likewise.
+ * config/locale/darwin/ctype_members.cc: Likewise.
+ * config/locale/gnu/c++locale_internal.h: Likewise.
+ * config/locale/generic/ctype_members.cc: Likewise.
+ * config/locale/generic/time_members.cc: Likewise.
+
+ * include/ext/pb_ds/detail/resize_policy/
+ hash_load_check_resize_trigger_imp.hpp: Qualify abort.
+ * testsuite/util/performance/assoc/timing/
+ multimap_find_test.hpp: Likewise.
+ * include/std/valarray: Do include <cstdlib>.
+ * include/tr1/hashtable: Likewise.
+
2007-03-05 Joseph Myers <joseph@codesourcery.com>
PR libstdc++/30675
#include <locale>
#include <bits/c++locale_internal.h>
+#include <cstdlib>
namespace std
{
// Written by Benjamin Kosnik <bkoz@redhat.com>
#include <locale>
+#include <cstdlib>
_GLIBCXX_BEGIN_NAMESPACE(std)
// std::time_get, std::time_put implementation, generic version -*- C++ -*-
-// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
+// 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
// software; you can redistribute it and/or modify it under the
// Written by Benjamin Kosnik <bkoz@redhat.com>
#include <locale>
+#include <cstdlib>
_GLIBCXX_BEGIN_NAMESPACE(std)
// Prototypes for GLIBC thread locale __-prefixed functions -*- C++ -*-
-// Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc.
+// Copyright (C) 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
#include <bits/c++config.h>
#include <clocale>
+#include <cstdlib>
#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
// Algorithm implementation -*- C++ -*-
-// 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
#include <bits/stl_heap.h>
#include <bits/stl_tempbuf.h> // for _Temporary_buffer
+#include <cstdlib> // for rand
#include <debug/debug.h>
// See concept_check.h for the __glibcxx_*_requires macros.
#include <bits/c++config.h>
#include <cstring>
#include <cwchar>
-#include <cstdlib>
#include <cstddef>
#include <bits/functexcept.h>
#include <bits/stl_pair.h>
// -*- 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
#include <list>
#include <utility>
+#include <cstdlib>
#include <ext/throw_allocator.h>
#include <debug/debug.h>
if (find(r_key) != m_key_set.end())
{
std::cerr << "insert_new " << r_key << std::endl;
- abort();
+ std::abort();
}
try
catch(...)
{
std::cerr << "insert_new 1" << r_key << std::endl;
- abort();
+ std::abort();
}
alloc.set_throw_prob(orig_throw_prob);
_GLIBCXX_DEBUG_ONLY(assert_valid();)
if (it == m_key_set.end())
{
std::cerr << "erase_existing " << r_key << std::endl;
- abort();
+ std::abort();
}
m_key_set.erase(it);
_GLIBCXX_DEBUG_ONLY(assert_valid();)
if (find(r_key) == m_key_set.end())
{
std::cerr << "check_key_exists " << r_key << std::endl;
- abort();
+ std::abort();
}
_GLIBCXX_DEBUG_ONLY(assert_valid();)
}
if (find(r_key) != m_key_set.end())
{
std::cerr << "check_key_does_not_exist " << r_key << std::endl;
- abort();
+ std::abort();
}
}
{
std::cerr << "check_size " << size
<< " " << key_set_size << std::endl;
- abort();
+ std::abort();
}
_GLIBCXX_DEBUG_ONLY(assert_valid();)
}
void
PB_DS_CLASS_C_DEC::
do_resize(size_type)
-{ abort(); }
+{ std::abort(); }
#ifdef _GLIBCXX_DEBUG
PB_DS_CLASS_T_DEC
// -*- 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
#define PB_DS_EXCEPTION_HPP
#include <stdexcept>
+#include <cstdlib>
namespace pb_ds
{
// -*- 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
#ifndef PB_DS_LU_POLICY_HPP
#define PB_DS_LU_POLICY_HPP
+#include <cstdlib>
#include <ext/pb_ds/detail/list_update_policy/counter_lu_metadata.hpp>
namespace pb_ds
#include <bits/c++config.h>
#include <cstddef>
#include <cmath>
-#include <cstdlib>
#include <algorithm>
#include <debug/debug.h>
#include <memory>
#include <iterator>
#include <cstddef>
-#include <cstdlib>
#include <cmath>
#include <bits/functexcept.h>
#include <tr1/type_traits> // For true_type and false_type
#include <cmath>
#include <cstdio>
+#include <cstdlib>
#include <string>
#include <iosfwd>
#include <limits>
// the GNU General Public License.
#include <locale>
+#include <cstdlib>
_GLIBCXX_BEGIN_NAMESPACE(std)
// XXX At some point, just rename this file to ctype_configure_char.cc
// and compile it as a separate file instead of including it here.
// Platform-specific initialization code for ctype tables.
- #include <bits/ctype_noninline.h>
+#include <bits/ctype_noninline.h>
const size_t ctype<char>::table_size;
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+// Copyright (C) 1997, 1998, 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
#include <clocale>
#include <cstring>
+#include <cstdlib>
#include <locale>
_GLIBCXX_BEGIN_NAMESPACE(std)
// -*- 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
}
if (not_found_count != 0)
- abort();
+ std::abort();
}
private:
}
if (not_found_count != 0)
- abort();
+ std::abort();
}
private:
#include <common_type/assoc/string_form.hpp>
#include <ext/pb_ds/detail/type_utils.hpp>
#include <iterator>
+#include <cstdlib>
namespace pb_ds
{
const size_t max_size = m_r_container.size();
while (it != e)
if (m_r_container.order_of_key(*(it++)) > max_size)
- abort();
+ std::abort();
}
}
{
const_iterator f_it = m_r_container.find(*(it++));
if (static_cast<size_t>(std::distance(b, f_it)) > max_size)
- abort();
+ std::abort();
}
}
}
#include <sstream>
#include <fstream>
#include <iostream>
+#include <cstdlib>
using namespace std;
// -*- C++ -*-
-// Copyright (C) 2004 Free Software Foundation, Inc.
+// Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as
#include "testsuite_abi.h"
#include <iostream>
+#include <cstdlib>
#include <unistd.h> // for access(2)
int
#include <stdexcept>
#include <cstddef>
#include <clocale>
+#include <cstdlib>
#include <locale>
#include <cxxabi.h>