Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
c64c5e51
Commit
c64c5e51
authored
Jun 01, 2009
by
Matthias Braun
Browse files
fix a bunch of bugs in my last commit (no idea why I didn't see them on my mac)
[r26082]
parent
bd0527dc
Changes
4
Hide whitespace changes
Inline
Side-by-side
ir/be/begnuas.c
View file @
c64c5e51
...
...
@@ -1139,6 +1139,9 @@ static void dump_global(be_gas_decl_env_t *env, ir_entity *ent)
if
(
is_Method_type
(
type
)
&&
section
!=
GAS_SECTION_PIC_TRAMPOLINES
)
{
return
;
}
if
(
type
==
firm_code_type
)
{
return
;
}
if
(
section
!=
(
be_gas_section_t
)
-
1
)
{
emit_as_common
=
0
;
...
...
ir/ir/irnode.c
View file @
c64c5e51
...
...
@@ -822,6 +822,7 @@ ir_entity *create_Block_entity(ir_node *block) {
nr
=
get_irp_next_label_nr
();
set_entity_label
(
entity
,
nr
);
set_entity_compiler_generated
(
entity
,
1
);
set_entity_allocation
(
entity
,
allocation_static
);
block
->
attr
.
block
.
entity
=
entity
;
}
...
...
ir/tr/type.c
View file @
c64c5e51
...
...
@@ -98,7 +98,6 @@ void firm_init_type(dbg_info *builtin_db, unsigned def_cc_mask) {
remove_irp_type
(
firm_none_type
);
firm_code_type
=
new_type
(
tpop_code
,
mode_ANY
,
new_id_from_str
(
"type_code"
),
builtin_db
);
set_type_size_bytes
(
firm_code_type
,
0
);
set_type_state
(
firm_code_type
,
layout_fixed
);
remove_irp_type
(
firm_code_type
);
...
...
ir/tr/typewalk.c
View file @
c64c5e51
...
...
@@ -144,7 +144,6 @@ static void do_type_walk(type_or_ent tore,
case
k_type
:
mark_type_visited
(
tp
);
switch
(
get_type_tpop_code
(
tp
))
{
case
tpo_class
:
n_types
=
get_class_n_supertypes
(
tp
);
for
(
i
=
0
;
i
<
n_types
;
++
i
)
{
...
...
@@ -208,13 +207,15 @@ static void do_type_walk(type_or_ent tore,
do_type_walk
(
cont
,
pre
,
post
,
env
);
break
;
case
tpo_code
:
case
tpo_primitive
:
case
tpo_id
:
case
tpo_none
:
case
tpo_unknown
:
/* a leave. */
break
;
default:
case
tpo_uninitialized
:
case
tpo_max
:
assert
(
0
&&
"Faulty type"
);
break
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment