From nobody Wed Nov 5 10:03:20 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1533921171288565.7355767739358; Fri, 10 Aug 2018 10:12:51 -0700 (PDT) Received: from localhost ([::1]:57340 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1foAxz-0007ur-63 for importer@patchew.org; Fri, 10 Aug 2018 13:12:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56464) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1foAwO-00074l-QA for qemu-devel@nongnu.org; Fri, 10 Aug 2018 13:11:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1foAwM-0007if-IZ for qemu-devel@nongnu.org; Fri, 10 Aug 2018 13:11:08 -0400 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:38829) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1foAwM-0007he-Ag for qemu-devel@nongnu.org; Fri, 10 Aug 2018 13:11:06 -0400 Received: by mail-wr1-x444.google.com with SMTP id v14-v6so8907442wro.5 for ; Fri, 10 Aug 2018 10:11:06 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id w9-v6sm12525695wrk.28.2018.08.10.10.11.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 Aug 2018 10:11:02 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 21CE03E0625; Fri, 10 Aug 2018 18:11:02 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2eXeB+Wyf7wgOJHBuAPzz7OSzBQaxuieY7C29LSfD0w=; b=CVI4imOxjXzp2YVdIKpQmGomqm3qq4lEh7rL9K102lEQpw7Z127afh4pLKC8xv7sWe hsCyCJhywCLlERjnjkHPHKs8LuANutp2MzPPzScBZb0tvGR01OFNNYOUUbaz/Mymk1N7 +InUs/CmvsgtVxlH2h446aBF/nnR17kYa9IqI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2eXeB+Wyf7wgOJHBuAPzz7OSzBQaxuieY7C29LSfD0w=; b=SEmG367FcwT/uECU4TRvXLDJisLLfq1NSQmBBzdxYXtIENy3IaIPE3Lh30wHJE0D2Z qlMs0TCtzqWr1g9RYqr6jtpkUVrEwOlyOBGRrsTGRltZVuLnU2ma7llqgGMyIwwLbvgC D7sp08/j6WaT1KKXzzuieRH3VApy3d7flzfU25rprEOA8p5gjvrXJzW+GF/cHPbm9TPV CU9Gte8pd1C03hBGX4FRoL4/bhuJKOYTbo9w11zM7uvapJKXFdsoRKkqrpoi14ebrzFL UeIwGtgltkTXQ6eVwp/PuRgrG8xKsbkn8GXKxP9yBkXIdgNYsY7uMczcYDj1boA4VK6w 3k/A== X-Gm-Message-State: AOUpUlHv8e0U/Qcsnh514CtCLW0lArxtGlkUQBCeBTXtjCZy3mYANT1O airtGuU/JR8eRibY2an1RDcfwg== X-Google-Smtp-Source: AA+uWPyaoL9dTIRO9qjk2aEFf02SxZoXri3iCjQbfkHRVNcXwxk5awOyyR4Di1+oD+fdGUW/xEo6xQ== X-Received: by 2002:adf:e34d:: with SMTP id n13-v6mr4950209wrj.158.1533921065284; Fri, 10 Aug 2018 10:11:05 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Fri, 10 Aug 2018 18:10:59 +0100 Message-Id: <20180810171102.16451-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180810171102.16451-1-alex.bennee@linaro.org> References: <20180810171102.16451-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::444 Subject: [Qemu-devel] [RFC PATCH 1/3] HACKING: mention the C GNU extensions we use X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDMRC_1 RDKM_2 RSF_0 Z_629925259 SPT_0 QEMU is not a pure C99 code-base as anyone attempting to build with -std=3Dc99 will find out. Signed-off-by: Alex Benn=C3=A9e --- HACKING | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/HACKING b/HACKING index 0fc3e0fc04..e042dd1f4f 100644 --- a/HACKING +++ b/HACKING @@ -189,6 +189,11 @@ In addition, QEMU assumes that the compiler does not u= se 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. =20 +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 +compilers. + 7. Error handling and reporting =20 7.1 Reporting errors to the human user --=20 2.17.1