Hi! Committed to gomp-4_0-branch in r218842:
commit a192733f55daa0fa24637f89fd3c9a0cd0b8cad3 Author: tschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Wed Dec 17 22:33:35 2014 +0000 libgomp: OpenACC offloading no longer requires -flto. libgomp/ * testsuite/libgomp.oacc-c++/c++.exp: Don't add -flto to ALWAYS_CFLAGS. * testsuite/libgomp.oacc-c/c.exp: Likewise. * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise. * oacc-parallel.c (GOACC_parallel): Update error message. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gomp-4_0-branch@218842 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgomp/ChangeLog.gomp | 6 ++++++ libgomp/oacc-parallel.c | 3 +-- libgomp/testsuite/libgomp.oacc-c++/c++.exp | 3 +-- libgomp/testsuite/libgomp.oacc-c/c.exp | 3 +-- libgomp/testsuite/libgomp.oacc-fortran/fortran.exp | 3 +-- 5 files changed, 10 insertions(+), 8 deletions(-) diff --git libgomp/ChangeLog.gomp libgomp/ChangeLog.gomp index 97eb045..e0396b6 100644 --- libgomp/ChangeLog.gomp +++ libgomp/ChangeLog.gomp @@ -1,5 +1,11 @@ 2014-12-17 Thomas Schwinge <tho...@codesourcery.com> + * testsuite/libgomp.oacc-c++/c++.exp: Don't add -flto to + ALWAYS_CFLAGS. + * testsuite/libgomp.oacc-c/c.exp: Likewise. + * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise. + * oacc-parallel.c (GOACC_parallel): Update error message. + * libgomp_g.h: Move internal stuff from here... * libgomp_target.h: ..., and here... * libgomp.h: ... into here. diff --git libgomp/oacc-parallel.c libgomp/oacc-parallel.c index abe6aa9..888f20d 100644 --- libgomp/oacc-parallel.c +++ libgomp/oacc-parallel.c @@ -140,8 +140,7 @@ GOACC_parallel (int device, void (*fn) (void *), const void *offload_table, gomp_mutex_unlock (&acc_dev->mem_map.lock); if (tgt_fn_key == NULL) - gomp_fatal ("target function wasn't mapped: perhaps -fopenacc was " - "used without -flto?"); + gomp_fatal ("target function wasn't mapped"); tgt_fn = (void (*)) tgt_fn_key->tgt->tgt_start; } diff --git libgomp/testsuite/libgomp.oacc-c++/c++.exp libgomp/testsuite/libgomp.oacc-c++/c++.exp index c1f1f83..f4d1f1a 100644 --- libgomp/testsuite/libgomp.oacc-c++/c++.exp +++ libgomp/testsuite/libgomp.oacc-c++/c++.exp @@ -21,8 +21,7 @@ proc check_effective_target_oacc_c { } { dg-init # Turn on OpenACC. -# XXX (TEMPORARY): Remove the -flto once that's properly integrated. -lappend ALWAYS_CFLAGS "additional_flags=-fopenacc -flto" +lappend ALWAYS_CFLAGS "additional_flags=-fopenacc" # Switch into C++ mode. Otherwise, the libgomp.oacc-c-c++-common/*.c # files would be compiled as C files. diff --git libgomp/testsuite/libgomp.oacc-c/c.exp libgomp/testsuite/libgomp.oacc-c/c.exp index 0c31447..2e973c5 100644 --- libgomp/testsuite/libgomp.oacc-c/c.exp +++ libgomp/testsuite/libgomp.oacc-c/c.exp @@ -27,8 +27,7 @@ proc check_effective_target_oacc_c { } { dg-init # Turn on OpenACC. -# XXX (TEMPORARY): Remove the -flto once that's properly integrated. -lappend ALWAYS_CFLAGS "additional_flags=-fopenacc -flto" +lappend ALWAYS_CFLAGS "additional_flags=-fopenacc" # Gather a list of all tests. set tests [lsort [concat \ diff --git libgomp/testsuite/libgomp.oacc-fortran/fortran.exp libgomp/testsuite/libgomp.oacc-fortran/fortran.exp index 312f947..ae11748 100644 --- libgomp/testsuite/libgomp.oacc-fortran/fortran.exp +++ libgomp/testsuite/libgomp.oacc-fortran/fortran.exp @@ -21,8 +21,7 @@ set quadmath_library_path "../libquadmath/.libs" dg-init # Turn on OpenACC. -# XXX (TEMPORARY): Remove the -flto once that's properly integrated. -lappend ALWAYS_CFLAGS "additional_flags=-fopenacc -flto" +lappend ALWAYS_CFLAGS "additional_flags=-fopenacc" if { $blddir != "" } { set lang_source_re {^.*\.[fF](|90|95|03|08)$} Grüße, Thomas
pgpTlF4VoZ1qh.pgp
Description: PGP signature