From d6c0e1c8d0be1e1b6ce7fc9c36223328e191cb7f Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Mon, 11 Jan 1999 17:31:09 -0800 Subject: [PATCH] * rtl.c (rtx_alloc): Use memset instead of inline loop. From-SVN: r24632 --- gcc/ChangeLog | 4 ++++ 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 + + * rtl.c (rtx_alloc): Use memset instead of inline loop. + Tue Jan 12 00:23:31 1999 Richard Henderson * 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); -- 2.30.2