projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correct the ir_relation used for implicit comparisons with 0.
[cparser]
/
main.c
diff --git
a/main.c
b/main.c
index
f9e7e6c
..
0c9b854
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-1428,6
+1428,9
@@
int main(int argc, char **argv)
int res = be_parse_arg(arch_opt);
if (res == 0)
argument_errors = true;
int res = be_parse_arg(arch_opt);
if (res == 0)
argument_errors = true;
+ } else if (streq(opt, "sse2")) {
+ /* ignore for now, our x86 backend always uses sse when
+ * sse is requested */
} else {
long int value = strtol(opt, NULL, 10);
if (value == 0) {
} else {
long int value = strtol(opt, NULL, 10);
if (value == 0) {
@@
-1900,6
+1903,7
@@
do_parsing:
if (already_constructed_firm) {
panic("compiling multiple files/translation units not possible");
}
if (already_constructed_firm) {
panic("compiling multiple files/translation units not possible");
}
+ init_implicit_optimizations();
translation_unit_to_firm(unit);
already_constructed_firm = true;
timer_pop(t_construct);
translation_unit_to_firm(unit);
already_constructed_firm = true;
timer_pop(t_construct);