mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-22 12:40:04 +08:00
Fix command line parsing to report unrecognised options.
From-SVN: r30574
This commit is contained in:
parent
7f7df3111d
commit
bb51178fb1
@ -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
|
||||
|
@ -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. */
|
||||
|
@ -5459,7 +5459,7 @@ main (argc, argv)
|
||||
break;
|
||||
}
|
||||
|
||||
if (option)
|
||||
if (j != NUM_ELEM (documented_lang_options))
|
||||
{
|
||||
if (extra_warnings)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user