This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [committed] Don't pass -m32 to libcc1 on arm-linux
- From: Pedro Alves <palves at redhat dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>, Yao Qi <qiyaoltc at gmail dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 19 Jan 2018 16:34:29 +0000
- Subject: Re: [committed] Don't pass -m32 to libcc1 on arm-linux
- Authentication-results: sourceware.org; auth=none
- References: <1516353450-16357-1-git-send-email-yao.qi@linaro.org> <87fu714y19.fsf@linux-m68k.org>
On 01/19/2018 04:24 PM, Andreas Schwab wrote:
> On Jan 19 2018, Yao Qi <qiyaoltc@gmail.com> wrote:
>
>> This patch fixes it by implementing gcc_target_options gdbarch method
>> for arm-linux to override option "-m32".
>
> Why is that not the default?
I think for really no good reason other than the coincidence that
the first couple ports that implemented this hook could share the
same set of "-m" options.
I agree that changing the default would be better. "-m" options are,
by design, machine-specific.
Thanks,
Pedro Alves