* ia64 gas: Remove unnecessary init
@ 2022-05-31 11:48 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2022-05-31 11:48 UTC (permalink / raw)
To: binutils
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;
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-31 11:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-31 11:48 ia64 gas: Remove unnecessary init Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).