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
a68dfa0a
Commit
a68dfa0a
authored
Sep 16, 2008
by
Christoph Mallon
Browse files
Fix possible loop in DAG while building start Barrier.
[r22000]
parent
c601d487
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/beabi.c
View file @
a68dfa0a
...
@@ -1729,6 +1729,10 @@ static void modify_irg(be_abi_irg_t *env)
...
@@ -1729,6 +1729,10 @@ static void modify_irg(be_abi_irg_t *env)
DBG
((
dbg
,
LEVEL_1
,
"introducing abi on %+F
\n
"
,
irg
));
DBG
((
dbg
,
LEVEL_1
,
"introducing abi on %+F
\n
"
,
irg
));
/* Must fetch memory here, otherwise the start Barrier gets the wrong
* memory, which leads to loops in the DAG. */
old_mem
=
get_irg_initial_mem
(
irg
);
/* set the links of all frame entities to NULL, we use it
/* set the links of all frame entities to NULL, we use it
to detect if an entity is already linked in the value_param_list */
to detect if an entity is already linked in the value_param_list */
tp
=
get_method_value_param_type
(
method_type
);
tp
=
get_method_value_param_type
(
method_type
);
...
@@ -1856,7 +1860,6 @@ static void modify_irg(be_abi_irg_t *env)
...
@@ -1856,7 +1860,6 @@ static void modify_irg(be_abi_irg_t *env)
obstack_free
(
&
env
->
obst
,
rm
);
obstack_free
(
&
env
->
obst
,
rm
);
/* create a new initial memory proj */
/* create a new initial memory proj */
old_mem
=
get_irg_initial_mem
(
irg
);
assert
(
is_Proj
(
old_mem
));
assert
(
is_Proj
(
old_mem
));
new_mem_proj
=
new_r_Proj
(
irg
,
get_nodes_block
(
old_mem
),
new_mem_proj
=
new_r_Proj
(
irg
,
get_nodes_block
(
old_mem
),
new_r_Unknown
(
irg
,
mode_T
),
mode_M
,
new_r_Unknown
(
irg
,
mode_T
),
mode_M
,
...
...
Write
Preview
Supports
Markdown
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