From patchwork Thu Jan 18 16:02:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 84355 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 11E25385829F for ; Thu, 18 Jan 2024 16:03:23 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by sourceware.org (Postfix) with ESMTPS id B15DB3858CDB for ; Thu, 18 Jan 2024 16:02:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B15DB3858CDB Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B15DB3858CDB Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::434 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705593769; cv=none; b=BZnX0zLAW9CbkRzmHElD5ZqguqLTWacXB0psxzq02RfchDD7yTqFU9LZvMDKpfU50crAomddwxuWKteiksECIStuVLR5obG/KZE+mAzmo2eOAUyKDHAUecC6+IxMkaj3kwHu0xCo5J0axKKWIC7AISCngWGjnnkIpBpnJYwX9BU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705593769; c=relaxed/simple; bh=7haO9t1WvuGY18sARdp2c4WwecrqI9OUJOWFxJXPmyQ=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=vztebp1HsTN0vWAmL4Jtx+iQC2AnNV0FZKuGZgE2TnAk+sJKYd/GevP1BD1KCpzahvQOCGoS2pDjdbqwn1D7MguEQvEhYmMvdCbyJ8a7oK+P8lZMzRhw9rcdPUhqbRBchrw/jf97kmGlUo81E2T6ZVagXvzc/2KeOA0s+ZaNAuU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-6d9a79a1ad4so6952731b3a.2 for ; Thu, 18 Jan 2024 08:02:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705593755; x=1706198555; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=ViXxLsmdylUppPP1Vjx3sYq2OlSI6bJq1V5Hnpo85GE=; b=b1lhIVHg3OcoN46CvXHb4t+VXkrukUrTwnmX+ZgBupmX/iOC3Cz607qa4zZmbZ2vg5 iDz/6eaNYmphCEZGE3SRx+15Xr8qyKWzYO3AGE1nIpedH/qYsPDc5VjFi46chhzU9D+C Essg3iK2bPO7y+8ydYaTcXU7fs9wFmuE71M03OUnNyJxhT8P3qgvZKGKTh9NCf4CP2N3 8atkSoJG4MWP5iph1qfaMlWwuLh6u48W6m6L9mbIzjYBSJ0kMN3OPH+6OuppOlhRptlE HeWaOopifa/Mc2xIbHz3IK1BrmMjJQxUsD4IijkWmH/1K50hAGiP4lI5XHd4U4CL/8dz sk2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705593755; x=1706198555; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ViXxLsmdylUppPP1Vjx3sYq2OlSI6bJq1V5Hnpo85GE=; b=ky2qHVdV0UDgW6WASBhOlUKEtdLZ6le2D5ljU1rDtrr9KDlOIS4GvU267Ucq21NhcP eSyvOtpKVKuE43lB4TdLuOShjofyZRawDhzbPR9BEyek7UGkG2DX5h6TAdJwJa52cDQ9 AjN8O+FSaX+NZgiZicWssfGDG/dEmLY+KEBZkLc1yy1FseFOlZyBbhQghFoxFHDuvsVK 9WqPswmSLmP2zDNTTp36MSGXSL6nGQsszeyqOE4iNoaKJ4mJLDqzoRj3rQnGjK1qfBJc AE293DnUTESgfTxcD3leeDIWb8hi7m0OZpxcdciD11iBAbz3vE9wl7WtsHs+dOgDipdz Gl2Q== X-Gm-Message-State: AOJu0YyRzIYuihQ3GU4Pgfuv5qsWsIbO86if6pkJgFrsAHGgqBcC3YuU SzSE+bmuSYtOrj4R8Pkv6vRbBBoCWD99WMpNxXPXpbtDo6lo3MTvU59HdIaobV+azmJydRC+YkE n X-Google-Smtp-Source: AGHT+IHlzXa9pm/w3WdVyZLhBqjlw1F7EGVkDX2BOklwi/xKm3euyLwxHZpQMMfjPn+yl4hPhBBSCg== X-Received: by 2002:a62:6105:0:b0:6db:cce:13be with SMTP id v5-20020a626105000000b006db0cce13bemr838557pfb.38.1705593754994; Thu, 18 Jan 2024 08:02:34 -0800 (PST) Received: from mandiga.. ([2804:1b3:a7c2:2787:5326:ea15:1a78:7483]) by smtp.gmail.com with ESMTPSA id h20-20020a056a00231400b006dacfab07b6sm3463559pfh.121.2024.01.18.08.02.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 08:02:34 -0800 (PST) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 2/4] sparc: Remove 64 bit check on sparc32 wordsize (BZ 27574) Date: Thu, 18 Jan 2024 13:02:26 -0300 Message-Id: <20240118160228.741832-3-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240118160228.741832-1-adhemerval.zanella@linaro.org> References: <20240118160228.741832-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org The sparc32 is always 32 bits. Checked on sparcv9-linux-gnu. --- sysdeps/sparc/sparc32/bits/wordsize.h | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/sysdeps/sparc/sparc32/bits/wordsize.h b/sysdeps/sparc/sparc32/bits/wordsize.h index 2f66f10d72..4bbd2e63b4 100644 --- a/sysdeps/sparc/sparc32/bits/wordsize.h +++ b/sysdeps/sparc/sparc32/bits/wordsize.h @@ -1,11 +1,6 @@ /* Determine the wordsize from the preprocessor defines. */ -#if defined __arch64__ || defined __sparcv9 -# define __WORDSIZE 64 -# define __WORDSIZE_TIME64_COMPAT32 1 -#else -# define __WORDSIZE 32 -# define __WORDSIZE_TIME64_COMPAT32 0 -# define __WORDSIZE32_SIZE_ULONG 0 -# define __WORDSIZE32_PTRDIFF_LONG 0 -#endif +#define __WORDSIZE 32 +#define __WORDSIZE_TIME64_COMPAT32 0 +#define __WORDSIZE32_SIZE_ULONG 0 +#define __WORDSIZE32_PTRDIFF_LONG 0