OSDN Git Service

2009-12-07 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Dec 2009 14:27:59 +0000 (14:27 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Dec 2009 14:27:59 +0000 (14:27 +0000)
PR libstdc++/42319
* include/parallel/losertree.h: Include bits/stl_function.h instead
of the whole <functional>.
* include/parallel/base.h: Likewise.
* include/parallel/numeric: Likewise.
* include/parallel/balanced_quicksort.h: Likewise.
* include/parallel/checkers.h: Likewise.
* testsuite/17_intro/headers/c++200x/42319.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155036 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/include/parallel/balanced_quicksort.h
libstdc++-v3/include/parallel/base.h
libstdc++-v3/include/parallel/checkers.h
libstdc++-v3/include/parallel/losertree.h
libstdc++-v3/include/parallel/numeric
libstdc++-v3/testsuite/17_intro/headers/c++200x/42319.cc [new file with mode: 0644]

index 7a8ab6d..29229d3 100644 (file)
@@ -1,3 +1,14 @@
+2009-12-07  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR libstdc++/42319
+       * include/parallel/losertree.h: Include bits/stl_function.h instead
+       of the whole <functional>.
+       * include/parallel/base.h: Likewise.
+       * include/parallel/numeric: Likewise.
+       * include/parallel/balanced_quicksort.h: Likewise.
+       * include/parallel/checkers.h: Likewise.
+       * testsuite/17_intro/headers/c++200x/42319.cc: New.
+
 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * Makefile.in: Regenerate.
index 4619415..6a6d03f 100644 (file)
 
 #include <parallel/basic_iterator.h>
 #include <bits/stl_algo.h>
+#include <bits/stl_function.h>
 
 #include <parallel/settings.h>
 #include <parallel/partition.h>
 #include <parallel/random_number.h>
 #include <parallel/queue.h>
-#include <functional>
 
 #if _GLIBCXX_ASSERTIONS
 #include <parallel/checkers.h>
index e67134c..75a8b75 100644 (file)
 #ifndef _GLIBCXX_PARALLEL_BASE_H
 #define _GLIBCXX_PARALLEL_BASE_H 1
 
-#include <functional>
+#include <bits/c++config.h>
+#include <bits/stl_function.h>
 #include <omp.h>
 #include <parallel/features.h>
 #include <parallel/basic_iterator.h>
 #include <parallel/parallel.h>
 
-
 // Parallel mode namespaces.
 
 /**
index 2a977ac..32507fd 100644 (file)
@@ -32,9 +32,9 @@
 #ifndef _GLIBCXX_PARALLEL_CHECKERS_H
 #define _GLIBCXX_PARALLEL_CHECKERS_H 1
 
-#include <functional>
 #include <cstdio>
 #include <bits/stl_algobase.h>
+#include <bits/stl_function.h>
 
 namespace __gnu_parallel
 {
index 425cf6d..a1c23e5 100644 (file)
@@ -32,9 +32,8 @@
 #ifndef _GLIBCXX_PARALLEL_LOSERTREE_H
 #define _GLIBCXX_PARALLEL_LOSERTREE_H 1
 
-#include <functional>
-
 #include <bits/stl_algobase.h>
+#include <bits/stl_function.h>
 #include <parallel/features.h>
 #include <parallel/base.h>
 
index 6c5607c..0fc6ddc 100644 (file)
@@ -39,7 +39,7 @@
 #define _GLIBCXX_PARALLEL_NUMERIC_H 1
 
 #include <numeric>
-#include <functional>
+#include <bits/stl_function.h>
 #include <parallel/numericfwd.h>
 #include <parallel/iterator.h>
 #include <parallel/for_each.h>
diff --git a/libstdc++-v3/testsuite/17_intro/headers/c++200x/42319.cc b/libstdc++-v3/testsuite/17_intro/headers/c++200x/42319.cc
new file mode 100644 (file)
index 0000000..729fca1
--- /dev/null
@@ -0,0 +1,22 @@
+// { dg-do compile }
+// { dg-options "-std=gnu++0x" }
+
+// Copyright (C) 2009 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 of the GNU General Public License as published by the
+// Free Software Foundation; either version 3, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING3.  If not see
+// <http://www.gnu.org/licenses/>.
+
+// libstdc++/42319
+#include <bits/char_traits.h>