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
08a9fb97
Commit
08a9fb97
authored
Feb 16, 2016
by
Andreas Seltenreich
Browse files
amd64: Avoid rip-relative call of a Const in PIC.
parent
2a1d4038
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/amd64/amd64_transform.c
View file @
08a9fb97
...
@@ -1804,7 +1804,9 @@ static ir_node *gen_Call(ir_node *const node)
...
@@ -1804,7 +1804,9 @@ static ir_node *gen_Call(ir_node *const node)
int
in_arity
=
0
;
int
in_arity
=
0
;
ir_node
**
const
sync_ins
=
ALLOCAN
(
ir_node
*
,
1
+
1
+
n_params
);
ir_node
**
const
sync_ins
=
ALLOCAN
(
ir_node
*
,
1
+
1
+
n_params
);
int
sync_arity
=
0
;
int
sync_arity
=
0
;
if
(
match_immediate_32
(
&
addr
.
immediate
,
callee
,
true
,
true
))
{
if
((
!
is_Const
(
callee
)
||
be_options
.
pic_style
==
BE_PIC_NONE
)
&&
match_immediate_32
(
&
addr
.
immediate
,
callee
,
true
,
true
))
{
op_mode
=
AMD64_OP_IMM32
;
op_mode
=
AMD64_OP_IMM32
;
}
else
{
}
else
{
ir_node
*
load
=
source_am_possible
(
block
,
callee
);
ir_node
*
load
=
source_am_possible
(
block
,
callee
);
...
...
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