ignore gcc --unroll-loops
authorMatthias Braun <matze@braunis.de>
Wed, 7 Dec 2011 17:54:57 +0000 (18:54 +0100)
committerMatthias Braun <matze@braunis.de>
Wed, 7 Dec 2011 17:54:57 +0000 (18:54 +0100)
main.c

diff --git a/main.c b/main.c
index e1660ee..1090cba 100644 (file)
--- a/main.c
+++ b/main.c
@@ -1306,6 +1306,7 @@ int main(int argc, char **argv)
                                                   streq(opt, "align-loops")             ||
                                                   streq(opt, "align-jumps")             ||
                                                   streq(opt, "align-functions")         ||
+                                                  streq(opt, "unroll-loops")            ||
                                                   streq(opt, "PIC")                     ||
                                                   streq(opt, "stack-protector")         ||
                                                   streq(opt, "stack-protector-all")) {
@@ -1573,6 +1574,8 @@ int main(int argc, char **argv)
                                        mode         = CompileDump;
                                } else if (streq(option, "export-ir")) {
                                        mode = CompileExportIR;
+                               } else if (streq(option, "unroll-loops")) {
+                                       /* ignore (gcc compatibility) */
                                } else {
                                        fprintf(stderr, "error: unknown argument '%s'\n", arg);
                                        argument_errors = true;