write an error message if architecture is unknown
authorMatthias Braun <matze@braunis.de>
Wed, 9 Sep 2009 13:39:19 +0000 (13:39 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 9 Sep 2009 13:39:19 +0000 (13:39 +0000)
[r26506]

main.c

diff --git a/main.c b/main.c
index dc9cb03..3245654 100644 (file)
--- 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)