projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Improved addressmode optimisation for conv nodes
[libfirm]
/
ir
/
be
/
ia32
/
ia32_gen_decls.c
diff --git
a/ir/be/ia32/ia32_gen_decls.c
b/ir/be/ia32/ia32_gen_decls.c
index
303d698
..
46f0e31
100644
(file)
--- a/
ir/be/ia32/ia32_gen_decls.c
+++ b/
ir/be/ia32/ia32_gen_decls.c
@@
-189,6
+189,10
@@
static void do_dump_atomic_init(obstack_t *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_ofs_ent:
+ obstack_printf(obst, "%d", get_entity_offset_bytes(get_SymConst_entity(init)));
+ break;
+
case symconst_type_size:
obstack_printf(obst, "%d", get_type_size_bytes(get_SymConst_type(init)));
break;
case symconst_type_size:
obstack_printf(obst, "%d", get_type_size_bytes(get_SymConst_type(init)));
break;
@@
-203,7
+207,7
@@
static void do_dump_atomic_init(obstack_t *obst, ir_node *init)
break;
default:
break;
default:
- assert(
0 &&
"dump_atomic_init(): don't know how to init from this SymConst");
+ assert(
!
"dump_atomic_init(): don't know how to init from this SymConst");
}
return;
}
return;
@@
-415,7
+419,7
@@
static void dump_global(const be_main_env_t *main_env,
/* check, whether it is initialized, if yes create data */
if (variability != variability_uninitialized) {
/* check, whether it is initialized, if yes create data */
if (variability != variability_uninitialized) {
- be_dbg_
global
(main_env->db_handle, obst, ent);
+ be_dbg_
variable
(main_env->db_handle, obst, ent);
if (visibility == visibility_external_visible) {
obstack_printf(obst, ".globl\t%s\n", ld_name);
if (visibility == visibility_external_visible) {
obstack_printf(obst, ".globl\t%s\n", ld_name);
@@
-563,7
+567,7
@@
static void dump_global(const be_main_env_t *main_env,
obstack_printf(obst, "\n");
}
else if (visibility != visibility_external_allocated) {
obstack_printf(obst, "\n");
}
else if (visibility != visibility_external_allocated) {
- be_dbg_
global
(main_env->db_handle, comm_obstack, ent);
+ be_dbg_
variable
(main_env->db_handle, comm_obstack, ent);
/* uninitialized and NOT external */
if (get_entity_owner(ent) != get_tls_type()) {
/* uninitialized and NOT external */
if (get_entity_owner(ent) != get_tls_type()) {