This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PCH] minor fixes
- From: Geoffrey Keating <gkeating at apple dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 4 Oct 2002 14:08:13 -0700 (PDT)
- Subject: [PCH] minor fixes
This patch includes some fixes from Mike and some others I found
while checking why I hadn't noticed the previous problems...
Bootstrapped & tested on powerpc-apple-darwin6.0.
--
- Geoffrey Keating <geoffk@apple.com>
===File ~/patches/pchbranch-minorfixes.patch================
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ChangeLog,v
retrieving revision 1.12690.2.72
diff -u -p -u -p -r1.12690.2.72 ChangeLog
--- ChangeLog 25 Sep 2002 19:15:11 -0000 1.12690.2.72
+++ ChangeLog 4 Oct 2002 21:05:48 -0000
@@ -1,3 +1,14 @@
+2002-10-02 Geoffrey Keating <geoffk@apple.com>
+
+ * ggc-common.c (ggc_mark_roots): Delete 'x'.
+ (ggc_splay_dont_free): Fix warning about unused 'x'.
+ (ggc_print_common_statistics): Remove warnings.
+
+2002-10-01 Mike Stump <mrs@apple.com>
+
+ * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
+ * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
+
2002-09-01 Geoffrey Keating <geoffk@redhat.com>
Catherine Moore <clm@redhat.com>
Index: gengtype.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gengtype.c,v
retrieving revision 1.1.2.34
diff -u -p -u -p -r1.1.2.34 gengtype.c
--- gengtype.c 25 Sep 2002 19:16:10 -0000 1.1.2.34
+++ gengtype.c 4 Oct 2002 21:05:48 -0000
@@ -1553,6 +1553,10 @@ write_gc_structure_fields (of, s, val, p
;
else if (strcmp (oo->name, "param_is") == 0)
;
+ else if (strncmp (oo->name, "param", 5) == 0
+ && ISDIGIT (oo->name[5])
+ && strcmp (oo->name + 6, "_is") == 0)
+ ;
else if (strncmp (oo->name, "use_param", 9) == 0
&& (oo->name[9] == '\0' || ISDIGIT (oo->name[9])))
use_param_num = oo->name[9] == '\0' ? 0 : oo->name[9] - '0';
Index: ggc-common.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ggc-common.c,v
retrieving revision 1.46.4.22
diff -u -p -u -p -r1.46.4.22 ggc-common.c
--- ggc-common.c 25 Sep 2002 19:16:11 -0000 1.46.4.22
+++ ggc-common.c 4 Oct 2002 21:05:48 -0000
@@ -55,7 +55,6 @@ ggc_htab_delete (slot, info)
void
ggc_mark_roots ()
{
- struct ggc_root *x;
const struct ggc_root_tab *const *rt;
const struct ggc_root_tab *rti;
const struct ggc_cache_tab *const *ct;
@@ -128,13 +127,13 @@ ggc_splay_alloc (sz, nl)
{
if (nl != NULL)
abort ();
- ggc_alloc (sz);
+ return ggc_alloc (sz);
}
void
ggc_splay_dont_free (x, nl)
- PTR x;
- PTR nl ATTRIBUTE_UNUSED;
+ PTR x ATTRIBUTE_UNUSED;
+ PTR nl;
{
if (nl != NULL)
abort ();
@@ -150,11 +149,9 @@ ggc_splay_dont_free (x, nl)
void
ggc_print_common_statistics (stream, stats)
- FILE *stream;
+ FILE *stream ATTRIBUTE_UNUSED;
ggc_statistics *stats;
{
- int code;
-
/* Set the pointer so that during collection we will actually gather
the statistics. */
ggc_stats = stats;
============================================================