Commit 4e911f0b by Richard Kenner

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
parent 40ae19b6
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment