Commit df10a535 by Ralf Wildenhues Committed by Ralf Wildenhues

Fix PR driver/45703: let --help -v show linker help.

gcc/:
	PR driver/45703
	* collect2.c (main): Print --help output to stdout.  Do not
	exit right away, so ld --help is appended.  Add empty lines
	to separate output suitably.

From-SVN: r166327
parent 64cc2ce9
2010-11-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
PR driver/45703
* collect2.c (main): Print --help output to stdout. Do not
exit right away, so ld --help is appended. Add empty lines
to separate output suitably.
2010-11-04 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/46233
......@@ -1698,16 +1698,16 @@ main (int argc, char **argv)
if (helpflag)
{
fprintf (stderr, "Usage: collect2 [options]\n");
fprintf (stderr, " Wrap linker and generate constructor code if needed.\n");
fprintf (stderr, " Options:\n");
fprintf (stderr, " -debug Enable debug output\n");
fprintf (stderr, " --help Display this information\n");
fprintf (stderr, " -v, --version Display this program's version number\n");
fprintf (stderr, "Overview: http://gcc.gnu.org/onlinedocs/gccint/Collect2.html\n");
fprintf (stderr, "Report bugs: %s\n", bug_report_url);
collect_exit (0);
printf ("Usage: collect2 [options]\n");
printf (" Wrap linker and generate constructor code if needed.\n");
printf (" Options:\n");
printf (" -debug Enable debug output\n");
printf (" --help Display this information\n");
printf (" -v, --version Display this program's version number\n");
printf ("\n");
printf ("Overview: http://gcc.gnu.org/onlinedocs/gccint/Collect2.html\n");
printf ("Report bugs: %s\n", bug_report_url);
printf ("\n");
}
if (debug)
......
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