diff options
author | Ilya Verbin <ilya.verbin@intel.com> | 2014-11-13 13:57:58 +0000 |
---|---|---|
committer | Kirill Yukhin <kyukhin@gcc.gnu.org> | 2014-11-13 13:57:58 +0000 |
commit | 87b6c18c01a9e328ae9e4ef0929c40b9213be9f8 (patch) | |
tree | 629489cf37b1596d48e4683b49fd8d899574db50 /gcc/config.gcc | |
parent | 122d7303a0bdb99ebf4f1a178270295b93d8bed5 (diff) | |
download | gcc-87b6c18c01a9e328ae9e4ef0929c40b9213be9f8.zip gcc-87b6c18c01a9e328ae9e4ef0929c40b9213be9f8.tar.gz gcc-87b6c18c01a9e328ae9e4ef0929c40b9213be9f8.tar.bz2 |
[PATCH 1/4] OpenMP 4.0 offloading to Intel MIC: mkoffload.
gcc/
* config.gcc (*-intelmic-* | *-intelmicemul-*): Add i386/t-intelmic to
tmake_file.
(i[34567]86-*-* | x86_64-*-*): Build mkoffload$(exeext) with the
accelerator compiler.
* config/i386/intelmic-mkoffload.c: New file.
* config/i386/t-intelmic: Ditto.
Co-Authored-By: Andrey Turetskiy <andrey.turetskiy@intel.com>
From-SVN: r217495
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index 0af4a1a..a6b37d8 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2884,6 +2884,13 @@ powerpc*-*-* | rs6000-*-*) tm_file="${tm_file} rs6000/option-defaults.h" esac +# Build mkoffload tool +case ${target} in +*-intelmic-* | *-intelmicemul-*) + tmake_file="${tmake_file} i386/t-intelmic" + ;; +esac + if [ "$target_has_targetcm" = "no" ]; then c_target_objs="$c_target_objs default-c.o" cxx_target_objs="$cxx_target_objs default-c.o" @@ -4279,3 +4286,11 @@ then target_cpu_default=$target_cpu_default2 fi fi + +case ${target} in +i[34567]86-*-* | x86_64-*-*) + if test x$enable_as_accelerator = xyes; then + extra_programs="mkoffload\$(exeext)" + fi + ;; +esac |