[PATCH][sim] Fix linkage errors in Clang.
Mike Frysinger
vapier@gentoo.org
Sat Aug 2 17:32:00 GMT 2014
On Fri 30 May 2014 12:09:49 Pedro Alves wrote:
> On 05/14/2014 03:31 AM, Masaki Muranaka wrote:
> > 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)).
yeah i'm not a fan of sprinkling __clang__ everywhere. i'm aware that there's
a bunch of __GNUC__ in there, but those should get cleaned up/centralized
rather than expanded. a quick glance shows that there's already cases where
that can happen (like moving to ATTRIBUTE_NORETURN).
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20140802/ff6788f5/attachment.sig>
More information about the Gdb-patches
mailing list