diff options
author | Richard Henderson <rth@cygnus.com> | 1999-01-11 17:31:09 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 1999-01-11 17:31:09 -0800 |
commit | d6c0e1c8d0be1e1b6ce7fc9c36223328e191cb7f (patch) | |
tree | 5c815910f5db011a3770222a144ad60b013fde01 /gcc/rtl.c | |
parent | 08b8d8e5183c6852427c6164e4c71a66fcec21e9 (diff) | |
download | gcc-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.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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); |