aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rtl.c')
-rw-r--r--gcc/rtl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/rtl.c b/gcc/rtl.c
index 322bdc9..33cf0cb 100644
--- a/gcc/rtl.c
+++ b/gcc/rtl.c
@@ -254,9 +254,7 @@ rtx_alloc (code)
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;
+ memset (rt, 0, sizeof (struct rtx_def) - sizeof (rtunion));
PUT_CODE (rt, code);