projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
adapted to some new backend structures
[libfirm]
/
ir
/
be
/
mips
/
mips_gen_decls.c
diff --git
a/ir/be/mips/mips_gen_decls.c
b/ir/be/mips/mips_gen_decls.c
index
b00c3a7
..
6522110
100644
(file)
--- a/
ir/be/mips/mips_gen_decls.c
+++ b/
ir/be/mips/mips_gen_decls.c
@@
-10,15
+10,7
@@
#include <assert.h>
#include "xmalloc.h"
#include <assert.h>
#include "xmalloc.h"
-#include <obstack.h>
-
-#ifdef obstack_chunk_alloc
-# undef obstack_chunk_alloc
-# define obstack_chunk_alloc xmalloc
-#else
-# define obstack_chunk_alloc xmalloc
-# define obstack_chunk_free free
-#endif
+#include "obst.h"
#include "tv.h"
#include "irnode.h"
#include "tv.h"
#include "irnode.h"
@@
-27,8
+19,6
@@
#include "mips_gen_decls.h"
#include "mips_gen_decls.h"
-extern int obstack_printf(struct obstack *obst, char *fmt, ...);
-
/************************************************************************/
/*
/************************************************************************/
/*
@@
-151,10
+141,14
@@
static void do_dump_atomic_init(struct obstack *obst, ir_node *init)
obstack_printf(obst, "%s", get_entity_ld_name(get_SymConst_entity(init)));
break;
obstack_printf(obst, "%s", get_entity_ld_name(get_SymConst_entity(init)));
break;
- case symconst_size:
+ case symconst_
type_
size:
obstack_printf(obst, "%d", get_type_size_bytes(get_SymConst_type(init)));
break;
obstack_printf(obst, "%d", get_type_size_bytes(get_SymConst_type(init)));
break;
+ case symconst_type_align:
+ obstack_printf(obst, "%d", get_type_alignment_bytes(get_SymConst_type(init)));
+ break;
+
default:
assert(0 && "dump_atomic_init(): don't know how to init from this SymConst");
}
default:
assert(0 && "dump_atomic_init(): don't know how to init from this SymConst");
}