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
95fbf32c
Commit
95fbf32c
authored
Apr 13, 2008
by
Michael Beck
Browse files
C99 features removed
[r19261]
parent
1f945b23
Changes
1
Show whitespace changes
Inline
Side-by-side
ir/be/beabi.c
View file @
95fbf32c
...
...
@@ -839,11 +839,15 @@ static ir_node *adjust_alloc_size(unsigned stack_alignment, ir_node *size,
ir_graph
*
irg
,
ir_node
*
block
,
dbg_info
*
dbg
)
{
if
(
stack_alignment
>
1
)
{
ir_mode
*
mode
;
tarval
*
tv
;
ir_node
*
mask
;
assert
(
is_po2
(
stack_alignment
));
ir_mode
*
mode
=
get_irn_mode
(
size
);
tarval
*
tv
=
new_tarval_from_long
(
stack_alignment
-
1
,
mode
);
ir_node
*
mask
=
new_r_Const
(
irg
,
block
,
mode
,
tv
);
mode
=
get_irn_mode
(
size
);
tv
=
new_tarval_from_long
(
stack_alignment
-
1
,
mode
);
mask
=
new_r_Const
(
irg
,
block
,
mode
,
tv
);
size
=
new_rd_Add
(
dbg
,
irg
,
block
,
size
,
mask
,
mode
);
tv
=
new_tarval_from_long
(
-
(
long
)
stack_alignment
,
mode
);
...
...
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