diff options
author | Tom de Vries <tom@codesourcery.com> | 2015-01-23 12:53:55 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2015-01-23 12:53:55 +0000 |
commit | 1506ae0e1e865fb7a42fc37a47f1799b71f21c53 (patch) | |
tree | dafdb0033bc707c4c0ea9f0a6378ea8944f76727 /gcc/lto-opts.c | |
parent | 10ef8f287e92cad2f6963a9ee25d954c87567629 (diff) | |
download | gcc-1506ae0e1e865fb7a42fc37a47f1799b71f21c53.zip gcc-1506ae0e1e865fb7a42fc37a47f1799b71f21c53.tar.gz gcc-1506ae0e1e865fb7a42fc37a47f1799b71f21c53.tar.bz2 |
Make fopenmp an LTO option
2015-01-23 Tom de Vries <tom@codesourcery.com>
PR libgomp/64707
* lto-opts.c (lto_write_options): Output non-explicit conservative
-fno-openmp.
* lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
(append_compiler_options): Pass -fopenmp through.
* c.opt (fopenmp): Mark as LTO option.
* lang.opt (fopenmp): Mark as LTO option.
* testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
dg-options.
From-SVN: r220037
Diffstat (limited to 'gcc/lto-opts.c')
-rw-r--r-- | gcc/lto-opts.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/lto-opts.c b/gcc/lto-opts.c index 026b323..d44dba0 100644 --- a/gcc/lto-opts.c +++ b/gcc/lto-opts.c @@ -166,6 +166,10 @@ lto_write_options (void) append_to_collect_gcc_options (&temporary_obstack, &first_p, "-fno-strict-overflow"); + if (!global_options_set.x_flag_openmp + && !global_options.x_flag_openmp) + append_to_collect_gcc_options (&temporary_obstack, &first_p, "-fno-openmp"); + /* Append options from target hook and store them to offload_lto section. */ if (lto_stream_offload_p) { |