This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] c-typeck.c: Make three variables static.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 08 Mar 2005 11:15:28 -0500 (EST)
- Subject: [patch] c-typeck.c: Make three variables static.
Hi,
Bootstrapped on i686-pc-linux-gnu. Committed as preapproved.
Kazu Hirata
2005-03-08 Kazu Hirata <kazu@cs.umass.edu>
* c-typeck.c (constructor_stack, constructor_range_stack,
initializer_stack): Make them static.
Index: c-typeck.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-typeck.c,v
retrieving revision 1.420
diff -u -d -p -r1.420 c-typeck.c
--- c-typeck.c 2 Mar 2005 02:50:19 -0000 1.420
+++ c-typeck.c 8 Mar 2005 12:59:21 -0000
@@ -4505,7 +4505,7 @@ struct constructor_stack
char designated;
};
-struct constructor_stack *constructor_stack;
+static struct constructor_stack *constructor_stack;
/* This stack represents designators from some range designator up to
the last designator in the list. */
@@ -4520,7 +4520,7 @@ struct constructor_range_stack
tree fields;
};
-struct constructor_range_stack *constructor_range_stack;
+static struct constructor_range_stack *constructor_range_stack;
/* This stack records separate initializers that are nested.
Nested initializers can't happen in ANSI C, but GNU C allows them
@@ -4541,7 +4541,7 @@ struct initializer_stack
char require_constant_elements;
};
-struct initializer_stack *initializer_stack;
+static struct initializer_stack *initializer_stack;
/* Prepare to parse and output the initializer for variable DECL. */