toplev.c (independent_decode_option): Return success for --help, --target-help and --version.

* toplev.c (independent_decode_option): Return success for --help,
--target-help and --version.

From-SVN: r64209
This commit is contained in:
Alexandre Oliva 2003-03-12 00:19:37 +00:00 committed by Alexandre Oliva
parent b97dbcff50
commit 18a47d21ba
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Tue Mar 11 21:19:03 2003 Alexandre Oliva <aoliva@redhat.com>
* toplev.c (independent_decode_option): Return success for --help,
--target-help and --version.
Tue Mar 11 20:20:14 2003 Alexandre Oliva <aoliva@redhat.com>
* config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.

View File

@ -4408,18 +4408,21 @@ independent_decode_option (argc, argv)
{
display_help ();
exit_after_options = 1;
return 1;
}
if (!strcmp (arg, "-target-help"))
{
display_target_options ();
exit_after_options = 1;
return 1;
}
if (!strcmp (arg, "-version"))
{
print_version (stderr, "");
exit_after_options = 1;
return 1;
}
/* Handle '--param <name>=<value>'. */