diff options
author | Andrew Pinski <pinskia@physics.uc.edu> | 2005-07-20 21:34:52 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2005-07-20 14:34:52 -0700 |
commit | 71b50543a7624e54ac80d439d31b6667ce01500b (patch) | |
tree | 37ee8bf6717254d715e020e722484a32d5ed6567 | |
parent | 42e13a3f91574ff73985c73a54f84cfb14d95f46 (diff) | |
download | gcc-71b50543a7624e54ac80d439d31b6667ce01500b.zip gcc-71b50543a7624e54ac80d439d31b6667ce01500b.tar.gz gcc-71b50543a7624e54ac80d439d31b6667ce01500b.tar.bz2 |
c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
2005-07-20 Andrew Pinski <pinskia@physics.uc.edu>
* c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
From-SVN: r102203
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/c-typeck.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ba47d05..c190fdb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2005-07-20 Andrew Pinski <pinskia@physics.uc.edu> + + * c-typeck.c (output_init_element): Don't copy the INTEGER_CST. + 2005-07-20 James A. Morrison <phython@gcc.gnu.org> * tree.h (tree_expr_nonzero_p): Export. diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index d9c9949..4839591 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; |