other/9274: [pch] cannot create libstdc++-v3 pch

Geoff Keating geoffk@geoffk.org
Mon Apr 14 22:06:00 GMT 2003


The following reply was made to PR other/9274; it has been noted by GNATS.

From: Geoff Keating <geoffk@geoffk.org>
To: bkoz@gcc.gnu.org, bkoz@redhat.com, gcc-bugs@gcc.gnu.org,
   gcc-prs@gcc.gnu.org, geoffk@gcc.gnu.org, geoffk@geoffk.org,
   jason@redhat.com, pcarlini@unitus.it, gcc-gnats@gcc.gnu.org
Cc: bkoz@redhat.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org,
   geoffk@geoffk.org, jason@redhat.com, pcarlini@unitus.it
Subject: Re: other/9274: [pch] cannot create libstdc++-v3 pch
Date: Mon, 14 Apr 2003 15:02:15 -0700

 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.
 
 This patch might help.  Try it and see what happens.
 
 -- 
 - Geoffrey Keating <geoffk@geoffk.org>
 
 ===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.  */
 ============================================================



More information about the Gcc-prs mailing list