diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-01-12 01:31:09 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-01-12 01:31:09 +0000 |
commit | 5e6a80bda7d35ba6a20c760e385756ea41db61ea (patch) | |
tree | 5c815910f5db011a3770222a144ad60b013fde01 | |
parent | 2577a51ebff32851edd779a0a296e14c1985b051 (diff) | |
download | gcc-5e6a80bda7d35ba6a20c760e385756ea41db61ea.tar.gz |
* rtl.c (rtx_alloc): Use memset instead of inline loop.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24632 138bc75d-0d04-0410-961f-82ee72b054a4
-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 9eb38ff4081..650fb4674e6 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 diff --git a/gcc/rtl.c b/gcc/rtl.c index 322bdc936b0..33cf0cb9132 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); |