Commit d8f21780 by Ilya Verbin Committed by Ilya Verbin

lto-wrapper.c (run_gcc): Set have_lto and have_offload if at least one file…

lto-wrapper.c (run_gcc): Set have_lto and have_offload if at least one file contains sections with LTO...

gcc/
	* lto-wrapper.c (run_gcc): Set have_lto and have_offload if at least one
	file contains sections with LTO and offload IR, respectively.

From-SVN: r218156
parent 6b2963e7
2014-11-28 Ilya Verbin <ilya.verbin@intel.com>
* lto-wrapper.c (run_gcc): Set have_lto and have_offload if at least one
file contains sections with LTO and offload IR, respectively.
2014-11-28 Ilya Verbin <ilya.verbin@intel.com>
* cgraphunit.c (ipa_passes): Handle flag_generate_offload.
(symbol_table::compile): Set flag_generate_offload if there is something
to offload.
......@@ -921,13 +921,14 @@ run_gcc (unsigned argc, char *argv[])
continue;
have_lto
= find_and_merge_options (fd, file_offset, LTO_SECTION_NAME_PREFIX,
&fdecoded_options, &fdecoded_options_count,
collect_gcc);
|= find_and_merge_options (fd, file_offset, LTO_SECTION_NAME_PREFIX,
&fdecoded_options, &fdecoded_options_count,
collect_gcc);
have_offload
= find_and_merge_options (fd, file_offset, OFFLOAD_SECTION_NAME_PREFIX,
&offload_fdecoded_options,
&offload_fdecoded_options_count, collect_gcc);
|= find_and_merge_options (fd, file_offset, OFFLOAD_SECTION_NAME_PREFIX,
&offload_fdecoded_options,
&offload_fdecoded_options_count,
collect_gcc);
close (fd);
}
......
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