From: Mike Frysinger <vapier@gentoo.org>
To: gdb-patches@sourceware.org
Cc: Pedro Alves <palves@redhat.com>,
Masaki Muranaka <monaka@monami-software.com>
Subject: Re: [PATCH][sim] Fix linkage errors in Clang.
Date: Sat, 02 Aug 2014 17:32:00 -0000 [thread overview]
Message-ID: <2209489.Y8eKTZuHJx@vapier> (raw)
In-Reply-To: <538866FD.4020805@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 656 bytes --]
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
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
prev parent reply other threads:[~2014-08-02 17:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-14 2:31 Masaki Muranaka
2014-05-30 11:09 ` Pedro Alves
2014-08-02 17:32 ` Mike Frysinger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2209489.Y8eKTZuHJx@vapier \
--to=vapier@gentoo.org \
--cc=gdb-patches@sourceware.org \
--cc=monaka@monami-software.com \
--cc=palves@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox