From 1fbfe10880b7782ec6d0f22f5bf3962bca03a853 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 4 Jun 1994 03:38:01 +0000 Subject: [PATCH] * read.c (emit_expr): Use memset to zero out memory, rather than going through md_number_to_chars. This permits handling symbolic arguments when the size is larger than sizeof (valueT), if TC_CONS_FIX_NEW is prepared to handle the case (as it is on MIPS). --- gas/ChangeLog | 7 +++++++ gas/read.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 17a53f581ce..472a0c3aa95 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,10 @@ +Fri Jun 3 23:35:36 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) + + * read.c (emit_expr): Use memset to zero out memory, rather than + going through md_number_to_chars. This permits handling symbolic + arguments when the size is larger than sizeof (valueT), if + TC_CONS_FIX_NEW is prepared to handle the case (as it is on MIPS). + Fri Jun 3 12:50:13 1994 David J. MacKenzie (djm@rtl.cygnus.com) * as.c (show_usage), config/tc-alpha.c (md_show_usage), diff --git a/gas/read.c b/gas/read.c index da2b3a6baa4..2aaeae02f75 100644 --- a/gas/read.c +++ b/gas/read.c @@ -1857,7 +1857,7 @@ emit_expr (exp, nbytes) } else { - md_number_to_chars (p, (valueT) 0, (int) nbytes); + memset (p, 0, nbytes); /* Now we need to generate a fixS to record the symbol value. This is easy for BFD. For other targets it can be more -- 2.30.2