summaryrefslogtreecommitdiff
path: root/include/obstack.h
diff options
context:
space:
mode:
authorbernie <bernie@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-13 20:54:38 +0000
committerbernie <bernie@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-13 20:54:38 +0000
commit2c04b9516a7c03bfeb93d680905b42071380c24b (patch)
treef8cecab53232e9ebcd43e6bdf97e6e810b05c431 /include/obstack.h
parent70a8c47a53cee2379839901f45b6c2d2a74c81fc (diff)
downloadgcc-2c04b9516a7c03bfeb93d680905b42071380c24b.tar.gz
* libiberty.h (ASTRDUP): Add casts required for stricter
type conversion rules of C++. * obstack.h (obstack_free): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84642 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include/obstack.h')
-rw-r--r--include/obstack.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/obstack.h b/include/obstack.h
index 5496ff24071..007853e805d 100644
--- a/include/obstack.h
+++ b/include/obstack.h
@@ -494,9 +494,9 @@ __extension__ \
# define obstack_free(OBSTACK, OBJ) \
__extension__ \
({ struct obstack *__o = (OBSTACK); \
- void *__obj = (OBJ); \
+ void *__obj = (void *) (OBJ); \
if (__obj > (void *)__o->chunk && __obj < (void *)__o->chunk_limit) \
- __o->next_free = __o->object_base = __obj; \
+ __o->next_free = __o->object_base = (char *) __obj; \
else (obstack_free) (__o, __obj); })
#else /* not __GNUC__ or not __STDC__ */