Commit 2151a093 by Richard Kenner

(rtx_alloc): Clear common area of rtx in a portable manner.

From-SVN: r3074
parent 86daf4a6
...@@ -233,7 +233,14 @@ rtx_alloc (code) ...@@ -233,7 +233,14 @@ rtx_alloc (code)
ob->next_free += length; ob->next_free += length;
ob->object_base = ob->next_free; ob->object_base = ob->next_free;
* (int *) rt = 0; /* We want to clear everything up to the FLD array. Normally, this is
one int, but we don't want to assume that and it isn't very portable
anyway; this is. */
length = (sizeof (struct rtx_def) - sizeof (rtunion) - 1) / sizeof (int);
for (; length >= 0; length--)
((int *) rt)[length] = 0;
PUT_CODE (rt, code); PUT_CODE (rt, code);
return rt; return rt;
......
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