Commit ba9b1f11 by Richard Guenther Committed by Richard Biener

c-opts.c (c_common_post_options): Reset LTO flags if we are about to generate a PCH.

2012-01-18  Richard Guenther  <rguenther@suse.de>

	* c-opts.c (c_common_post_options): Reset LTO flags if
	we are about to generate a PCH.

From-SVN: r183272
parent b8cf611d
2012-01-18 Richard Guenther <rguenther@suse.de>
* c-opts.c (c_common_post_options): Reset LTO flags if
we are about to generate a PCH.
2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51777
......
......@@ -1058,6 +1058,13 @@ c_common_post_options (const char **pfilename)
&& flag_preprocess_only && !flag_no_line_commands)
pp_dir_change (parse_in, get_src_pwd ());
/* Disable LTO output when outputting a precompiled header. */
if (pch_file && flag_lto)
{
flag_lto = 0;
flag_generate_lto = 0;
}
return flag_preprocess_only;
}
......
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