diff options
author | tschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-02-02 12:48:21 +0000 |
---|---|---|
committer | tschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-02-02 12:48:21 +0000 |
commit | 071822e70273f6df33adee3ac278c229caeabf0a (patch) | |
tree | f5359e198826462ad8a0ec11496d5c301d46d671 | |
parent | bf57e97e03d046a6109d976bc098e197f220d1b9 (diff) | |
download | linaro-gcc-071822e70273f6df33adee3ac278c229caeabf0a.tar.gz linaro-gcc-071822e70273f6df33adee3ac278c229caeabf0a.tar.bz2 linaro-gcc-071822e70273f6df33adee3ac278c229caeabf0a.zip |
libgomp: For hsa offloading, compilation is all handled by the target compiler
libgomp/
* plugin/configfrag.ac (offload_additional_options)
(offload_additional_lib_paths): Don't amend for hsa offloading.
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233071 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | libgomp/ChangeLog | 4 | ||||
-rwxr-xr-x | libgomp/configure | 5 | ||||
-rw-r--r-- | libgomp/plugin/configfrag.ac | 5 |
3 files changed, 12 insertions, 2 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 610074c3153..6cae4d705da 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,5 +1,9 @@ 2016-02-02 Thomas Schwinge <thomas@codesourcery.com> + * plugin/configfrag.ac (offload_additional_options) + (offload_additional_lib_paths): Don't amend for hsa offloading. + * configure: Regenerate. + * plugin/configfrag.ac: Don't configure for offloading target if we don't build the corresponding plugin. * configure: Regenerate. diff --git a/libgomp/configure b/libgomp/configure index d34a350e048..f643bf8f670 100755 --- a/libgomp/configure +++ b/libgomp/configure @@ -15434,7 +15434,10 @@ rm -f core conftest.err conftest.$ac_objext \ else offload_targets=$offload_targets,$tgt_name fi - if test x"$tgt_dir" != x; then + if test "$tgt_name" = hsa; then + # Offloading compilation is all handled by the target compiler. + : + elif test x"$tgt_dir" != x; then offload_additional_options="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin" offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32" else diff --git a/libgomp/plugin/configfrag.ac b/libgomp/plugin/configfrag.ac index 01815d41c8b..b9209cb8c49 100644 --- a/libgomp/plugin/configfrag.ac +++ b/libgomp/plugin/configfrag.ac @@ -235,7 +235,10 @@ if test x"$enable_offload_targets" != x; then else offload_targets=$offload_targets,$tgt_name fi - if test x"$tgt_dir" != x; then + if test "$tgt_name" = hsa; then + # Offloading compilation is all handled by the target compiler. + : + elif test x"$tgt_dir" != x; then offload_additional_options="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin" offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32" else |