[patch] c-typeck.c: Make three variables static.
Kazu Hirata
kazu@cs.umass.edu
Tue Mar 8 16:15:00 GMT 2005
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. */
More information about the Gcc-patches
mailing list