From patchwork Sun Nov 9 21:53:00 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 123845 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 E46403858D33 for ; Sun, 9 Nov 2025 22:03:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E46403858D33 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=YeLjwYAX X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by sourceware.org (Postfix) with ESMTPS id 6D7273858409 for ; Sun, 9 Nov 2025 21:53:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6D7273858409 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=kernel.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6D7273858409 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=172.105.4.254 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1762725183; cv=none; b=i7lOvinnefasY1qi7q2oqqYG799PzYVEkKuo7WNDwZMOsjIgN95blIXds5kHy5Jo6OXFvStjIxX7iCjxyE69ep75fW1ikEEur3X0KzKmjeDbqhZshqhzVhxFMBbriZtSZVkkEZtXEe/WDD4HNGiOwwFBUMPuOuTswd4JlTZh0xw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1762725183; c=relaxed/simple; bh=AL5zbHHUeDO6MUjEJL/zYW1v+BgJn6yZwJwdMQ8QeUw=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=lHezuVozEn7Tb/41Sn2rX+YA+b5vTB8WT2aKvQkr2zeRK5gSGG56zBue0jKCaQqZGHoZOIk24rgpTE3RbMlwOtn8Xus7z2lhFVWrIScVqSSzkGvbFxERSUQfM8jbCnk2ewIolD6Be4tl0d0EG9kGdWpd0k4Wbv4u1bqQ3vWrtlc= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6D7273858409 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 15A4860052 for ; Sun, 9 Nov 2025 21:53:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1922BC19421; Sun, 9 Nov 2025 21:53:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1762725182; bh=AL5zbHHUeDO6MUjEJL/zYW1v+BgJn6yZwJwdMQ8QeUw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YeLjwYAXkhxWRhnQ/oLmXLPwmASg8/YwtIutVAjoKbeQO6a0NcArq180UfytLDyxR rIDP32BIjl5IyHE7i7SIu6xrUWgsULUmja3xQHvBrfk2OBSGe6IClq8w3CLHGCCnQA zH444zfvHzeaFYXSojAZHpWUYqOhsaXK7k4xiuIykTTp0VSmtbMOsldwNEhjVpQjMc XyY4i2SGMI5yh6lcNW8RpP5ZHClkFaG8rZF/i4med/22vjKTwQ1Jbt/H0PZ/PDsWQ/ +hM8mPQCLmoXzuYdSX5vGvmKxCMEX52gjspnKqZQH/TDyxctc1usLOcJAu/vusNIau JykyZEypfBBHQ== Date: Sun, 9 Nov 2025 22:53:00 +0100 From: Alejandro Colomar To: libc-alpha@sourceware.org Cc: Alejandro Colomar Subject: [PATCH v1 06/35] include/intprops.h: Remove dead code due to _GL__GENERIC_BOGUS Message-ID: X-Mailer: git-send-email 2.51.0 References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED, SPF_HELO_NONE, SPF_PASS, TXREP 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 It's unconditionally defined as 1. Signed-off-by: Alejandro Colomar --- include/intprops.h | 47 ---------------------------------------------- 1 file changed, 47 deletions(-) diff --git a/include/intprops.h b/include/intprops.h index 377706ac3d..149513a1d0 100644 --- a/include/intprops.h +++ b/include/intprops.h @@ -408,52 +408,6 @@ _GL_INT_OP_WRAPV (a, b, r, *, _GL_INT_MULTIPLY_RANGE_OVERFLOW) #endif -/* Nonzero if this compiler has GCC bug 68193 or Clang bug 25390. See: - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68193 - https://llvm.org/bugs/show_bug.cgi?id=25390 - For now, assume all versions of GCC-like compilers generate bogus - warnings for _Generic. This matters only for compilers that - lack relevant builtins. */ -# define _GL__GENERIC_BOGUS 1 - -/* Store the low-order bits of A B into *R, where OP specifies - the operation and OVERFLOW the overflow predicate. Return 1 if the - result overflows. See above for restrictions. */ -#if 201112 <= __STDC_VERSION__ && !_GL__GENERIC_BOGUS -# define _GL_INT_OP_WRAPV(a, b, r, op, overflow) \ - (_Generic \ - (*(r), \ - signed char: \ - _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ - signed char, SCHAR_MIN, SCHAR_MAX), \ - unsigned char: \ - _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ - unsigned char, 0, UCHAR_MAX), \ - short int: \ - _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ - short int, SHRT_MIN, SHRT_MAX), \ - unsigned short int: \ - _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ - unsigned short int, 0, USHRT_MAX), \ - int: \ - _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ - int, INT_MIN, INT_MAX), \ - unsigned int: \ - _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ - unsigned int, 0, UINT_MAX), \ - long int: \ - _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \ - long int, LONG_MIN, LONG_MAX), \ - unsigned long int: \ - _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \ - unsigned long int, 0, ULONG_MAX), \ - long long int: \ - _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long long int, \ - long long int, LLONG_MIN, LLONG_MAX), \ - unsigned long long int: \ - _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long long int, \ - unsigned long long int, 0, ULLONG_MAX))) -#else /* Store the low-order bits of A B into *R, where OP specifies the operation and OVERFLOW the overflow predicate. If *R is signed, its type is ST with bounds SMIN..SMAX; otherwise its type @@ -512,7 +466,6 @@ : _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \ unsigned long int, 0, ULONG_MAX)) # endif -#endif /* Store the low-order bits of A B into *R, where the operation is given by OP. Use the unsigned type UT for calculation to avoid