From: Richard Stallman Date: Sat, 29 May 1993 03:48:35 +0000 (+0000) Subject: (process_init_constructor): Never set current_index X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3ee1e240fe345898bd9c30a503e87f35fe2971b6;p=gcc.git (process_init_constructor): Never set current_index itself--always store into current_index_node. From-SVN: r4591 --- diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 77599bab633..89a838fef8b 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -5254,12 +5254,18 @@ process_init_constructor (type, init, elts, constant_value, constant_element, element. */ warning ("empty array initializer range"); tail = TREE_CHAIN (tail); - current_index = end_index; + TREE_INT_CST_LOW (current_index) + = TREE_INT_CST_LOW (end_index); + TREE_INT_CST_HIGH (current_index) + = TREE_INT_CST_HIGH (end_index); continue; } else { - current_index = start_index; + TREE_INT_CST_LOW (current_index) + = TREE_INT_CST_LOW (start_index); + TREE_INT_CST_HIGH (current_index) + = TREE_INT_CST_HIGH (start_index); win = 1; /* See if the first element is also the last. */ if (!tree_int_cst_lt (current_index, end_index)) @@ -5276,7 +5282,10 @@ process_init_constructor (type, init, elts, constant_value, constant_element, else { constant_expression_warning (index); - current_index = index, win = 1; + TREE_INT_CST_LOW (current_index) = TREE_INT_CST_LOW (index); + TREE_INT_CST_HIGH (current_index) + = TREE_INT_CST_HIGH (index); + win = 1; } if (!win)