summaryrefslogtreecommitdiff
path: root/gcc/collect2.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-29 16:58:59 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-29 16:58:59 +0000
commit6453a826cdc81087525aef5e3be4ff190cc82b85 (patch)
tree648824a76d038043d6260c1d22b5e698a954ece0 /gcc/collect2.c
parent8548b9e0e9d2aecd65be354cd9365f1676ebb8db (diff)
downloadgcc-6453a826cdc81087525aef5e3be4ff190cc82b85.tar.gz
* collect2.c (main): Do not imply verbose output with LTO and linker plugin.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167255 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r--gcc/collect2.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index df91d34117d..0b470271e4a 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -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";