aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>1999-01-11 17:31:09 -0800
committerRichard Henderson <rth@gcc.gnu.org>1999-01-11 17:31:09 -0800
commitd6c0e1c8d0be1e1b6ce7fc9c36223328e191cb7f (patch)
tree5c815910f5db011a3770222a144ad60b013fde01 /gcc/rtl.c
parent08b8d8e5183c6852427c6164e4c71a66fcec21e9 (diff)
downloadgcc-d6c0e1c8d0be1e1b6ce7fc9c36223328e191cb7f.zip
gcc-d6c0e1c8d0be1e1b6ce7fc9c36223328e191cb7f.tar.gz
gcc-d6c0e1c8d0be1e1b6ce7fc9c36223328e191cb7f.tar.bz2
* rtl.c (rtx_alloc): Use memset instead of inline loop.
From-SVN: r24632
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);