Commit 7b6a6b29 authored by Matthias Braun's avatar Matthias Braun
Browse files

PIC fixes for global vars

[r25655]
parent 1553b019
......@@ -2198,7 +2198,7 @@ static ir_entity *get_pic_symbol(be_main_env_t *env, ir_entity *entity)
static int can_address_relative(ir_entity *entity)
{
return get_entity_variability(entity) == variability_initialized
|| get_entity_visibility(entity) == visibility_local;
&& get_entity_visibility(entity) != visibility_external_allocated;
}
/** patches SymConsts to work in position independent code */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment