From: Andrew Pinski Date: Wed, 20 Jul 2005 21:34:52 +0000 (+0000) Subject: c-typeck.c (output_init_element): Don't copy the INTEGER_CST. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=71b50543a7624e54ac80d439d31b6667ce01500b;p=gcc.git c-typeck.c (output_init_element): Don't copy the INTEGER_CST. 2005-07-20 Andrew Pinski * c-typeck.c (output_init_element): Don't copy the INTEGER_CST. From-SVN: r102203 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ba47d056cbf..c190fdb5528 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2005-07-20 Andrew Pinski + + * c-typeck.c (output_init_element): Don't copy the INTEGER_CST. + 2005-07-20 James A. Morrison * tree.h (tree_expr_nonzero_p): Export. diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index d9c994983ae..48395916dbd 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -5975,8 +5975,6 @@ output_init_element (tree value, bool strict_string, tree type, tree field, /* Otherwise, output this element either to constructor_elements or to the assembler file. */ - if (field && TREE_CODE (field) == INTEGER_CST) - field = copy_node (field); celt = VEC_safe_push (constructor_elt, gc, constructor_elements, NULL); celt->index = field; celt->value = value;