Index: gcc/gcc.c =================================================================== --- gcc/gcc.c (revision 167334) +++ gcc/gcc.c (working copy) @@ -264,7 +264,9 @@ static const char *print_asm_header_spec_function static const char *compare_debug_dump_opt_spec_function (int, const char **); static const char *compare_debug_self_opt_spec_function (int, const char **); static const char *compare_debug_auxbase_opt_spec_function (int, const char **); +static const char *gen_pass_through_spec (int, const char **, bool, bool); static const char *pass_through_libs_spec_func (int, const char **); +static const char *pass_through_objs_spec_func (int, const char **); /* The Specs Language @@ -637,7 +639,9 @@ proper position among the other output files. */ -plugin %(linker_plugin_file) \ -plugin-opt=%(lto_wrapper) \ -plugin-opt=-fresolution=%u.res \ + %{fprofile-arcs|fprofile-generate*|coverage:-plugin-opt=-pass-through=-lgcov} \ %{!nostdlib:%{!nodefaultlibs:%:pass-through-libs(%(link_gcc_c_sequence))}} \ + %{!A:%{!nostdlib:%{!nostartfiles:%:pass-through-objs(%E)}}} } \ %{flto*:%