* collect2.c (main): Do not imply verbose output with LTO and linker plugin.

From-SVN: r167255
This commit is contained in:
Jan Hubicka 2010-11-29 17:58:59 +01:00 committed by Jan Hubicka
parent 98c1c7cd1e
commit 37fc948fee
2 changed files with 5 additions and 12 deletions

View File

@ -1,3 +1,7 @@
2010-11-29 Jan Hubicka <jh@suse.cz>
* collect2.c (main): Do not imply verbose output with LTO and linker plugin.
2010-11-29 Dodji Seketeli <dodji@redhat.com>
* dwarf2out.c (print_die): Print the address of the current DIE or

View File

@ -1146,8 +1146,6 @@ main (int argc, char **argv)
int num_c_args;
char **old_argv;
bool use_verbose = false;
old_argv = argv;
expandargv (&argc, &argv);
if (argv != old_argv)
@ -1206,14 +1204,10 @@ main (int argc, char **argv)
no_partition = true;
else if ((! strncmp (argv[i], "-flto=", 6)
|| ! strcmp (argv[i], "-flto")) && ! use_plugin)
{
use_verbose = true;
lto_mode = LTO_MODE_WHOPR;
}
lto_mode = LTO_MODE_WHOPR;
else if (! strcmp (argv[i], "-plugin"))
{
use_plugin = true;
use_verbose = true;
lto_mode = LTO_MODE_NONE;
}
#ifdef COLLECT_EXPORT_LIST
@ -1428,11 +1422,6 @@ main (int argc, char **argv)
*c_ptr++ = xstrdup (q);
}
}
if (use_verbose && *q == '-' && q[1] == 'v' && q[2] == 0)
{
/* Turn on trace in collect2 if needed. */
vflag = true;
}
}
obstack_free (&temporary_obstack, temporary_firstobj);
*c_ptr++ = "-fno-profile-arcs";