projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e817aee
)
write an error message if architecture is unknown
author
Matthias Braun
<matze@braunis.de>
Wed, 9 Sep 2009 13:39:19 +0000
(13:39 +0000)
committer
Matthias Braun
<matze@braunis.de>
Wed, 9 Sep 2009 13:39:19 +0000
(13:39 +0000)
[r26506]
main.c
patch
|
blob
|
history
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)