Fix command line parsing to report unrecognised options.

From-SVN: r30574
This commit is contained in:
Nick Clifton 1999-11-18 11:01:34 +00:00 committed by Nick Clifton
parent 7f7df3111d
commit bb51178fb1
3 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,10 @@
1999-11-18 Nick Clifton <nickc@cygnus.com>
* toplev.c (main): Correctly detect an unrecognised option.
* cppinit.c (cpp_handle_option): Do not claim to have consumed
a -f option if it has not been recognised.
Thu Nov 18 00:59:11 1999 Michael Gschwind <mikeg@alagoas.watson.ibm.com>
* basic-block.h (update_life_extent): Remove trailing comma on

View File

@ -1105,6 +1105,10 @@ cpp_handle_option (pfile, argc, argv)
opts->preprocessed = 1;
else if (!strcmp (argv[i], "-fno-preprocessed"))
opts->preprocessed = 0;
else
{
return i;
}
break;
case 'I': /* Add directory to path for includes. */

View File

@ -5459,7 +5459,7 @@ main (argc, argv)
break;
}
if (option)
if (j != NUM_ELEM (documented_lang_options))
{
if (extra_warnings)
{