patches/gcc/2.95.3/140-deque-leak-fix.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Oct 14 17:42:10 2008 +0000 (2008-10-14)
changeset 929 7c958fb04f28
permissions -rw-r--r--
Sample config for e500v2 toolchain

On Tuesday 14 October 2008 17:05:31 Nate Case wrote:
> This is a sample config file for Freescale e500v2 processors (e.g.,
> MPC8548, MPC8572). It uses eglibc (for e500/SPE patches) and a recent
> gcc (4.3.1, for e500v2 DPFP support) and will generate appropriate
> dual-precision floating point instructions by default.
>
> Note: If building a Linux kernel with this toolchain, you will want to
> make sure -mno-spe AND -mspe=no are passed to gcc to prevent SPE
> ABI/instructions from getting into the kernel (which is currently
> unsupported). At this time, the kernel build system only passes
> -mno-spe by default (this should be fixed soon hopefully).
>
> A binutils snapshot is used to fix a bug present in 2.18 preventing
> U-Boot from being compiled (CodeSourcery issue #2297: internal.h
> (ELF_IS_SECTION_IN_SEGMENT): Adjust to cope with segments at the end of
> memory).

Obsoletes the powerpc-unknown-linux-gnuspe sample, so remove it.

/trunk/samples/powerpc-e500v2-linux-gnuspe/crosstool.config | 307 307 0 0 +++++++++++++++++++
1 file changed, 307 insertions(+)
yann@402
     1
[See also http://gcc.gnu.org/ml/libstdc++/2001-11/msg00133.html ]
yann@402
     2
yann@402
     3
Date: Fri, 16 Nov 2001 16:06:22 -0500
yann@402
     4
From: Phil Edwards <pedwards at disaster dot jaj dot com>
yann@402
     5
To: gcc-patches at gcc dot gnu dot org
yann@402
     6
Subject: [libstdc++ trunk & 3.0]  Fix deque memory leak
yann@402
     7
Message-ID: <20011116160622.A23094@disaster.jaj.com>
yann@402
     8
yann@402
     9
yann@402
    10
As discussed on the libstdc++ mailing list.  Tested on i686/linux.
yann@402
    11
yann@402
    12
yann@402
    13
yann@402
    14
2001-11-16  Paolo Carlini  <pcarlini@unitus.it>
yann@402
    15
yann@402
    16
	* include/bits/stl_deque.h (deque::erase()):  Fix memory leak.
yann@402
    17
yann@402
    18
yann@402
    19
[rediffed against 2.95.3 -- dank]
yann@402
    20
yann@402
    21
--- gcc-2.95.3/libstdc++/stl/stl_deque.h.old	2001-01-01 09:48:22.000000000 -0800
yann@402
    22
+++ gcc-2.95.3/libstdc++/stl/stl_deque.h	2006-02-18 15:24:17.000000000 -0800
yann@402
    23
@@ -1052,7 +1052,7 @@
yann@402
    24
       copy_backward(_M_start, __first, __last);
yann@402
    25
       iterator __new_start = _M_start + __n;
yann@402
    26
       destroy(_M_start, __new_start);
yann@402
    27
-      _M_destroy_nodes(__new_start._M_node, _M_start._M_node);
yann@402
    28
+      _M_destroy_nodes(_M_start._M_node, __new_start._M_node);  /* fixed per http://gcc.gnu.org/ml/libstdc++/2001-11/msg00139.html */
yann@402
    29
       _M_start = __new_start;
yann@402
    30
     }
yann@402
    31
     else {