aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-07-31 05:52:40 +0000
committerRichard Stallman <rms@gnu.org>1993-07-31 05:52:40 +0000
commit97093ccaa2ae09ca65c72557785325f086936bc8 (patch)
tree36a3d2c706107539f9488b7e970370bd4462f24d /gcc
parent33558beb6ade3caee5803e93001d625d82877730 (diff)
downloadgcc-97093ccaa2ae09ca65c72557785325f086936bc8.zip
gcc-97093ccaa2ae09ca65c72557785325f086936bc8.tar.gz
gcc-97093ccaa2ae09ca65c72557785325f086936bc8.tar.bz2
(digest_init): Finish getting rid of tail.
Also get rid of old_tail_contents. Don't set free_tree_list. (free_tree_list): Var deleted. From-SVN: r5047
Diffstat (limited to 'gcc')
-rw-r--r--gcc/c-typeck.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c
index e4d4f24..2e0d0f6 100644
--- a/gcc/c-typeck.c
+++ b/gcc/c-typeck.c
@@ -4803,20 +4803,6 @@ pedwarn_init (format, local, ofwhat)
pedwarn (format, buffer);
}
-/* Keep a pointer to the last free TREE_LIST node as we digest an initializer,
- so that we can reuse it. This is set in digest_init, and used in
- process_init_constructor.
-
- We will never keep more than one free TREE_LIST node here. This is for
- two main reasons. First, we take elements off the old list and add them
- to the new list one at a time, thus there should never be more than
- one free TREE_LIST at a time, and thus even if there is, we will never
- need more than one. Secondly, to avoid dangling pointers to freed obstacks,
- we want to always ensure that we have either a pointer to a valid TREE_LIST
- within the current initializer, or else a pointer to null. */
-
-static tree free_tree_list = NULL_TREE;
-
/* Digest the parser output INIT as an initializer for type TYPE.
Return a C expression of type TYPE to represent the initial value.
@@ -4842,26 +4828,8 @@ digest_init (type, init, require_constant, constructor_constant)
{
enum tree_code code = TREE_CODE (type);
tree element = 0;
- tree old_tail_contents;
tree inside_init = init;
- /* By default, assume we use one element from a list.
- We correct this later in the cases where it is not true.
-
- Thus, we update TAIL now to point to the next element, and save the
- old value in OLD_TAIL_CONTENTS. If we didn't actually use the first
- element, then we will reset TAIL before proceeding. FREE_TREE_LIST
- is handled similarly. */
-
- if (tail)
- {
- old_tail_contents = *tail;
- *tail = TREE_CHAIN (*tail);
- free_tree_list = old_tail_contents;
- }
- else
- free_tree_list = 0;
-
if (init == error_mark_node)
return init;