summaryrefslogtreecommitdiffhomepage
path: root/ir/ident
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2010-11-04 13:15:30 +0100
committerMatthias Braun <matze@braunis.de>2010-11-04 13:15:30 +0100
commitce6161a7e42a48f7422b7babcc64d8ace18e2687 (patch)
tree2fa5272f9220c4e08a5309057f44646fb9f882a7 /ir/ident
parentfd269bc519af571ad9a96afd65bcd504f3034f8b (diff)
make firm compilable with a c++ compiler
[r28127]
Diffstat (limited to 'ir/ident')
-rw-r--r--ir/ident/mangle.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ir/ident/mangle.c b/ir/ident/mangle.c
index c27798e..28a5e3d 100644
--- a/ir/ident/mangle.c
+++ b/ir/ident/mangle.c
@@ -57,7 +57,7 @@ ident *id_mangle_entity(const ir_entity *ent)
obstack_1grow(&mangle_obst,'_');
obstack_grow(&mangle_obst, get_id_str(ent->name), get_id_strlen(ent->name));
len = obstack_object_size(&mangle_obst);
- cp = obstack_finish(&mangle_obst);
+ cp = (char*)obstack_finish(&mangle_obst);
res = new_id_from_chars(cp, len);
obstack_free(&mangle_obst, cp);
return res;
@@ -74,7 +74,7 @@ ident *id_mangle(ident *first, ident *scnd)
obstack_grow(&mangle_obst, get_id_str(first), get_id_strlen(first));
obstack_grow(&mangle_obst, get_id_str(scnd), get_id_strlen(scnd));
len = obstack_object_size(&mangle_obst);
- cp = obstack_finish(&mangle_obst);
+ cp = (char*)obstack_finish(&mangle_obst);
res = new_id_from_chars(cp, len);
obstack_free(&mangle_obst, cp);
return res;
@@ -91,7 +91,7 @@ ident *id_mangle3(const char *prefix, ident *scnd, const char *suffix)
obstack_grow(&mangle_obst, get_id_str(scnd), get_id_strlen(scnd));
obstack_grow(&mangle_obst, suffix, strlen(suffix));
len = obstack_object_size(&mangle_obst);
- cp = obstack_finish(&mangle_obst);
+ cp = (char*)obstack_finish(&mangle_obst);
res = new_id_from_chars(cp, len);
obstack_free(&mangle_obst, cp);
return res;
@@ -108,7 +108,7 @@ static ident *id_mangle_3(ident *first, char c, ident *scnd)
obstack_1grow(&mangle_obst, c);
obstack_grow(&mangle_obst,get_id_str(scnd),get_id_strlen(scnd));
len = obstack_object_size(&mangle_obst);
- cp = obstack_finish(&mangle_obst);
+ cp = (char*)obstack_finish(&mangle_obst);
res = new_id_from_chars(cp, len);
obstack_free(&mangle_obst, cp);
return res;