aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto-streamer.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2019-06-26 11:09:51 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2019-06-26 11:09:51 +0000
commit6ab601efaa82b47e0ea1d3c4b14e052b07c79280 (patch)
treec69a4e5e8886fff358741931c089bdb0b7336a6c /gcc/lto-streamer.c
parent7cfb7260526af8cc8f8d416dcde0f8f8d397eb37 (diff)
downloadgcc-6ab601efaa82b47e0ea1d3c4b14e052b07c79280.zip
gcc-6ab601efaa82b47e0ea1d3c4b14e052b07c79280.tar.gz
gcc-6ab601efaa82b47e0ea1d3c4b14e052b07c79280.tar.bz2
lto-streamer.h (lto_bitmap_alloc): Remove.
2019-06-26 Richard Biener <rguenther@suse.de> * lto-streamer.h (lto_bitmap_alloc): Remove. (lto_bitmap_free): Likewise. * lto-streamer.c (lto_bitmap_alloc): Remove. (lto_bitmap_free): Likewise. (lto_obstack): Likewise. (lto_obstack_initialized): Likewise. * lto-streamer-out.c (lto_output): Use own obstack for local bitmap, free it consistently. From-SVN: r272687
Diffstat (limited to 'gcc/lto-streamer.c')
-rw-r--r--gcc/lto-streamer.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/gcc/lto-streamer.c b/gcc/lto-streamer.c
index 7852ffc..bd0126f 100644
--- a/gcc/lto-streamer.c
+++ b/gcc/lto-streamer.c
@@ -35,11 +35,6 @@ along with GCC; see the file COPYING3. If not see
/* Statistics gathered during LTO, WPA and LTRANS. */
struct lto_stats_d lto_stats;
-/* LTO uses bitmaps with different life-times. So use a separate
- obstack for all LTO bitmaps. */
-static bitmap_obstack lto_obstack;
-static bool lto_obstack_initialized;
-
const char *section_name_prefix = LTO_SECTION_NAME_PREFIX;
/* Set when streaming LTO for offloading compiler. */
bool lto_stream_offload_p;
@@ -113,28 +108,6 @@ lto_tag_name (enum LTO_tags tag)
}
-/* Allocate a bitmap from heap. Initializes the LTO obstack if necessary. */
-
-bitmap
-lto_bitmap_alloc (void)
-{
- if (!lto_obstack_initialized)
- {
- bitmap_obstack_initialize (&lto_obstack);
- lto_obstack_initialized = true;
- }
- return BITMAP_ALLOC (&lto_obstack);
-}
-
-/* Free bitmap B. */
-
-void
-lto_bitmap_free (bitmap b)
-{
- BITMAP_FREE (b);
-}
-
-
/* Get a section name for a particular type or name. The NAME field
is only used if SECTION_TYPE is LTO_section_function_body. For all
others it is ignored. The callee of this function is responsible