From 18192b41d23a5f8a90998ae3f396dd592849343b Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 31 Aug 1993 06:25:38 -0400 Subject: [PATCH] (struct c_function): Remove unneeded enum_next_value. (push_c_function_context, pop_c_function_context): Don't save it. From-SVN: r5230 --- gcc/c-decl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/c-decl.c b/gcc/c-decl.c index d9eb67d73d1..eede16315b6 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -208,7 +208,10 @@ char *pending_invalid_xref_file; int pending_invalid_xref_line; /* While defining an enum type, this is 1 plus the last enumerator - constant value. */ + constant value. Note that will do not have to save this or `enum_overflow' + around nested function definition since such a definition could only + occur in an enum value expression and we don't use these variables in + that case. */ static tree enum_next_value; @@ -6461,7 +6464,6 @@ finish_function (nested) struct c_function { struct c_function *next; - tree enum_next_value; tree named_labels; tree shadowed_labels; int returns_value; @@ -6490,7 +6492,6 @@ push_c_function_context () p->next = c_function_chain; c_function_chain = p; - p->enum_next_value = enum_next_value; p->named_labels = named_labels; p->shadowed_labels = shadowed_labels; p->returns_value = current_function_returns_value; @@ -6527,7 +6528,6 @@ pop_c_function_context () c_function_chain = p->next; - enum_next_value = p->enum_next_value; named_labels = p->named_labels; shadowed_labels = p->shadowed_labels; current_function_returns_value = p->returns_value; -- 2.30.2