* rtl.c (rtx_alloc): Use memset instead of inline loop.
authorRichard Henderson <rth@cygnus.com>
Tue, 12 Jan 1999 01:31:09 +0000 (17:31 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 12 Jan 1999 01:31:09 +0000 (17:31 -0800)
From-SVN: r24632

gcc/ChangeLog
gcc/rtl.c

index 9eb38ff4081c95fa76242e43b55ba7b83dee6f17..650fb4674e669c5e04b86fd3f51d376c81330124 100644 (file)
@@ -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
index 322bdc936b07d2071f19a511121fa20d9fa60fcf..33cf0cb9132f618a6613078b671315de20e201c6 100644 (file)
--- 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);