diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-12-15 18:30:39 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-12-15 18:30:39 -0500 |
commit | 4e911f0bbf8fcc24934830b2de6bc1a4b7dce0e7 (patch) | |
tree | 1d9d59bbe7034ff19200277299baa8675b4e4217 /gcc/toplev.c | |
parent | 40ae19b6985c8523172d9318a5d1f8128e73b2b0 (diff) | |
download | gcc-4e911f0bbf8fcc24934830b2de6bc1a4b7dce0e7.tar.gz |
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
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 3 |
1 files changed, 1 insertions, 2 deletions
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, |