From nobody Wed Feb 11 02:09:43 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; 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 1517717633247733.0722598158738; Sat, 3 Feb 2018 20:13:53 -0800 (PST) Received: from localhost ([::1]:58239 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eiBgY-0005qa-KJ for importer@patchew.org; Sat, 03 Feb 2018 23:13:46 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eiBed-0004UE-20 for qemu-devel@nongnu.org; Sat, 03 Feb 2018 23:11:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eiBea-0004p0-H0 for qemu-devel@nongnu.org; Sat, 03 Feb 2018 23:11:47 -0500 Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]:36832) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eiBea-0004or-BB for qemu-devel@nongnu.org; Sat, 03 Feb 2018 23:11:44 -0500 Received: by mail-pg0-x241.google.com with SMTP id x25so3376250pge.3 for ; Sat, 03 Feb 2018 20:11:44 -0800 (PST) Received: from cloudburst.twiddle.net (174-21-6-47.tukw.qwest.net. [174.21.6.47]) by smtp.gmail.com with ESMTPSA id k3sm1399425pgr.12.2018.02.03.20.11.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 03 Feb 2018 20:11:42 -0800 (PST) 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=M/X47EYVfE46yjRXI8il0rh0nfUtsk7EalgOH1v3J/k=; b=Wjsn+f3J1ygxiKBZWUW1IE4BCrO4xLYCZiwsxdlBIqSz0WruAmysKE5mHR7ndGdUKq SI5HA7yd/Mh/LLnth6LRgQnKBEJXOAeL93GrfHOtM/M8+9MoO195jscNRi1CTQGz76zP AiTMpwrJPEdP1B/a3l82bQQL0n6iGtDFdlEBY= 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=M/X47EYVfE46yjRXI8il0rh0nfUtsk7EalgOH1v3J/k=; b=rwsofkLfWxC0M3yDoVKv1WUixdD30Bz5fKHMiq4lZMNnerPx2KC7Gr59RM9di10PFp GEbeMXqEm878tHmfzIJb95J4ozLMjMY5oSmYxryhii11tfrGPMF6qNtI58Th+JQ4H1Y4 xIXV2yc5jRi+iEVmuVYyuMn55RwoOUhypCM9Rrxo18nnfuYV+KJ4SJuKlF7s2O+5cCof K9cBee62+r60ri/GXHp1osK47Xo57g6z3blqJliDqIgDfPkaG65K3wTZ9Awm+UfDsTdh cM1FzfHFuiN8/MXSBh9EZCxrLxJSME1zY5fu8NyceDsSQO3W19HnHr7oDKlOueo2nKbl WR+A== X-Gm-Message-State: AKwxyteed3JqBYHpWIW9v2ZkxbXFZeIi9xSaH4L6S8ttlcKAGiR/x6q7 XDxdgwCEKig6fxj9BVVaRLgUAkJ6ajc= X-Google-Smtp-Source: AH8x22633Cqrvx4haA5IALhCr86OQa3IK281HoPkKHnfaI3gqeqOU/ICwcKAUZXIOFBOUVemRK/ARA== X-Received: by 10.98.66.67 with SMTP id p64mr44688933pfa.227.1517717503103; Sat, 03 Feb 2018 20:11:43 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Sat, 3 Feb 2018 20:11:14 -0800 Message-Id: <20180204041136.17525-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180204041136.17525-1-richard.henderson@linaro.org> References: <20180204041136.17525-1-richard.henderson@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: 2607:f8b0:400e:c05::241 Subject: [Qemu-devel] [PATCH 02/24] 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: peter.maydell@linaro.org, cota@braap.org, alex.bennee@linaro.org, hsp.cat7@gmail.com 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 From: Alex Benn=C3=A9e 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 Reviewed-by: Richard Henderson --- 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.14.3