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-wrapper.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-wrapper.c')
-rw-r--r-- | gcc/lto-wrapper.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c index b1efed2..2d0d451 100644 --- a/gcc/lto-wrapper.c +++ b/gcc/lto-wrapper.c @@ -271,6 +271,7 @@ merge_and_complain (struct cl_decoded_option **decoded_options, case OPT_fsigned_zeros: case OPT_ftrapping_math: case OPT_fwrapv: + case OPT_fopenmp: /* For selected options we can merge conservatively. */ for (j = 0; j < *decoded_options_count; ++j) if ((*decoded_options)[j].opt_index == foption->opt_index) @@ -490,6 +491,7 @@ append_compiler_options (obstack *argv_obstack, struct cl_decoded_option *opts, case OPT_fsigned_zeros: case OPT_ftrapping_math: case OPT_fwrapv: + case OPT_fopenmp: case OPT_ftrapv: case OPT_fstrict_overflow: case OPT_foffload_abi_: |