aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2016-02-02 13:48:21 +0100
committerThomas Schwinge <tschwinge@gcc.gnu.org>2016-02-02 13:48:21 +0100
commit4a88d9b77a7619c0d6ea3b8692c95a7847b61de3 (patch)
treef5359e198826462ad8a0ec11496d5c301d46d671
parent41d809d3c8acf94279622b90b9fed8127ba29aab (diff)
downloadgcc-4a88d9b77a7619c0d6ea3b8692c95a7847b61de3.zip
gcc-4a88d9b77a7619c0d6ea3b8692c95a7847b61de3.tar.gz
gcc-4a88d9b77a7619c0d6ea3b8692c95a7847b61de3.tar.bz2
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. From-SVN: r233071
-rw-r--r--libgomp/ChangeLog4
-rwxr-xr-xlibgomp/configure5
-rw-r--r--libgomp/plugin/configfrag.ac5
3 files changed, 12 insertions, 2 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog
index 610074c..6cae4d7 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 d34a350..f643bf8 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 01815d4..b9209cb 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