aboutsummaryrefslogtreecommitdiff
path: root/gas/read.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-06-04 03:38:01 +0000
committerIan Lance Taylor <ian@airs.com>1994-06-04 03:38:01 +0000
commit1fbfe10880b7782ec6d0f22f5bf3962bca03a853 (patch)
treef9176f1ab0d3cb8cea28b2a1354dfacdb8d904be /gas/read.c
parentb11f2c1f7678e1339bc535d88a4caeb905677b9d (diff)
downloadgdb-1fbfe10880b7782ec6d0f22f5bf3962bca03a853.zip
gdb-1fbfe10880b7782ec6d0f22f5bf3962bca03a853.tar.gz
gdb-1fbfe10880b7782ec6d0f22f5bf3962bca03a853.tar.bz2
* 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).
Diffstat (limited to 'gas/read.c')
-rw-r--r--gas/read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/read.c b/gas/read.c
index da2b3a6..2aaeae0 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