aboutsummaryrefslogtreecommitdiff
path: root/gcc/ggc-simple.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ggc-simple.c')
-rw-r--r--gcc/ggc-simple.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/ggc-simple.c b/gcc/ggc-simple.c
index 6608d8c..6d1545c 100644
--- a/gcc/ggc-simple.c
+++ b/gcc/ggc-simple.c
@@ -217,11 +217,11 @@ ggc_alloc_obj (size, zero)
int
ggc_set_mark (p)
- void *p;
+ const void *p;
{
struct ggc_mem *x;
- x = (struct ggc_mem *) ((char *)p - offsetof (struct ggc_mem, u));
+ x = (struct ggc_mem *) ((const char *)p - offsetof (struct ggc_mem, u));
#ifdef GGC_ALWAYS_VERIFY
if (! tree_lookup (x))
abort ();
@@ -241,14 +241,14 @@ ggc_set_mark (p)
void
ggc_mark_if_gcable (p)
- void *p;
+ const void *p;
{
struct ggc_mem *x;
if (p == NULL)
return;
- x = (struct ggc_mem *) ((char *)p - offsetof (struct ggc_mem, u));
+ x = (struct ggc_mem *) ((const char *)p - offsetof (struct ggc_mem, u));
if (! tree_lookup (x))
return;
@@ -264,10 +264,10 @@ ggc_mark_if_gcable (p)
size_t
ggc_get_size (p)
- void *p;
+ const void *p;
{
struct ggc_mem *x
- = (struct ggc_mem *) ((char *)p - offsetof (struct ggc_mem, u));
+ = (struct ggc_mem *) ((const char *)p - offsetof (struct ggc_mem, u));
return x->size;
}