Don't pass -m64 to libcc1 on aarch64-linux.
authorYao Qi <yao.qi@linaro.org>
Wed, 17 Jan 2018 12:48:52 +0000 (12:48 +0000)
committerYao Qi <yao.qi@linaro.org>
Wed, 17 Jan 2018 12:48:52 +0000 (12:48 +0000)
commit7045b1ca73b8c0cb12d1158f3bc59d251dca0fa5
tree855dad51c15ca8c4be019263dee581e5c6f638b6
parentd8447b6b9fd288ebd35620178ba720b1f0ce7ebf
Don't pass -m64 to libcc1 on aarch64-linux.

Nowadays, if we use "compile" on aarch64-linux, we'll get the following
error,

(gdb) compile code -- ;
aarch64-none-linux-gnu-gcc: error: unrecognized command line option '-m64'

because the default gcc_target_options returns "-m64" and
"-mcmodel=large", neither is useful to aarch64-linux.

gdb:

2018-01-17  Yao Qi  <yao.qi@linaro.org>

* aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
function.
(aarch64_linux_init_abi): Install it to gdbarch hook
gcc_target_options.
gdb/ChangeLog
gdb/aarch64-linux-tdep.c