Commit 49b08aba by Richard Kenner

(copy_node): Handle length of INTEGER_CST like make_node.

From-SVN: r6241
parent c11ffdbd
...@@ -1011,9 +1011,17 @@ copy_node (node) ...@@ -1011,9 +1011,17 @@ copy_node (node)
break; break;
case 'c': /* a constant */ case 'c': /* a constant */
/* We can't use tree_code_length for this, since the number of words /* We can't use tree_code_length for INTEGER_CST, since the number of
is machine-dependent due to varying alignment of `double'. */ words is machine-dependent due to varying length of HOST_WIDE_INT,
if (code == REAL_CST) which might be wider than a pointer (e.g., long long). Similarly
for REAL_CST, since the number of words is machine-dependent due
to varying size and alignment of `double'. */
if (code == INTEGER_CST)
{
length = sizeof (struct tree_int_cst);
break;
}
else if (code == REAL_CST)
{ {
length = sizeof (struct tree_real_cst); length = sizeof (struct tree_real_cst);
break; break;
......
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