From: Matthias Braun Date: Fri, 14 Nov 2008 12:35:45 +0000 (+0000) Subject: most of the options are handled in main.c now X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=562a2594805cb1818aabc6cd3c4639aa0dfeddc3;p=cparser most of the options are handled in main.c now [r23648] --- diff --git a/ast2firm.c b/ast2firm.c index 355079c..459be89 100644 --- a/ast2firm.c +++ b/ast2firm.c @@ -5411,12 +5411,6 @@ static void scope_to_firm(scope_t *scope) } } -static void set_be_option(const char *option) -{ - int res = firm_be_option(option); - assert(res); -} - void init_ast2firm(void) { obstack_init(&asm_obst); @@ -5429,17 +5423,11 @@ void init_ast2firm(void) switch (firm_opt.os_support) { case OS_SUPPORT_MINGW: create_ld_ident = create_ld_ident_win32; - set_be_option("ia32-gasmode=mingw"); - break; case OS_SUPPORT_LINUX: create_ld_ident = create_ld_ident_linux_elf; - set_be_option("ia32-gasmode=elf"); break; case OS_SUPPORT_MACHO: create_ld_ident = create_ld_ident_macho; - set_be_option("ia32-gasmode=macho"); - set_be_option("ia32-stackalign=4"); - set_be_option("pic"); break; }