This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix two GTY uses
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 22 Apr 2004 12:24:55 +0930
- Subject: Fix two GTY uses
Fixes a couple of silly mistakes. GTY only does something with
variables if it appears after "static" or "extern". frame_base_decl in
tree.h does have a GTY, the one in var-tracking.c only serves to confuse.
gcc/ChangeLog
* var-tracking.c (frame_base_decl): Remove useless GTY.
gcc/cp/ChangeLog
* name-lookup.c (anonymous_namespace_name): Make static.
Bootstrapped etc. powerpc64-linux. OK?
Index: gcc/var-tracking.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/var-tracking.c,v
retrieving revision 2.12
diff -u -p -r2.12 var-tracking.c
--- gcc/var-tracking.c 22 Mar 2004 02:57:27 -0000 2.12
+++ gcc/var-tracking.c 22 Apr 2004 01:56:38 -0000
@@ -265,7 +265,7 @@ static htab_t changed_variables;
static bool emit_notes;
/* Fake variable for stack pointer. */
-GTY(()) tree frame_base_decl;
+tree frame_base_decl;
/* Local function prototypes. */
static void stack_adjust_offset_pre_post (rtx, HOST_WIDE_INT *,
Index: gcc/cp/name-lookup.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/name-lookup.c,v
retrieving revision 1.50
diff -u -p -r1.50 name-lookup.c
--- gcc/cp/name-lookup.c 1 Apr 2004 20:02:07 -0000 1.50
+++ gcc/cp/name-lookup.c 22 Apr 2004 01:57:02 -0000
@@ -50,7 +50,7 @@ tree global_namespace;
/* The name of the anonymous namespace, throughout this translation
unit. */
-GTY(()) tree anonymous_namespace_name;
+static GTY(()) tree anonymous_namespace_name;
/* Compute the chain index of a binding_entry given the HASH value of its
--
Alan Modra
IBM OzLabs - Linux Technology Centre