From patchwork Sun Feb 4 04:11:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 126795 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp924184ljc; Sat, 3 Feb 2018 20:14:32 -0800 (PST) X-Google-Smtp-Source: AH8x225rDLU2ujRQuoNtmZD2Zrd6bKhxNdb8ZAE1yyG23vX/TYKDR4FyeyifKowt+4KXCDMkDnEI X-Received: by 10.129.183.8 with SMTP id v8mr30356419ywh.68.1517717672399; Sat, 03 Feb 2018 20:14:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517717672; cv=none; d=google.com; s=arc-20160816; b=bZ06sYhz3UNAuS+PEJhNfbI2T/sGiZa0yPqYqJ8gmmc+VRKveVnB23k/mnp3W3VhP2 LQFBOiPJFYgfOuCYrYetsX9G77sG4UI3XTFgfoiypKy0oEC4COsaY+3GT0kDL9vr2wSM vbXmUJZo7n72WhoM1shHfth1sWxB6q7gswWkMIZsVCCFlOVWINaFspg4sH/G0Rc7yhQY dK2C74/cOhPFpx/PKWWPe1Db4OwLV8WkhT5Z5Jrh7py96ty8T9zk6DVm9P5BF+hojNu3 K7iJ6+Qw26hcBdJJCyuDBEZsFHfnBJ0s6Myl2RmxHh+U0Mfh8e9t5BZceiyItmB2OmIU 02Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=M/X47EYVfE46yjRXI8il0rh0nfUtsk7EalgOH1v3J/k=; b=AI5j3ATHrjg49tM6oLm7dIPqXxbuIA3L12N4t8fzVkrHXIqVAZqvapenakNF/nPKOG 5ZlXgsR2mpDuAnm4xC0k6A0QJLroJUSl/DaDh+JI1YZ0iGNVFwV5coIRro6s71aUKeJ/ 87ooJ67o2U1r8XDWmkgzzlAIw3OxAQIsEkHOp0FEMyH+gR03BSx6FXLQc2qlDYkwgY+s FqsAoJVFKVbi78inG3mrdLoSO3zcx0TRdFZ7+NpW8NGHTbJ0huXL9EchIQAXkSBMH4zW ZlkHRc5QQF8KgYS2gRFrOUqqHqmE37ECtWYicOK3tlyOBDpClrwlUHHlLUr0oZnuMaPc 0onA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Wjsn+f3J; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 84si1007306ywd.494.2018.02.03.20.14.32 for (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 03 Feb 2018 20:14:32 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Wjsn+f3J; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:58239 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eiBhH-0005qa-Lk for patch@linaro.org; Sat, 03 Feb 2018 23:14:31 -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) 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-Received: by 10.98.66.67 with SMTP id p64mr44688933pfa.227.1517717503103; Sat, 03 Feb 2018 20:11:43 -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) 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 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+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Alex Bennée 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ée Reviewed-by: Richard Henderson --- include/fpu/softfloat.h | 27 --------------------------- 1 file changed, 27 deletions(-) -- 2.14.3 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 = {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 = {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 = {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;