From patchwork Tue Feb 6 16:47:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 127031 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp3091853ljc; Tue, 6 Feb 2018 08:54:30 -0800 (PST) X-Google-Smtp-Source: AH8x225y5Yf9ixXVy4vta8cwcwvFQU9j8qHECv1915N5FDw6zcs5vSiite+xRApKs14fZ4kdEQJX X-Received: by 10.37.244.70 with SMTP id p6mr1883579ybe.279.1517936070735; Tue, 06 Feb 2018 08:54:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517936070; cv=none; d=google.com; s=arc-20160816; b=YV62I5UXZsbreuKJoZqZJyS02xLjpFNlRWn6zSc7OsFY08CCd0wOWwKUORgzTwBS/9 rzMDKyDikxFHjeUzIPtyeTZPaf0qAx+187JdVUWUHHjEbGPJdW4pk59hwgemS2GctrR7 rE/a/1co/8jXDxX5iWOIo/A1bnDLgzcZH6tWDLK91W37KfShtU8bOPRFyZ3Y/RiapbLG eNrLXip8JMM/FhGBza9PGV3F73qbGdHOHLtseEW+7UvSwXhJY0xXGjui+QdYHmnk87Go 5QsM3BE5dxp45xbEI8PA0X8pn+o+MeQwn8KCKKvoSUFrpTDPJTrZ+v30GCaXYMk1h+Mx kIBQ== 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=BAFRdaYLrQzoTHM/D56Ivrx3doxZ9W9pIAbUfGIwFy4=; b=WWHKruFef+6HNJlvi/k3g7fPAIFvBQfBOcKnfIRDWmbFczI58wb9JL946FUFcw/AJF 1CqZS/6PPRAT4/T6gbvw7b8n9Ub9F665CfNrvpqb2YxFawtolODprpPb/khsH7qENq62 tB8tWT5QVG6baBwpxv4QK5FGAsKhJ9NPGphd4GmTsFnU3D/cUNZHZGxZzejlD+YBRq4y gdIaggr1wVHTplPuHUl9qy0HUy1mtbVHlCieTXNgCcO9c9LJ0mGO+1j2beh9rKqVNZUe IaZkRXDhus9ojNrXYRSlIAwHP6l4qV23n40uM/gE1OwiRSD/qmRWfFy5HpUkxhskOeU8 uUzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=WQywmFVM; 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 e92si25981ybi.401.2018.02.06.08.54.30 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 06 Feb 2018 08:54:30 -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=WQywmFVM; 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]:37476 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ej6Vq-0004sb-2i for patch@linaro.org; Tue, 06 Feb 2018 11:54:30 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33390) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ej6Pu-0000T5-50 for qemu-devel@nongnu.org; Tue, 06 Feb 2018 11:48:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ej6Ps-0004hi-4i for qemu-devel@nongnu.org; Tue, 06 Feb 2018 11:48:22 -0500 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:55163) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ej6Pr-0004g3-UG for qemu-devel@nongnu.org; Tue, 06 Feb 2018 11:48:20 -0500 Received: by mail-wm0-x244.google.com with SMTP id i186so4987193wmi.4 for ; Tue, 06 Feb 2018 08:48:19 -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=BAFRdaYLrQzoTHM/D56Ivrx3doxZ9W9pIAbUfGIwFy4=; b=WQywmFVMtMeYVZDpgBQ8fAyw1Ex0TGldi35YeCRUq491n0Mo6/tgY7dIMRykyvvWTj cgyK47YfI7SErenlw6zRs6qmGweLI7taNX1d57dmu28k+xkXeMcKlnSR3JcxJAg03VX3 qs3v7FrMm2TFfdBjz70lydjQyCN6QNvtwbgU0= 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=BAFRdaYLrQzoTHM/D56Ivrx3doxZ9W9pIAbUfGIwFy4=; b=PUsE/GgDzYK6fSpYXFVZZ7nNJ2vPuxOkLjzCS3VomjmOHzdIobFPM1zFA7tmv9xpvz NM29Aoh9LDvTkM0/8TrhyqstpT2de9m9DUnLQ+lqFoMw2ZwlgjpKKbPxV1jGaNqbr4n8 BcQkYNS9e50/zAj3ivZnq6o9pHvyB253RlSd8+YGRdLgoyC6CUqA52Nz1KuHaMJ6iDC8 aErmfuUgY3LNOvE7gNttB1390YlCP+gX32gJy2ciVpPshnmQQIMusc7gnFjhHC7886Nm k+dcjJ4sPN6a1FdxFZUt3/tP0hP3bUM2ufh7iklDLRpD67pgiOdzVKilO2FjXPRs6Qqj OR5w== X-Gm-Message-State: APf1xPCjkco8aflq+amBp3FycbMLv3WZE1sHWOGDegqQpN9TOq7cQuIS SiCzL3KX1pEuC9MykBpwwph13g== X-Received: by 10.28.88.129 with SMTP id m123mr2366811wmb.64.1517935698666; Tue, 06 Feb 2018 08:48:18 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id r188sm10454338wmb.40.2018.02.06.08.48.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Feb 2018 08:48:16 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 3F4833E027B; Tue, 6 Feb 2018 16:48:15 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: richard.henderson@linaro.org, peter.maydell@linaro.org, laurent@vivier.eu, bharata@linux.vnet.ibm.com, andrew@andrewdutcher.com Date: Tue, 6 Feb 2018 16:47:55 +0000 Message-Id: <20180206164815.10084-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180206164815.10084-1-alex.bennee@linaro.org> References: <20180206164815.10084-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::244 Subject: [Qemu-devel] [PATCH v4 02/22] 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_Benn=C3=A9e?= , qemu-devel@nongnu.org, Aurelien Jarno Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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.15.1 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;