qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Redefinition of typedefs (C11 feature)
@ 2020-09-11 18:49 Eduardo Habkost
  2020-09-11 19:06 ` Peter Maydell
  0 siblings, 1 reply; 13+ messages in thread
From: Eduardo Habkost @ 2020-09-11 18:49 UTC (permalink / raw)
  To: qemu-devel
  Cc: Peter Maydell, Daniel P. Berrange, Markus Armbruster,
	Paolo Bonzini

I'm wondering: do our supported build host platforms all include
compilers that are new enough to let us redefine typedefs?

The ability to redefine typedefs is a C11 feature which would be
very useful for simplifying our QOM boilerplate code.  The
feature is supported by GCC since 2011 (v4.6.0)[1], and by clang
since 2012 (v3.1)[2].

[1] https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=ce3765bf44e49ef0568a1ad4a0b7f807591d6412
    https://gcc.gnu.org/gcc-4.6/changes.html
[2] https://github.com/llvm-mirror/clang/commit/c0004df84fca9225b66a50adc66cf21c34298227

-- 
Eduardo



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2020-09-14 16:55 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-11 18:49 Redefinition of typedefs (C11 feature) Eduardo Habkost
2020-09-11 19:06 ` Peter Maydell
2020-09-11 20:06   ` Moving to C11? (was Re: Redefinition of typedefs (C11 feature)) Eduardo Habkost
2020-09-11 20:10     ` Warner Losh
2020-09-12  8:16       ` Philippe Mathieu-Daudé
2020-09-12 15:04         ` Warner Losh
2020-09-12  6:45     ` Thomas Huth
2020-09-13  2:51       ` Eduardo Habkost
2020-09-14  5:39         ` Thomas Huth
2020-09-14 13:46           ` Eduardo Habkost
2020-09-14 13:50             ` Daniel P. Berrangé
2020-09-14 15:36             ` Thomas Huth
2020-09-14 16:53               ` Eduardo Habkost

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).