[PR libgomp/65099] nvptx mkoffload: pass "-m32" or "-m64" to the compiler
authorThomas Schwinge <thomas@codesourcery.com>
Wed, 29 Apr 2015 16:23:26 +0000 (18:23 +0200)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Wed, 29 Apr 2015 16:23:26 +0000 (18:23 +0200)
commitf82a9d904e8adb894033aa75740c9759b17bea0f
tree1fa51fe9e956c45fa637058738c884fa3162251c
parentaaf3de7ab2aac4b0b4c5a4fb260ca1955350a360
[PR libgomp/65099] nvptx mkoffload: pass "-m32" or "-m64" to the compiler

... depending on "-foffload-abi=[...]".

Coding style/code copied from gcc/config/i386/intelmic-mkoffload.c for
consistency.

gcc/
* config/nvptx/mkoffload.c (target_ilp32): New variable.
(main): Set it depending on "-foffload-abi=[...]".
(compile_native, main): Use it to pass "-m32" or "-m64" to the
compiler.

From-SVN: r222583
gcc/ChangeLog
gcc/config/nvptx/mkoffload.c