This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Introduce global DECL_UID -> tree mapping (with pch fixed)
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 26 Feb 2008 15:06:05 +0100 (CET)
- Subject: Re: [PATCH] Introduce global DECL_UID -> tree mapping (with pch fixed)
- References: <Pine.LNX.4.64.0802261338570.4133@zhemvz.fhfr.qr>
On Tue, 26 Feb 2008, Richard Guenther wrote:
>
> This is the mapping introduction patch with a fix for the bootstrap
> problems that happened in the "right" ggc circumstances. The problem
> is that the C++ FE ggc_frees decls, so the memory can be re-used while
> the global mapping still points to that memory. Fixed by removing the
> decl from the mapping before ggc_freeing it.
>
> I bootstrapped and tested this on x86_64-unknown-linux-gnu with release
> checking enabled (this triggered the failure before), and I'll now
> re-test the combined patch that makes referenced_vars a bitmap.
>
> I suppose the cp/ change is obvious, so I'll apply the patch again after
> that extra testing finished.
Thus, re-applied as rev. 132676.
Richard.