Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
b63f8d48
Commit
b63f8d48
authored
Dec 31, 2014
by
Christoph Mallon
Browse files
ia32: Do not make a pointless copy of be_options.pic.
parent
7fbbab68
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_emitter.c
View file @
b63f8d48
...
...
@@ -70,7 +70,6 @@ static const ia32_isa_t *isa;
static
char
pic_base_label
[
128
];
static
ir_label_t
exc_label_id
;
static
bool
mark_spill_reload
;
static
bool
do_pic
;
static
bool
sp_relative
;
static
int
frame_type_size
;
...
...
@@ -203,7 +202,7 @@ static void ia32_emit_entity(ir_entity *entity, int no_pic_adjust)
}
}
if
(
do_
pic
&&
!
no_pic_adjust
&&
get_entity_type
(
entity
)
!=
get_code_type
())
{
if
(
be_options
.
pic
&&
!
no_pic_adjust
&&
get_entity_type
(
entity
)
!=
get_code_type
())
{
be_emit_char
(
'-'
);
be_emit_string
(
pic_base_label
);
}
...
...
@@ -1475,8 +1474,7 @@ static void ia32_emit_function_text(ir_graph *const irg, ir_node **const blk_sch
const
arch_env_t
*
arch_env
=
be_get_irg_arch_env
(
irg
);
be_stack_layout_t
*
layout
=
be_get_irg_stack_layout
(
irg
);
isa
=
(
ia32_isa_t
*
)
arch_env
;
do_pic
=
be_options
.
pic
;
isa
=
(
ia32_isa_t
*
)
arch_env
;
be_gas_elf_type_char
=
'@'
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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