aboutsummaryrefslogtreecommitdiff
path: root/gcc/print-rtl.c
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde+gcc@tbsaunde.org>2017-05-14 00:38:53 +0000
committerTrevor Saunders <tbsaunde@gcc.gnu.org>2017-05-14 00:38:53 +0000
commit8f9b31f7f161bd00d9c7847f117591ec85f9484d (patch)
treed8ac6eee25a394987b1ddd260544bce385bd0857 /gcc/print-rtl.c
parent0e3de1d41eb6179eac75c8ae44c16c1ba1d2f5dd (diff)
downloadgcc-8f9b31f7f161bd00d9c7847f117591ec85f9484d.zip
gcc-8f9b31f7f161bd00d9c7847f117591ec85f9484d.tar.gz
gcc-8f9b31f7f161bd00d9c7847f117591ec85f9484d.tar.bz2
move several bitmaps from gc memory to the default obstack and use auto_bitmap
These places where probably trying to use the default bitmap obstack, but passing 0 to bitmap_initialize actually uses gc allocation. In any case they are all cleaned up before going out of scope so using auto_bitmap should be fine. gcc/ChangeLog: 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> * haifa-sched.c (estimate_shadow_tick): Replace manual bitmap management with auto_bitmap. (fix_inter_tick): Likewise. (fix_recovery_deps): Likewise. * ira.c (add_store_equivs): Likewise. (find_moveable_pseudos): Likewise. (split_live_ranges_for_shrink_wrap): Likewise. * print-rtl.c (rtx_reuse_manager::rtx_reuse_manager): Likewise. (rtx_reuse_manager::seen_def_p): Likewise. (rtx_reuse_manager::set_seen_def): Likewise. * print-rtl.h (class rtx_reuse_manager): Likewise. From-SVN: r248022
Diffstat (limited to 'gcc/print-rtl.c')
-rw-r--r--gcc/print-rtl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c
index 30fd759..20bdafd 100644
--- a/gcc/print-rtl.c
+++ b/gcc/print-rtl.c
@@ -90,7 +90,6 @@ rtx_writer::rtx_writer (FILE *outf, int ind, bool simple, bool compact,
rtx_reuse_manager::rtx_reuse_manager ()
: m_next_id (0)
{
- bitmap_initialize (&m_defs_seen, NULL);
}
/* Determine if X is of a kind suitable for dumping via reuse_rtx. */
@@ -158,7 +157,7 @@ rtx_reuse_manager::has_reuse_id (const_rtx x, int *out)
bool
rtx_reuse_manager::seen_def_p (int reuse_id)
{
- return bitmap_bit_p (&m_defs_seen, reuse_id);
+ return bitmap_bit_p (m_defs_seen, reuse_id);
}
/* Record that the definition of the given reuse ID has been seen. */
@@ -166,7 +165,7 @@ rtx_reuse_manager::seen_def_p (int reuse_id)
void
rtx_reuse_manager::set_seen_def (int reuse_id)
{
- bitmap_set_bit (&m_defs_seen, reuse_id);
+ bitmap_set_bit (m_defs_seen, reuse_id);
}
#endif /* #ifndef GENERATOR_FILE */