c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
authorAndrew Pinski <pinskia@physics.uc.edu>
Wed, 20 Jul 2005 21:34:52 +0000 (21:34 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Wed, 20 Jul 2005 21:34:52 +0000 (14:34 -0700)
2005-07-20  Andrew Pinski  <pinskia@physics.uc.edu>

        * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.

From-SVN: r102203

gcc/ChangeLog
gcc/c-typeck.c

index ba47d056cbf81ae2c3d997b57189b93bb6d8540b..c190fdb55289139a339ffee5c99f55ad83adbffe 100644 (file)
@@ -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.
index d9c994983ae133ba955a06af2fac171f40e19edd..48395916dbd841aa3104cc1cc8fbd10e70156530 100644 (file)
@@ -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;