gas/
* frags.c (frag_grow): Don't be too greedy in allocating memory. * config/tc-hppa.c (pa_block): Check arguments to .block[z]. gas/testsuite/ * gas/hppa/parse/block1.s: Use official limit (0x3fffffff) for .block.
This commit is contained in:
parent
b0ded00b3f
commit
ee1923668e
@ -1,3 +1,9 @@
|
||||
2005-05-10 Michael Matz <matz@suse.de>
|
||||
|
||||
* frags.c (frag_grow): Don't be too greedy in allocating memory.
|
||||
|
||||
* config/tc-hppa.c (pa_block): Check arguments to .block[z].
|
||||
|
||||
2005-05-10 Hans-Peter Nilsson <hp@bitrange.com>
|
||||
|
||||
PR binutils/886
|
||||
@ -23,8 +29,8 @@
|
||||
|
||||
2005-05-09 Jan Beulich <jbeulich@novell.com>
|
||||
|
||||
* config/tc-i386.c (optimize_disp): Discard displacement entirely when zero and
|
||||
not required by encoding constraints.
|
||||
* config/tc-i386.c (optimize_disp): Discard displacement entirely
|
||||
when zero and not required by encoding constraints.
|
||||
|
||||
2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
|
@ -5951,6 +5951,12 @@ pa_block (z)
|
||||
|
||||
temp_size = get_absolute_expression ();
|
||||
|
||||
if (temp_size > 0x3FFFFFFF)
|
||||
{
|
||||
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;
|
||||
|
||||
|
@ -91,7 +91,14 @@ frag_grow (unsigned int nchars)
|
||||
frag_wane (frag_now);
|
||||
frag_new (0);
|
||||
oldc = frchain_now->frch_obstack.chunk_size;
|
||||
frchain_now->frch_obstack.chunk_size = 2 * nchars + SIZEOF_STRUCT_FRAG;
|
||||
/* Try to allocate a bit more than needed right now. But don't do
|
||||
this if we would waste too much memory. Especially necessary
|
||||
for extremely big (like 2GB initialized) frags. */
|
||||
if (nchars < 0x10000)
|
||||
frchain_now->frch_obstack.chunk_size = 2 * nchars;
|
||||
else
|
||||
frchain_now->frch_obstack.chunk_size = nchars + 0x10000;
|
||||
frchain_now->frch_obstack.chunk_size += SIZEOF_STRUCT_FRAG;
|
||||
if (frchain_now->frch_obstack.chunk_size > 0)
|
||||
while ((n = obstack_room (&frchain_now->frch_obstack)) < nchars
|
||||
&& (unsigned long) frchain_now->frch_obstack.chunk_size > nchars)
|
||||
|
@ -1,3 +1,8 @@
|
||||
2005-05-10 Michael Matz <matz@suse.de>
|
||||
|
||||
* gas/hppa/parse/block1.s: Use official limit (0x3fffffff) for
|
||||
.block.
|
||||
|
||||
2005-05-10 Hans-Peter Nilsson <hp@bitrange.com>
|
||||
|
||||
* gas/mmix/relax2.s: Drop ":" off label definitions.
|
||||
|
@ -4,7 +4,7 @@
|
||||
foo:
|
||||
.block
|
||||
bar:
|
||||
.block 0x7fffffff
|
||||
.block 0x3fffffff
|
||||
com:
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user