From: Matthias Braun Date: Wed, 9 Sep 2009 13:39:19 +0000 (+0000) Subject: write an error message if architecture is unknown X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=3e06034bed1934dd7916fd37ba46dd6f7527dfe3;p=cparser write an error message if architecture is unknown [r26506] --- diff --git a/main.c b/main.c index dc9cb03..3245654 100644 --- a/main.c +++ b/main.c @@ -957,9 +957,10 @@ int main(int argc, char **argv) GET_ARG_AFTER(opt, "-march="); snprintf(arch_opt, sizeof(arch_opt), "%s-arch=%s", cpu_arch, opt); int res = firm_be_option(arch_opt); - if (res == 0) + if (res == 0) { + fprintf(stderr, "Unknown architecture '%s'\n", arch_opt); argument_errors = true; - else { + } else { snprintf(arch_opt, sizeof(arch_opt), "%s-opt=%s", cpu_arch, opt); int res = firm_be_option(arch_opt); if (res == 0)