Commit cae856a0 by Jim Wilson

(output_init_element): When try to copy FIELD if it

is an interger constant, first check to make sure it is nonzero.

From-SVN: r5617
parent 99f14de7
...@@ -5491,7 +5491,7 @@ output_init_element (value, type, field, pending) ...@@ -5491,7 +5491,7 @@ output_init_element (value, type, field, pending)
{ {
if (! constructor_incremental) if (! constructor_incremental)
{ {
if (TREE_CODE (field) == INTEGER_CST) if (field && TREE_CODE (field) == INTEGER_CST)
field = copy_node (field); field = copy_node (field);
constructor_elements constructor_elements
= tree_cons (field, digest_init (type, value, 0, 0), = tree_cons (field, digest_init (type, value, 0, 0),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment