summaryrefslogtreecommitdiff
path: root/gcc/lto-wrapper.c
diff options
context:
space:
mode:
authorIlya Verbin <ilya.verbin@intel.com>2014-11-28 13:46:28 +0000
committerIlya Verbin <iverbin@gcc.gnu.org>2014-11-28 13:46:28 +0000
commitd8f21780201caf84894097a23792d754983d3455 (patch)
tree079819d53352f5acef1f17c32cb1bac40a38adcf /gcc/lto-wrapper.c
parent6b2963e742fefd1e901d1ea0ef97afa2fe5be3a1 (diff)
downloadgcc-d8f21780201caf84894097a23792d754983d3455.tar.gz
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
Diffstat (limited to 'gcc/lto-wrapper.c')
-rw-r--r--gcc/lto-wrapper.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c
index 9a540b4ede5..0f69457f4ea 100644
--- a/gcc/lto-wrapper.c
+++ b/gcc/lto-wrapper.c
@@ -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);
}