summaryrefslogtreecommitdiff
path: root/gcc/collect2.c
diff options
context:
space:
mode:
authorrwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-04 19:57:17 +0000
committerrwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-04 19:57:17 +0000
commitab723605af1306340bfac2c3810ecf6e4ef74f33 (patch)
tree7ef810be688c1fe162cd63c184d61def4704042b /gcc/collect2.c
parent435909052fa5a140555bcf6c8d114006ef0b4797 (diff)
downloadgcc-ab723605af1306340bfac2c3810ecf6e4ef74f33.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166327 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r--gcc/collect2.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index a8cd232c550..465a98aea1a 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -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)