From: Alan Modra Date: Tue, 31 May 2022 11:26:39 +0000 (+0930) Subject: ia64 gas: Remove unnecessary init X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e953510c3bfda9a39f1da76e00ab810917e32b78;p=binutils-gdb.git ia64 gas: Remove unnecessary init The whole struct is cleared by alloc_record. * config/tc-ia64.c (output_prologue, output_prologue_gr): Don't zero r.record.r.mask. --- diff --git a/gas/config/tc-ia64.c b/gas/config/tc-ia64.c index 2c5e45f0491..a4555046492 100644 --- a/gas/config/tc-ia64.c +++ b/gas/config/tc-ia64.c @@ -1760,7 +1760,6 @@ static unw_rec_list * output_prologue (void) { unw_rec_list *ptr = alloc_record (prologue); - memset (&ptr->r.record.r.mask, 0, sizeof (ptr->r.record.r.mask)); return ptr; } @@ -1768,7 +1767,6 @@ static unw_rec_list * output_prologue_gr (unsigned int saved_mask, unsigned int reg) { unw_rec_list *ptr = alloc_record (prologue_gr); - memset (&ptr->r.record.r.mask, 0, sizeof (ptr->r.record.r.mask)); ptr->r.record.r.grmask = saved_mask; ptr->r.record.r.grsave = reg; return ptr;