mirror of git://gcc.gnu.org/git/gcc.git
using.xml: Add profile headers.
2009-10-04 Benjamin Kosnik <bkoz@redhat.com> * doc/xml/manual/using.xml: Add profile headers. * testsuite/ext/profile/mh.cc: Restrict to linux. From-SVN: r152439
This commit is contained in:
parent
e5dd62e242
commit
4232f9fd18
|
@ -1,4 +1,10 @@
|
|||
2009-10-04 Benjamin Kosnik <bkoz@redhat.com>
|
||||
|
||||
* doc/xml/manual/using.xml: Add profile headers.
|
||||
* testsuite/ext/profile/mh.cc: Restrict to linux.
|
||||
|
||||
2009-10-02 Silvius Rus <silvius.rus@gmail.com>
|
||||
|
||||
* 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 <singler@ira.uka.de>
|
||||
|
||||
* include/parallel/base.h: Take integer types from <tr1/cstdint>.
|
||||
* 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 <tr1/cstdint>.
|
||||
* 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 <pmuldoon@redhat.com>
|
||||
|
||||
|
|
|
@ -542,6 +542,35 @@ mode, i.e. <literal>-std=c++0x</literal> or <literal>-std=gnu++0x</literal>.
|
|||
|
||||
<para></para>
|
||||
|
||||
<table frame='all'>
|
||||
<title>Extension Profile Headers</title>
|
||||
<tgroup cols='4' align='left' colsep='1' rowsep='1'>
|
||||
<colspec colname='c1'></colspec>
|
||||
<colspec colname='c2'></colspec>
|
||||
<colspec colname='c3'></colspec>
|
||||
<colspec colname='c4'></colspec>
|
||||
<tbody>
|
||||
|
||||
<row>
|
||||
<entry><filename class="headerfile">profile/bitset</filename></entry>
|
||||
<entry><filename class="headerfile">profile/deque</filename></entry>
|
||||
<entry><filename class="headerfile">profile/list</filename></entry>
|
||||
<entry><filename class="headerfile">profile/map</filename></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><filename class="headerfile">profile/set</filename></entry>
|
||||
<entry><filename class="headerfile">profile/unordered_map</filename></entry>
|
||||
<entry><filename class="headerfile">profile/unordered_set</filename></entry>
|
||||
<entry><filename class="headerfile">profile/vector</filename></entry>
|
||||
</row>
|
||||
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
|
||||
<para></para>
|
||||
|
||||
<table frame='all'>
|
||||
<title>Extension Parallel Headers</title>
|
||||
<tgroup cols='2' align='left' colsep='1' rowsep='1'>
|
||||
|
|
|
@ -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
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-options "-D_GLIBCXX_PROFILE" }
|
||||
// { dg-do compile }
|
||||
|
||||
#include <stdio.h>
|
||||
#include <malloc.h>
|
||||
#include <vector>
|
||||
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue