From: Michael Beck Date: Wed, 2 Apr 2008 18:34:23 +0000 (+0000) Subject: switch off usage of global_pointer again: globals are only SymConsts. -fpic will... X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=5769953b10229d49283ae269dcfdf8c883afe228;p=cparser switch off usage of global_pointer again: globals are only SymConsts. -fpic will be completely handled by the beabi [r19074] --- diff --git a/ast2firm.c b/ast2firm.c index 0baaaab..489d365 100644 --- a/ast2firm.c +++ b/ast2firm.c @@ -1090,18 +1090,12 @@ static ir_node *wide_character_constant_to_firm(const const_expression_t *cnst) } static ir_node *create_global(dbg_info *dbgi, ir_mode *mode, - ir_entity *entity) + ir_entity *entity) { assert(entity != NULL); - if(firm_opt.pic) { - ir_graph *irg = current_ir_graph; - return new_d_simpleSel(dbgi, get_irg_no_mem(irg), - get_irg_globals(irg), entity); - } else { - symconst_symbol sym; - sym.entity_p = entity; - return new_d_SymConst(dbgi, mode, sym, symconst_addr_ent); - } + symconst_symbol sym; + sym.entity_p = entity; + return new_d_SymConst(dbgi, mode, sym, symconst_addr_ent); } static ir_node *string_to_firm(const source_position_t *const src_pos,