Ooops, streq is the right function here.
authorSebastian Buchwald <Sebastian.Buchwald@kit.edu>
Fri, 8 Jul 2011 11:41:56 +0000 (13:41 +0200)
committerSebastian Buchwald <Sebastian.Buchwald@kit.edu>
Fri, 8 Jul 2011 11:42:02 +0000 (13:42 +0200)
main.c

diff --git a/main.c b/main.c
index 76e443a..0db91f4 100644 (file)
--- a/main.c
+++ b/main.c
@@ -1058,14 +1058,14 @@ int main(int argc, char **argv)
                                        }
                                } else if (strstart(orig_opt, "message-length=")) {
                                        /* ignore: would only affect error message format */
-                               } else if (strstart(orig_opt, "fast-math") ||
-                                          strstart(orig_opt, "fp-fast")) {
+                               } else if (streq(orig_opt, "fast-math") ||
+                                          streq(orig_opt, "fp-fast")) {
                                        firm_fp_model = fp_model_fast;
-                               } else if (strstart(orig_opt, "fp-precise")) {
+                               } else if (streq(orig_opt, "fp-precise")) {
                                        firm_fp_model = fp_model_precise;
-                               } else if (strstart(orig_opt, "fp-strict")) {
+                               } else if (streq(orig_opt, "fp-strict")) {
                                        firm_fp_model = fp_model_strict;
-                               } else if (strstart(orig_opt, "help")) {
+                               } else if (streq(orig_opt, "help")) {
                                        fprintf(stderr, "warning: -fhelp is deprecated\n");
                                        help |= HELP_OPTIMIZATION;
                                } else {