aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-06-10 05:46:48 +0000
committerAlan Modra <amodra@gmail.com>2005-06-10 05:46:48 +0000
commit6bdb6dec9a4fc0732e8f093b850da4c2da1a26bc (patch)
tree404669002af7b54dc19ee643a460f6c4e0ac6ec7 /gas/config
parent88d821021ee9a73969429e642532cd8427f31c8e (diff)
downloadgdb-6bdb6dec9a4fc0732e8f093b850da4c2da1a26bc.zip
gdb-6bdb6dec9a4fc0732e8f093b850da4c2da1a26bc.tar.gz
gdb-6bdb6dec9a4fc0732e8f093b850da4c2da1a26bc.tar.bz2
* config/tc-hppa.c (pa_block): Allocate just one byte for the
fill pattern.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-hppa.c23
1 files changed, 5 insertions, 18 deletions
diff --git a/gas/config/tc-hppa.c b/gas/config/tc-hppa.c
index 2b4f3d5..81845ad 100644
--- a/gas/config/tc-hppa.c
+++ b/gas/config/tc-hppa.c
@@ -1,6 +1,6 @@
/* tc-hppa.c -- Assemble for the PA
Copyright 1989, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
- 2002, 2003, 2004 Free Software Foundation, Inc.
+ 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -5937,10 +5937,7 @@ static void
pa_block (z)
int z ATTRIBUTE_UNUSED;
{
- char *p;
- long int temp_fill;
unsigned int temp_size;
- unsigned int i;
#ifdef OBJ_SOM
/* We must have a valid space and subspace. */
@@ -5954,21 +5951,11 @@ pa_block (z)
as_bad (_("Argument to .BLOCK/.BLOCKZ must be between 0 and 0x3fffffff"));
temp_size = 0;
}
-
- /* Always fill with zeros, that's what the HP assembler does. */
- temp_fill = 0;
-
- p = frag_var (rs_fill, (int) temp_size, (int) temp_size,
- (relax_substateT) 0, (symbolS *) 0, (offsetT) 1, NULL);
- memset (p, 0, temp_size);
-
- /* Convert 2 bytes at a time. */
-
- for (i = 0; i < temp_size; i += 2)
+ else
{
- md_number_to_chars (p + i,
- (valueT) temp_fill,
- (int) ((temp_size - i) > 2 ? 2 : (temp_size - i)));
+ /* Always fill with zeros, that's what the HP assembler does. */
+ char *p = frag_var (rs_fill, 1, 1, 0, NULL, temp_size, NULL);
+ *p = 0;
}
pa_undefine_label ();