Fix search path in intelmic-mkoffload for empty COLLECT_GCC.
authorIlya Verbin <ilya.verbin@intel.com>
Tue, 10 Mar 2015 12:23:27 +0000 (12:23 +0000)
committerIlya Verbin <iverbin@gcc.gnu.org>
Tue, 10 Mar 2015 12:23:27 +0000 (12:23 +0000)
commit30094344891c53015020616b80e51c6e11fd5a8c
tree9ac428c696db4cd51be45197094b028df916a715
parenta563c2869215ff2581159dc8fa429d8b969477e6
Fix search path in intelmic-mkoffload for empty COLLECT_GCC.

gcc/
* config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
of libgomp-plugin.h.
(find_target_compiler): Support a case when the path to gcc is specified
in the PATH env var, so COLLECT_GCC doesn't contain a path.
(generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
libgomp-plugin.h.
(main): Use GCC_INSTALL_NAME as target_driver_name.
* config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
define.
(mkoffload.o): Remove obsolete include path and defines.
(mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).

From-SVN: r221319
gcc/ChangeLog
gcc/config/i386/intelmic-mkoffload.c
gcc/config/i386/t-intelmic