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 | |
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
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/rtl.c | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9eb38ff..650fb46 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Tue Jan 12 01:30:19 1999 Richard Henderson <rth@cygnus.com> + + * rtl.c (rtx_alloc): Use memset instead of inline loop. + Tue Jan 12 00:23:31 1999 Richard Henderson <rth@cygnus.com> * function.c (purge_addressof_1): If the note accesses a mem+addressof @@ -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); |