From nobody Tue Feb 10 12:39:35 2026 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1515500692260959.806058183876; Tue, 9 Jan 2018 04:24:52 -0800 (PST) Received: from localhost ([::1]:49441 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYsxX-0007ht-Cg for importer@patchew.org; Tue, 09 Jan 2018 07:24:51 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYsvj-0006ZI-UO for qemu-devel@nongnu.org; Tue, 09 Jan 2018 07:23:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYsvg-0006G7-Nt for qemu-devel@nongnu.org; Tue, 09 Jan 2018 07:22:59 -0500 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]:47022) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eYsvg-0006DR-H0 for qemu-devel@nongnu.org; Tue, 09 Jan 2018 07:22:56 -0500 Received: by mail-wr0-x243.google.com with SMTP id g21so8109291wrb.13 for ; Tue, 09 Jan 2018 04:22:56 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id q7sm15216522wra.83.2018.01.09.04.22.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Jan 2018 04:22:54 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 4EB993E02F2; Tue, 9 Jan 2018 12:22:52 +0000 (GMT) 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=o9l4F51J3K/m7rAhNxcgl01/dGyeul6MP8/bT8/jNP4=; b=JqCn+PeIebEm3CYYjD+ITlLXQA1SE1mYgIBbYZbCF/FWYUFwdvFvarZHaPGYsXLfqt W0nb7sp+CCamkQgF+kc4qpdw2zyjGnFO7f10y5exnFFtnyugi+rEIf6eKnRzxveRTdC0 bEa4y2K3nofY4n3izciSWEtNnU6TfQ7bni5IM= 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=o9l4F51J3K/m7rAhNxcgl01/dGyeul6MP8/bT8/jNP4=; b=PaknmEO5BpulxbBU2MihhS9mUsJ8ldAZlbmSs1Ug8klLGpvPWmmRw4R5/2keuRrxy7 5BseBCYb+U7fKcKfo/MwC4305LVRfn94GBqNxJXfFDhp3ORwDkJRhcV80VMTOc47wbZF R9xMxEKGNX0h3tr6DZs0O2lQoL4SGDkeBPaf6UoM/PnTkjKQywd1lXz/ECEKDxE8KSZx 12Ru/smGLf8gpvF2YNfeM9u6AD+5emnF7otc1gcaLc1LhZEMrpUUnGtp3GUuOG1cnHPz 5CjVjWmw0bIwM44YPURlr37Yl3XaY+DwuNhk7vgmoaIgNxaE8AUsS9XUeFKJnnyv4HyU v9Dg== X-Gm-Message-State: AKGB3mI+/+CQvKCd4mBcXBCmKyqrGxfWXf7GPxtQ6K+ksNqAG33SttX/ jZVUeYeFw+DZSMdOTwbMvmdcOA== X-Google-Smtp-Source: ACJfBovr+9ZLPLxjm0/PGj1tfpC//XTuukQWtiLEo7nUTek0WTCou+WOfTjnuZz+ix9ncV9QrQRpTQ== X-Received: by 10.223.128.34 with SMTP id 31mr14505972wrk.248.1515500575299; Tue, 09 Jan 2018 04:22:55 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: richard.henderson@linaro.org, peter.maydell@linaro.org, laurent@vivier.eu, bharata@linux.vnet.ibm.com, andrew@andrewdutcher.com Date: Tue, 9 Jan 2018 12:22:34 +0000 Message-Id: <20180109122252.17670-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180109122252.17670-1-alex.bennee@linaro.org> References: <20180109122252.17670-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:400c:c0c::243 Subject: [Qemu-devel] [PATCH v2 02/20] include/fpu/softfloat: remove USE_SOFTFLOAT_STRUCT_TYPES 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?= , qemu-devel@nongnu.org, Aurelien Jarno Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 It's not actively built and when enabled things fail to compile. I'm not sure the type-checking is really helping here. Seeing as we "own" our softfloat now lets remove the cruft. Signed-off-by: Alex Benn=C3=A9e --- include/fpu/softfloat.h | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/include/fpu/softfloat.h b/include/fpu/softfloat.h index d5e99667b6..52af1412de 100644 --- a/include/fpu/softfloat.h +++ b/include/fpu/softfloat.h @@ -103,32 +103,6 @@ enum { /*------------------------------------------------------------------------= ---- | Software IEC/IEEE floating-point types. *-------------------------------------------------------------------------= ---*/ -/* Use structures for soft-float types. This prevents accidentally mixing - them with native int/float types. A sufficiently clever compiler and - sane ABI should be able to see though these structs. However - x86/gcc 3.x seems to struggle a bit, so leave them disabled by default.= */ -//#define USE_SOFTFLOAT_STRUCT_TYPES -#ifdef USE_SOFTFLOAT_STRUCT_TYPES -typedef struct { - uint16_t v; -} float16; -#define float16_val(x) (((float16)(x)).v) -#define make_float16(x) __extension__ ({ float16 f16_val =3D {x}; f16_val;= }) -#define const_float16(x) { x } -typedef struct { - uint32_t v; -} float32; -/* The cast ensures an error if the wrong type is passed. */ -#define float32_val(x) (((float32)(x)).v) -#define make_float32(x) __extension__ ({ float32 f32_val =3D {x}; f32_val;= }) -#define const_float32(x) { x } -typedef struct { - uint64_t v; -} float64; -#define float64_val(x) (((float64)(x)).v) -#define make_float64(x) __extension__ ({ float64 f64_val =3D {x}; f64_val;= }) -#define const_float64(x) { x } -#else typedef uint16_t float16; typedef uint32_t float32; typedef uint64_t float64; @@ -141,7 +115,6 @@ typedef uint64_t float64; #define const_float16(x) (x) #define const_float32(x) (x) #define const_float64(x) (x) -#endif typedef struct { uint64_t low; uint16_t high; --=20 2.15.1