This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH][sim] Fix linkage errors in Clang.
- From: Pedro Alves <palves at redhat dot com>
- To: Masaki Muranaka <monaka at monami-software dot com>, gdb-patches at sourceware dot org
- Date: Fri, 30 May 2014 12:09:49 +0100
- Subject: Re: [PATCH][sim] Fix linkage errors in Clang.
- Authentication-results: sourceware.org; auth=none
- References: <CAJBvFxNwjU62PuQv=BSL_VTJWVV=8e+behmW0YFxa2YimZBUaQ at mail dot gmail dot com>
On 05/14/2014 03:31 AM, Masaki Muranaka wrote:
> Hello.
>
> By differences about inline function, we can't build simulators on Clang.
The difference is probably that Clang defaults to C99.
You should probably be using CC="clang -std=gnu89".
Patchwise, please try using __attribute__ ((gnu_inline)).
--
Pedro Alves