mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-16 01:39:51 +08:00
ggc-zone.c (ggc_pch_read): Fix conditional compilation.
2010-11-30 Laurynas Biveinis <laurynas.biveinis@gmail.com> * ggc-zone.c (ggc_pch_read): Fix conditional compilation. * ggc-none.c (ggc_internal_alloc_zone_stat) (ggc_internal_cleared_alloc_zone_stat): New. From-SVN: r167284
This commit is contained in:
parent
042abba200
commit
d88f54b340
@ -1,3 +1,9 @@
|
||||
2010-11-30 Laurynas Biveinis <laurynas.biveinis@gmail.com>
|
||||
|
||||
* ggc-zone.c (ggc_pch_read): Fix conditional compilation.
|
||||
* ggc-none.c (ggc_internal_alloc_zone_stat)
|
||||
(ggc_internal_cleared_alloc_zone_stat): New.
|
||||
|
||||
2010-11-29 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
|
||||
|
||||
* config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Check
|
||||
|
@ -71,3 +71,22 @@ struct alloc_zone
|
||||
struct alloc_zone rtl_zone;
|
||||
struct alloc_zone tree_zone;
|
||||
struct alloc_zone tree_id_zone;
|
||||
|
||||
#if defined (GGC_ZONE) && !defined (GENERATOR_FILE)
|
||||
|
||||
void *
|
||||
ggc_internal_alloc_zone_stat (size_t size,
|
||||
struct alloc_zone * ARG_UNUSED(z) MEM_STAT_DECL)
|
||||
{
|
||||
return xmalloc (size);
|
||||
}
|
||||
|
||||
void *
|
||||
ggc_internal_cleared_alloc_zone_stat (size_t size,
|
||||
struct alloc_zone * ARG_UNUSED(z)
|
||||
MEM_STAT_DECL)
|
||||
{
|
||||
return xcalloc (size, 1);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -2464,7 +2464,7 @@ ggc_pch_read (FILE *f, void *addr)
|
||||
|
||||
/* We've just read in a PCH file. So, every object that used to be
|
||||
allocated is now free. */
|
||||
#ifdef 0 && GATHER_STATISTICS
|
||||
#ifdef GATHER_STATISTICS
|
||||
zone_allocate_marks ();
|
||||
ggc_prune_overhead_list ();
|
||||
zone_free_marks ();
|
||||
|
Loading…
Reference in New Issue
Block a user