From 4232f9fd1801d1d276460f0228ba0d75fc5e2927 Mon Sep 17 00:00:00 2001 From: Benjamin Kosnik Date: Mon, 5 Oct 2009 00:13:36 +0000 Subject: [PATCH] using.xml: Add profile headers. 2009-10-04 Benjamin Kosnik * doc/xml/manual/using.xml: Add profile headers. * testsuite/ext/profile/mh.cc: Restrict to linux. From-SVN: r152439 --- libstdc++-v3/ChangeLog | 26 +++++++++++++-------- libstdc++-v3/doc/xml/manual/using.xml | 29 ++++++++++++++++++++++++ libstdc++-v3/testsuite/ext/profile/mh.cc | 9 ++++---- 3 files changed, 50 insertions(+), 14 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index a68aec525e9..d1418e3efa4 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,4 +1,10 @@ +2009-10-04 Benjamin Kosnik + + * doc/xml/manual/using.xml: Add profile headers. + * testsuite/ext/profile/mh.cc: Restrict to linux. + 2009-10-02 Silvius Rus + * configure: Add check for execinfo.h. * config.h.in: Add undef for HAVE_EXECINFO_H. * include/Makefile.am: Add build support for profile mode. @@ -27,7 +33,7 @@ * include/profile/impl/profiler_trace.h: Same. * include/profile/impl/profiler_vector_size.h: Same. * include/profile/impl/profiler_vector_to_list.h: Same. - * include/std/vector: Include corresponding profile header guarded by + * include/std/vector: Include corresponding profile header guarded by _GLIBCXX_PROFILE. * include/std/deque: Same. * include/std/list: Same. @@ -61,15 +67,15 @@ 2009-10-02 Johannes Singler - * include/parallel/base.h: Take integer types from . - * include/parallel/compatibility.h: Likewise. - * include/parallel/multiseq_selection.h: Likewise. - * include/parallel/random_shuffle.h: Likewise. - * include/parallel/random_number.h: Likewise; - use numeric_limits<>::digit instead of sizeof()*8. - * include/parallel/types.h: Likewise. - * doc/html/manual/bk01pt12ch31s03.html: - Document dependency on stdint.h. + * include/parallel/base.h: Take integer types from . + * include/parallel/compatibility.h: Likewise. + * include/parallel/multiseq_selection.h: Likewise. + * include/parallel/random_shuffle.h: Likewise. + * include/parallel/random_number.h: Likewise; + use numeric_limits<>::digit instead of sizeof()*8. + * include/parallel/types.h: Likewise. + * doc/html/manual/bk01pt12ch31s03.html: + Document dependency on stdint.h. 2009-10-01 Phil Muldoon diff --git a/libstdc++-v3/doc/xml/manual/using.xml b/libstdc++-v3/doc/xml/manual/using.xml index a32cdb1cd93..f1718b9641a 100644 --- a/libstdc++-v3/doc/xml/manual/using.xml +++ b/libstdc++-v3/doc/xml/manual/using.xml @@ -542,6 +542,35 @@ mode, i.e. -std=c++0x or -std=gnu++0x. + +Extension Profile Headers + + + + + + + + +profile/bitset +profile/deque +profile/list +profile/map + + + +profile/set +profile/unordered_map +profile/unordered_set +profile/vector + + + + +
+ + + Extension Parallel Headers diff --git a/libstdc++-v3/testsuite/ext/profile/mh.cc b/libstdc++-v3/testsuite/ext/profile/mh.cc index dc910949867..44a667c0442 100644 --- a/libstdc++-v3/testsuite/ext/profile/mh.cc +++ b/libstdc++-v3/testsuite/ext/profile/mh.cc @@ -1,3 +1,6 @@ +// { dg-options "-D_GLIBCXX_PROFILE" } +// { dg-do compile { target *-*-linux* } } + // -*- C++ -*- // Copyright (C) 2006, 2007, 2009 Free Software Foundation, Inc. @@ -17,9 +20,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-D_GLIBCXX_PROFILE" } -// { dg-do compile } - #include #include #include @@ -58,7 +58,8 @@ my_malloc_hook (size_t size, const void *caller) } -int main() { +int main() +{ int* test = (int*) malloc(sizeof(int)); *test = 1; return *test; -- 2.30.2