This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: other/9274: [pch] cannot create libstdc++-v3 pch
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: geoffk at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 15 Apr 2003 15:46:01 -0000
- Subject: Re: other/9274: [pch] cannot create libstdc++-v3 pch
- Reply-to: Benjamin Kosnik <bkoz at redhat dot com>
The following reply was made to PR other/9274; it has been noted by GNATS.
From: Benjamin Kosnik <bkoz at redhat dot com>
To: Geoff Keating <geoffk at geoffk dot org>
Cc: bkoz at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org,
geoffk at gcc dot gnu dot org, geoffk at geoffk dot org, jason at redhat dot com, pcarlini at unitus dot it,
gcc-gnats at gcc dot gnu dot org
Subject: Re: other/9274: [pch] cannot create libstdc++-v3 pch
Date: Tue, 15 Apr 2003 10:39:48 -0500
>The original reported bug does work on Darwin, as does running
>make-check-target-libstdc++-v3 after running make
>stamp-stdc++-precompile. Of course, Darwin doesn't use DWARF2.
With this patch, things now work on linux. Thanks for your help.
>This patch might help. Try it and see what happens.
Indeed, it does. Can you check it in please?
>===File ~/patches/apple/gcc-pchdecluid.patch================
>*** tree.c.~1.295.~ Fri Apr 11 19:01:38 2003
>--- tree.c Mon Apr 14 14:56:53 2003
>***************
>*** 92,100 ****
> #endif /* GATHER_STATISTICS */
>
> /* Unique id for next decl created. */
>! static int next_decl_uid;
> /* Unique id for next type created. */
>! static int next_type_uid = 1;
>
> /* Since we cannot rehash a type after it is in the table, we have to
> keep the hash code. */
>--- 92,100 ----
> #endif /* GATHER_STATISTICS */
>
> /* Unique id for next decl created. */
>! static GTY(()) int next_decl_uid;
> /* Unique id for next type created. */
>! static GTY(()) int next_type_uid = 1;
>
> /* Since we cannot rehash a type after it is in the table, we have to
> keep the hash code. */
>============================================================
-benjamin