comparison gcc/ggc-none.c @ 67:f6334be47118

update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
date Tue, 22 Mar 2011 17:18:12 +0900
parents a06113de4d67
children 04ced10e8804
comparison
equal deleted inserted replaced
65:65488c3d617d 67:f6334be47118
1 /* Null garbage collection for the GNU compiler. 1 /* Null garbage collection for the GNU compiler.
2 Copyright (C) 1998, 1999, 2000, 2003, 2004, 2005, 2007 2 Copyright (C) 1998, 1999, 2000, 2003, 2004, 2005, 2007, 2010
3 Free Software Foundation, Inc. 3 Free Software Foundation, Inc.
4 4
5 This file is part of GCC. 5 This file is part of GCC.
6 6
7 GCC is free software; you can redistribute it and/or modify it 7 GCC is free software; you can redistribute it and/or modify it
38 { 38 {
39 return xmalloc (size); 39 return xmalloc (size);
40 } 40 }
41 41
42 void * 42 void *
43 ggc_alloc_stat (size_t size MEM_STAT_DECL) 43 ggc_internal_alloc_stat (size_t size MEM_STAT_DECL)
44 { 44 {
45 return xmalloc (size); 45 return xmalloc (size);
46 } 46 }
47 47
48 void * 48 void *
49 ggc_alloc_cleared_stat (size_t size MEM_STAT_DECL) 49 ggc_internal_cleared_alloc_stat (size_t size MEM_STAT_DECL)
50 { 50 {
51 return xcalloc (size, 1); 51 return xcalloc (size, 1);
52 } 52 }
53 53
54 void * 54 void *
60 void 60 void
61 ggc_free (void *p) 61 ggc_free (void *p)
62 { 62 {
63 free (p); 63 free (p);
64 } 64 }
65
66 struct alloc_zone
67 {
68 int dummy;
69 };
70
71 struct alloc_zone rtl_zone;
72 struct alloc_zone tree_zone;
73 struct alloc_zone tree_id_zone;
74
75 #if defined (GGC_ZONE) && !defined (GENERATOR_FILE)
76
77 void *
78 ggc_internal_alloc_zone_stat (size_t size,
79 struct alloc_zone * ARG_UNUSED(z) MEM_STAT_DECL)
80 {
81 return xmalloc (size);
82 }
83
84 void *
85 ggc_internal_cleared_alloc_zone_stat (size_t size,
86 struct alloc_zone * ARG_UNUSED(z)
87 MEM_STAT_DECL)
88 {
89 return xcalloc (size, 1);
90 }
91
92 #endif