intelmic-mkoffload: Deal with linker defaulting to 32-bit x86 mode.
authorThomas Schwinge <thomas@codesourcery.com>
Thu, 8 Jan 2015 14:58:45 +0000 (15:58 +0100)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Thu, 8 Jan 2015 14:58:45 +0000 (15:58 +0100)
commit4f929d9da16fca9bcde0d1077c15136e944c5c0d
treec4f00143e8a22049b1f6cfddbf1ea04e65f5b4e0
parent53dd59bff5ade371a5d0d78a720330c2b2f68976
intelmic-mkoffload: Deal with linker defaulting to 32-bit x86 mode.

... which explicitly has to be switched into 64-bit x86_64 mode.

gcc/
* config/i386/intelmic-mkoffload.c (compile_for_target): Always
add "-m32" or "-m64" to argv_obstack.
(generate_host_descr_file): Likewise, when invoking host_compiler.
(main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
ld.

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