mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-28 12:33:36 +08:00
Use frag_make_room() to grow the obstack.
This commit is contained in:
parent
2505098499
commit
c1a44b0823
@ -1,3 +1,8 @@
|
||||
2001-11-12 Nick Clifton <nickc@cambridge.redhat.com>
|
||||
|
||||
* frags.c (frag_grow): Use frag_make_room() to grow the
|
||||
obstack.
|
||||
|
||||
2001-11-14 Nick Clifton <nickc@cambridge.redhat.com>
|
||||
|
||||
* config/tc-sparc.c (md_apply_fix3): Do not remove the symbol's
|
||||
|
@ -65,6 +65,12 @@ void
|
||||
frag_grow (nchars)
|
||||
unsigned int nchars;
|
||||
{
|
||||
/* Try really hard to grow the obstack. Creating a new obstack can
|
||||
disable expression optimisations that would otherwise occur if
|
||||
two symbols were located in the same obstack. */
|
||||
if (obstack_room (&frchain_now->frch_obstack) < nchars)
|
||||
obstack_make_room (& frchain_now->frch_obstack, 2 * nchars);
|
||||
|
||||
if (obstack_room (&frchain_now->frch_obstack) < nchars)
|
||||
{
|
||||
unsigned int n;
|
||||
|
Loading…
Reference in New Issue
Block a user