From 4e911f0bbf8fcc24934830b2de6bc1a4b7dce0e7 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Fri, 15 Dec 1995 18:30:39 -0500 Subject: main): Don't ignore an option merely because a language-specific option is a prefix of the option. main): Don't ignore an option merely because a language-specific option is a prefix of the option. This catches typos like `-fno-builtins'. From-SVN: r10737 --- gcc/toplev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gcc/toplev.c') diff --git a/gcc/toplev.c b/gcc/toplev.c index db70772890a..a8bbe45e34b 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -3421,8 +3421,7 @@ main (argc, argv, envp) /* If this is a language-specific option, decode it in a language-specific way. */ for (j = 0; lang_options[j] != 0; j++) - if (!strncmp (argv[i], lang_options[j], - strlen (lang_options[j]))) + if (!strcmp (argv[i], lang_options[j])) break; if (lang_options[j] != 0) /* If the option is valid for *some* language, -- cgit v1.2.1