emit-rtl.c (gen_rtx_CONST_INT): Create cached CONST_INTs on the permanent obstack.
* emit-rtl.c (gen_rtx_CONST_INT): Create cached CONST_INTs on the permanent obstack. From-SVN: r32861
This commit is contained in:
parent
07aa0b04f2
commit
8dd2076d8a
2 changed files with 15 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2000-04-01 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
* emit-rtl.c (gen_rtx_CONST_INT): Create cached CONST_INTs on the
|
||||
permanent obstack.
|
||||
|
||||
2000-04-01 Zack Weinberg <zack@wolery.cumb.org>
|
||||
|
||||
* cpplib.c: Include symcat.h. Add 'origin' field to struct
|
||||
|
|
|
@ -253,7 +253,16 @@ gen_rtx_CONST_INT (mode, arg)
|
|||
(hashval_t) arg,
|
||||
/*insert=*/1);
|
||||
if (!*slot)
|
||||
*slot = gen_rtx_raw_CONST_INT (VOIDmode, arg);
|
||||
{
|
||||
if (!ggc_p)
|
||||
{
|
||||
push_obstacks_nochange ();
|
||||
end_temporary_allocation ();
|
||||
}
|
||||
*slot = gen_rtx_raw_CONST_INT (VOIDmode, arg);
|
||||
if (!ggc_p)
|
||||
pop_obstacks ();
|
||||
}
|
||||
|
||||
return (rtx) *slot;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue