[RFC,1/3] HACKING: mention the C GNU extensions we use

Message ID 20180810171102.16451-2-alex.bennee@linaro.org
State New
Headers show
  • tweaks for QEMU's C standard
Related show

Commit Message

Alex Bennée Aug. 10, 2018, 5:10 p.m.
QEMU is not a pure C99 code-base as anyone attempting to build with
-std=c99 will find out.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
 HACKING | 5 +++++
 1 file changed, 5 insertions(+)


diff --git a/HACKING b/HACKING
index 0fc3e0fc04..e042dd1f4f 100644
@@ -189,6 +189,11 @@  In addition, QEMU assumes that the compiler does not use the latitude
 given in C99 and C11 to treat aspects of signed '<<' as undefined, as
 documented in the GNU Compiler Collection manual starting at version 4.0.
+Finally QEMU also uses some GNU extensions to the C language including
+making extensive use of the typeof keyword for type inference. While
+typeof() is a GCC extension it is fairly widely understood by other
 7. Error handling and reporting
 7.1 Reporting errors to the human user