diff options
author | Tom de Vries <tom@codesourcery.com> | 2015-01-23 12:54:16 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2015-01-23 12:54:16 +0000 |
commit | a0c88d0629a33161add8d5bc083f1e59f3f756f7 (patch) | |
tree | 667a67b3067e4f24e4c52912641a221fd52bf2d2 /gcc/lto-opts.c | |
parent | 1506ae0e1e865fb7a42fc37a47f1799b71f21c53 (diff) | |
download | gcc-a0c88d0629a33161add8d5bc083f1e59f3f756f7.zip gcc-a0c88d0629a33161add8d5bc083f1e59f3f756f7.tar.gz gcc-a0c88d0629a33161add8d5bc083f1e59f3f756f7.tar.bz2 |
Make fopenacc an LTO option
2015-01-23 Tom de Vries <tom@codesourcery.com>
PR libgomp/64672
* lto-opts.c (lto_write_options): Output non-explicit conservative
-fno-openacc.
* lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
(append_compiler_options): Pass -fopenacc through.
* c.opt (fopenacc): Mark as LTO option.
* lang.opt (fopenacc): Mark as LTO option.
* testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
From-SVN: r220038
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 d44dba0..279107f 100644 --- a/gcc/lto-opts.c +++ b/gcc/lto-opts.c @@ -169,6 +169,10 @@ lto_write_options (void) if (!global_options_set.x_flag_openmp && !global_options.x_flag_openmp) append_to_collect_gcc_options (&temporary_obstack, &first_p, "-fno-openmp"); + if (!global_options_set.x_flag_openacc + && !global_options.x_flag_openacc) + append_to_collect_gcc_options (&temporary_obstack, &first_p, + "-fno-openacc"); /* Append options from target hook and store them to offload_lto section. */ if (lto_stream_offload_p) |