From: paolo Date: Tue, 6 Mar 2007 17:43:27 +0000 (+0000) Subject: 2007-03-06 Paolo Carlini X-Git-Tag: upstream/4.9.2~49986 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6f020cc13bf16672487b4f5aa5515b6a14ff79a6;p=platform%2Fupstream%2Flinaro-gcc.git 2007-03-06 Paolo Carlini PR libstdc++/28080 (partial) * include/bits/stl_algobase.h: Do not include . * 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 . * include/tr1/hashtable: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122628 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 5e0a87f..c4b2fb0 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,31 @@ +2007-03-06 Paolo Carlini + + PR libstdc++/28080 (partial) + * include/bits/stl_algobase.h: Do not include . + * 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 . + * include/tr1/hashtable: Likewise. + 2007-03-05 Joseph Myers PR libstdc++/30675 diff --git a/libstdc++-v3/config/locale/darwin/ctype_members.cc b/libstdc++-v3/config/locale/darwin/ctype_members.cc index 813ec79..b50bd35 100644 --- a/libstdc++-v3/config/locale/darwin/ctype_members.cc +++ b/libstdc++-v3/config/locale/darwin/ctype_members.cc @@ -36,6 +36,7 @@ #include #include +#include namespace std { diff --git a/libstdc++-v3/config/locale/generic/ctype_members.cc b/libstdc++-v3/config/locale/generic/ctype_members.cc index 0520c22..3c7209d 100644 --- a/libstdc++-v3/config/locale/generic/ctype_members.cc +++ b/libstdc++-v3/config/locale/generic/ctype_members.cc @@ -35,6 +35,7 @@ // Written by Benjamin Kosnik #include +#include _GLIBCXX_BEGIN_NAMESPACE(std) diff --git a/libstdc++-v3/config/locale/generic/time_members.cc b/libstdc++-v3/config/locale/generic/time_members.cc index dbb12ae..b8ebb74 100644 --- a/libstdc++-v3/config/locale/generic/time_members.cc +++ b/libstdc++-v3/config/locale/generic/time_members.cc @@ -1,6 +1,7 @@ // 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 @@ -35,6 +36,7 @@ // Written by Benjamin Kosnik #include +#include _GLIBCXX_BEGIN_NAMESPACE(std) diff --git a/libstdc++-v3/config/locale/gnu/c++locale_internal.h b/libstdc++-v3/config/locale/gnu/c++locale_internal.h index 0d6e9c2..6f9b535 100644 --- a/libstdc++-v3/config/locale/gnu/c++locale_internal.h +++ b/libstdc++-v3/config/locale/gnu/c++locale_internal.h @@ -1,6 +1,7 @@ // 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 @@ -36,6 +37,7 @@ #include #include +#include #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) diff --git a/libstdc++-v3/include/bits/stl_algo.h b/libstdc++-v3/include/bits/stl_algo.h index 75a89b7..9e060b5 100644 --- a/libstdc++-v3/include/bits/stl_algo.h +++ b/libstdc++-v3/include/bits/stl_algo.h @@ -1,6 +1,6 @@ // 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 @@ -64,6 +64,7 @@ #include #include // for _Temporary_buffer +#include // for rand #include // See concept_check.h for the __glibcxx_*_requires macros. diff --git a/libstdc++-v3/include/bits/stl_algobase.h b/libstdc++-v3/include/bits/stl_algobase.h index a6d155a..5e63feb 100644 --- a/libstdc++-v3/include/bits/stl_algobase.h +++ b/libstdc++-v3/include/bits/stl_algobase.h @@ -65,7 +65,6 @@ #include #include #include -#include #include #include #include diff --git a/libstdc++-v3/include/ext/pb_ds/detail/map_debug_base.hpp b/libstdc++-v3/include/ext/pb_ds/detail/map_debug_base.hpp index d31a0c2..95c164a 100644 --- a/libstdc++-v3/include/ext/pb_ds/detail/map_debug_base.hpp +++ b/libstdc++-v3/include/ext/pb_ds/detail/map_debug_base.hpp @@ -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 @@ -51,6 +51,7 @@ #include #include +#include #include #include @@ -157,7 +158,7 @@ namespace pb_ds if (find(r_key) != m_key_set.end()) { std::cerr << "insert_new " << r_key << std::endl; - abort(); + std::abort(); } try @@ -167,7 +168,7 @@ namespace pb_ds 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();) @@ -183,7 +184,7 @@ namespace pb_ds 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();) @@ -208,7 +209,7 @@ namespace pb_ds 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();) } @@ -222,7 +223,7 @@ namespace pb_ds if (find(r_key) != m_key_set.end()) { std::cerr << "check_key_does_not_exist " << r_key << std::endl; - abort(); + std::abort(); } } @@ -237,7 +238,7 @@ namespace pb_ds { std::cerr << "check_size " << size << " " << key_set_size << std::endl; - abort(); + std::abort(); } _GLIBCXX_DEBUG_ONLY(assert_valid();) } diff --git a/libstdc++-v3/include/ext/pb_ds/detail/resize_policy/hash_load_check_resize_trigger_imp.hpp b/libstdc++-v3/include/ext/pb_ds/detail/resize_policy/hash_load_check_resize_trigger_imp.hpp index 1bae019..aa29e07 100644 --- a/libstdc++-v3/include/ext/pb_ds/detail/resize_policy/hash_load_check_resize_trigger_imp.hpp +++ b/libstdc++-v3/include/ext/pb_ds/detail/resize_policy/hash_load_check_resize_trigger_imp.hpp @@ -280,7 +280,7 @@ PB_DS_CLASS_T_DEC void PB_DS_CLASS_C_DEC:: do_resize(size_type) -{ abort(); } +{ std::abort(); } #ifdef _GLIBCXX_DEBUG PB_DS_CLASS_T_DEC diff --git a/libstdc++-v3/include/ext/pb_ds/exception.hpp b/libstdc++-v3/include/ext/pb_ds/exception.hpp index 896ff39..379623d 100644 --- a/libstdc++-v3/include/ext/pb_ds/exception.hpp +++ b/libstdc++-v3/include/ext/pb_ds/exception.hpp @@ -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 @@ -48,6 +48,7 @@ #define PB_DS_EXCEPTION_HPP #include +#include namespace pb_ds { diff --git a/libstdc++-v3/include/ext/pb_ds/list_update_policy.hpp b/libstdc++-v3/include/ext/pb_ds/list_update_policy.hpp index cfe2a2c..876ea3e 100644 --- a/libstdc++-v3/include/ext/pb_ds/list_update_policy.hpp +++ b/libstdc++-v3/include/ext/pb_ds/list_update_policy.hpp @@ -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 @@ -47,6 +47,7 @@ #ifndef PB_DS_LU_POLICY_HPP #define PB_DS_LU_POLICY_HPP +#include #include namespace pb_ds diff --git a/libstdc++-v3/include/std/valarray b/libstdc++-v3/include/std/valarray index b23c867..4898c15 100644 --- a/libstdc++-v3/include/std/valarray +++ b/libstdc++-v3/include/std/valarray @@ -43,7 +43,6 @@ #include #include #include -#include #include #include diff --git a/libstdc++-v3/include/tr1/hashtable b/libstdc++-v3/include/tr1/hashtable index d6115dd..cc53c4c 100644 --- a/libstdc++-v3/include/tr1/hashtable +++ b/libstdc++-v3/include/tr1/hashtable @@ -56,7 +56,6 @@ #include #include #include -#include #include #include #include // For true_type and false_type diff --git a/libstdc++-v3/include/tr1/random b/libstdc++-v3/include/tr1/random index bfdd901..907a100 100644 --- a/libstdc++-v3/include/tr1/random +++ b/libstdc++-v3/include/tr1/random @@ -37,6 +37,7 @@ #include #include +#include #include #include #include diff --git a/libstdc++-v3/src/ctype.cc b/libstdc++-v3/src/ctype.cc index 71bf1e1..4a2e896 100644 --- a/libstdc++-v3/src/ctype.cc +++ b/libstdc++-v3/src/ctype.cc @@ -28,6 +28,7 @@ // the GNU General Public License. #include +#include _GLIBCXX_BEGIN_NAMESPACE(std) @@ -74,7 +75,7 @@ _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 +#include const size_t ctype::table_size; diff --git a/libstdc++-v3/src/localename.cc b/libstdc++-v3/src/localename.cc index ff8c369..5394d9a 100644 --- a/libstdc++-v3/src/localename.cc +++ b/libstdc++-v3/src/localename.cc @@ -1,4 +1,5 @@ -// 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 @@ -28,6 +29,7 @@ #include #include +#include #include _GLIBCXX_BEGIN_NAMESPACE(std) diff --git a/libstdc++-v3/testsuite/util/performance/assoc/timing/multimap_find_test.hpp b/libstdc++-v3/testsuite/util/performance/assoc/timing/multimap_find_test.hpp index 5f64ebb..019a32d 100644 --- a/libstdc++-v3/testsuite/util/performance/assoc/timing/multimap_find_test.hpp +++ b/libstdc++-v3/testsuite/util/performance/assoc/timing/multimap_find_test.hpp @@ -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 @@ -84,7 +84,7 @@ namespace pb_ds } if (not_found_count != 0) - abort(); + std::abort(); } private: @@ -116,7 +116,7 @@ namespace pb_ds } if (not_found_count != 0) - abort(); + std::abort(); } private: diff --git a/libstdc++-v3/testsuite/util/performance/assoc/timing/tree_order_statistics_test.hpp b/libstdc++-v3/testsuite/util/performance/assoc/timing/tree_order_statistics_test.hpp index b1e88f7..fb9b2c0 100644 --- a/libstdc++-v3/testsuite/util/performance/assoc/timing/tree_order_statistics_test.hpp +++ b/libstdc++-v3/testsuite/util/performance/assoc/timing/tree_order_statistics_test.hpp @@ -52,6 +52,7 @@ #include #include #include +#include namespace pb_ds { @@ -84,7 +85,7 @@ 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(); } } @@ -113,7 +114,7 @@ namespace pb_ds { const_iterator f_it = m_r_container.find(*(it++)); if (static_cast(std::distance(b, f_it)) > max_size) - abort(); + std::abort(); } } } diff --git a/libstdc++-v3/testsuite/util/testsuite_abi.cc b/libstdc++-v3/testsuite/util/testsuite_abi.cc index 0949e30..ffd88c4 100644 --- a/libstdc++-v3/testsuite/util/testsuite_abi.cc +++ b/libstdc++-v3/testsuite/util/testsuite_abi.cc @@ -33,6 +33,7 @@ #include #include #include +#include using namespace std; diff --git a/libstdc++-v3/testsuite/util/testsuite_abi_check.cc b/libstdc++-v3/testsuite/util/testsuite_abi_check.cc index 12e882a..86982b7 100644 --- a/libstdc++-v3/testsuite/util/testsuite_abi_check.cc +++ b/libstdc++-v3/testsuite/util/testsuite_abi_check.cc @@ -1,6 +1,6 @@ // -*- 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 @@ -33,6 +33,7 @@ #include "testsuite_abi.h" #include +#include #include // for access(2) int diff --git a/libstdc++-v3/testsuite/util/testsuite_hooks.cc b/libstdc++-v3/testsuite/util/testsuite_hooks.cc index 50347f8..6ea82f3 100644 --- a/libstdc++-v3/testsuite/util/testsuite_hooks.cc +++ b/libstdc++-v3/testsuite/util/testsuite_hooks.cc @@ -43,6 +43,7 @@ #include #include #include +#include #include #include