other/9274: [pch] cannot create libstdc++-v3 pch
Geoff Keating
geoffk@geoffk.org
Tue Apr 15 20:48:00 GMT 2003
> Date: Tue, 15 Apr 2003 10:39:48 -0500
> From: Benjamin Kosnik <bkoz@redhat.com>
> >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?
Done, with this ChangeLog:
2003-04-15 Geoffrey Keating <geoffk@apple.com>
* tree.c (next_decl_uid): Mark with GTY.
(next_type_uid): Likewise.
> >===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. */
> >============================================================
--
- Geoffrey Keating <geoffk@geoffk.org>
More information about the Gcc-bugs
mailing list