This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Correct example in GC documentation
- From: gkeating at apple dot com (Geoffrey Keating)
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 11 May 2004 14:33:32 -0700 (PDT)
- Subject: Correct example in GC documentation
The example wouldn't actually have worked by itself, since gengtype doesn't
look at declarations without a 'static' or 'extern'; it was originally
intended to mean 'this is how you do it as part of a structure
declaration', but I've decided that is confusing.
Checked with a bootstrap on powerpc-darwin.
--
- Geoffrey Keating <geoffk@apple.com>
====================
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ChangeLog,v
retrieving revision 2.3625
diff -u -p -u -p -r2.3625 ChangeLog
--- ChangeLog 11 May 2004 20:27:53 -0000 2.3625
+++ ChangeLog 11 May 2004 21:11:21 -0000
@@ -1,3 +1,7 @@
+2004-05-11 Geoffrey Keating <geoffk@apple.com>
+
+ * doc/gty.texi (GTY Options): Add missing 'static' or 'extern'.
+
2004-05-11 Fariborz Jahanian <fjahanian@apple.com>
* config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
Index: doc/gty.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/doc/gty.texi,v
retrieving revision 1.15
diff -u -p -u -p -r1.15 gty.texi
--- doc/gty.texi 30 Mar 2004 19:19:02 -0000 1.15
+++ doc/gty.texi 11 May 2004 21:11:21 -0000
@@ -231,7 +231,7 @@ typedef struct GTY(()) @{
@end smallexample
and then declare variables like this:
@smallexample
- htab_t GTY ((param_is (union tree_node))) ict;
+ static htab_t GTY ((param_is (union tree_node))) ict;
@end smallexample
@findex param@var{n}_is
====================