From: Thomas Huth <thuth@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Richard Henderson" <rth@twiddle.net>,
"Daniel P. Berrangé" <berrange@redhat.com>,
pbonzini@redhat.com, peter.maydell@linaro.org,
"Markus Armbruster" <armbru@redhat.com>,
qemu-ppc@nongnu.org, "Cédric Le Goater" <clg@kaod.org>,
"Greg Kurz" <groug@kaod.org>
Subject: [Qemu-devel] [PATCH v4 0/3] Force the C standard to gnu99
Date: Thu, 10 Jan 2019 10:15:33 +0100 [thread overview]
Message-ID: <1547111736-3962-1-git-send-email-thuth@redhat.com> (raw)
Different versions of GCC and Clang use different versions of the C
standard by default. To avoid compilation problems with different
compilers in the future, we should enforce one language level
for all compilers. Since "gnu99" is the only usable option right now
(later versions are still marked as experimental in GCC v4.8),
we enforce compiling with -std=gnu99 now (in the third patch).
This caused some new warnings/erros to appear with clang, which are
fixed by the first two patches now.
v4:
- Avoid circular inclusion of headers and introduce xics_spapr.h
v3:
- Compile C++ code with -std=gnu++98
v2:
- Use gnu99 instead of gnu11
Thomas Huth (3):
ppc: Move spapr-related prototypes from xics.h into a seperate header
file
ppc: Drop duplicated typedefs to be able to compile with Clang in
gnu99 mode
configure: Force the C standard to gnu99
configure | 5 ++++-
hw/intc/xics_kvm.c | 1 +
hw/intc/xics_spapr.c | 1 +
hw/ppc/spapr_irq.c | 1 +
include/hw/ppc/spapr.h | 9 +++++----
include/hw/ppc/spapr_xive.h | 3 +--
include/hw/ppc/xics.h | 7 -------
include/hw/ppc/xics_spapr.h | 37 +++++++++++++++++++++++++++++++++++++
target/ppc/cpu.h | 9 +++++----
9 files changed, 55 insertions(+), 18 deletions(-)
create mode 100644 include/hw/ppc/xics_spapr.h
--
1.8.3.1
next reply other threads:[~2019-01-10 9:15 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-10 9:15 Thomas Huth [this message]
2019-01-10 9:15 ` [Qemu-devel] [PATCH v4 1/3] ppc: Move spapr-related prototypes from xics.h into a seperate header file Thomas Huth
2019-01-10 9:24 ` Greg Kurz
2019-01-10 9:54 ` Cédric Le Goater
2019-01-10 9:15 ` [Qemu-devel] [PATCH v4 2/3] ppc: Drop duplicated typedefs to be able to compile with Clang in gnu99 mode Thomas Huth
2019-01-10 13:15 ` Greg Kurz
2019-01-10 14:07 ` Thomas Huth
2019-01-10 16:00 ` Greg Kurz
2019-01-10 20:35 ` Paolo Bonzini
2019-01-11 0:17 ` David Gibson
2019-01-11 6:50 ` Thomas Huth
2019-01-10 9:15 ` [Qemu-devel] [PATCH v4 3/3] configure: Force the C standard to gnu99 Thomas Huth
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=1547111736-3962-1-git-send-email-thuth@redhat.com \
--to=thuth@redhat.com \
--cc=armbru@redhat.com \
--cc=berrange@redhat.com \
--cc=clg@kaod.org \
--cc=groug@kaod.org \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=rth@twiddle.net \
/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;
as well as URLs for NNTP newsgroup(s).