This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][sim] Fix linkage errors in Clang.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]