[Bug other/70945] Offloading: compatibility of target and offloading toolchains
tschwinge at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Oct 19 21:34:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70945
--- Comment #6 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Author: tschwinge
Date: Wed Oct 19 21:24:37 2016
New Revision: 241355
URL: https://gcc.gnu.org/viewcvs?rev=241355&root=gcc&view=rev
Log:
[PR other/70945] Handle function_glibc_finite_math in offloading
gcc/
PR other/70945
* targhooks.c (default_libc_has_function): Update comment.
* target.def (libc_has_function): Likewise.
* doc/tm.texi: Regenerate.
* coretypes.h (enum function_class): Add
function_glibc_finite_math.
* config/darwin.c (darwin_libc_has_function): Handle it.
* lto-streamer.h (enum lto_section_type): Rename
LTO_section_offload_table to LTO_section_offload_data. Adjust all
users.
* lto-cgraph.c (void output_offload_data): New function, split out
of output_offload_tables. Adjust all users. Stream the target's
function_glibc_finite_math property.
(input_offload_data): New function, split out of
input_offload_tables. Adjust all users. Handle mismatch between
the target's and the offloading target's
function_glibc_finite_math property.
libgomp/
PR other/70945
* testsuite/libgomp.oacc-c-c++-common/pr70945-1.c: New file.
Added:
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/pr70945-1.c
Modified:
branches/gomp-4_0-branch/gcc/ChangeLog.gomp
branches/gomp-4_0-branch/gcc/config/darwin.c
branches/gomp-4_0-branch/gcc/coretypes.h
branches/gomp-4_0-branch/gcc/doc/tm.texi
branches/gomp-4_0-branch/gcc/lto-cgraph.c
branches/gomp-4_0-branch/gcc/lto-streamer-out.c
branches/gomp-4_0-branch/gcc/lto-streamer.h
branches/gomp-4_0-branch/gcc/lto/lto.c
branches/gomp-4_0-branch/gcc/target.def
branches/gomp-4_0-branch/gcc/targhooks.c
branches/gomp-4_0-branch/libgomp/ChangeLog.gomp
More information about the Gcc-bugs
mailing list