From patchwork Thu Mar 6 18:34:18 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aurelien Jarno X-Patchwork-Id: 107456 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 116D73858CDA for ; Thu, 6 Mar 2025 18:35:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 116D73858CDA Authentication-Results: sourceware.org; dkim=pass (2048-bit key, secure) header.d=aurel32.net header.i=@aurel32.net header.a=rsa-sha256 header.s=202004.hall header.b=WIIf39RB X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from hall.aurel32.net (hall.aurel32.net [IPv6:2001:bc8:30d7:100::1]) by sourceware.org (Postfix) with ESMTPS id F312F3858C98 for ; Thu, 6 Mar 2025 18:34:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F312F3858C98 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=aurel32.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=aurel32.net ARC-Filter: OpenARC Filter v1.0.0 sourceware.org F312F3858C98 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:bc8:30d7:100::1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1741286077; cv=none; b=GAt3ppBD0qPP47EomFHizUN4c+wBsmZEih2w59cK2RUV+rRyv3V/L+yjLolsobHvr+ECUxrpeSvzFMyV7eDzvYLWla6FnDBnWU9BGB8dKJnW5HDDCxjAd8IOIYxUW/UxD6m6AP9X981BOWLIFCvmGSjHaD1xW7YTVEu4qWsjO0M= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1741286077; c=relaxed/simple; bh=rvnQb/3CosVMbMMhXkzEDQcVuLAB0AbGEaOpjrprmck=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=CBn8ZfKbzh+cs4DuONq9KkLnQBo2uTe2CvK24e+UeLSfISx0sum+0ZRovjJIE8EYKxZQYv1zMZD+yyVZ5eB+bBuNHHg2B7uSdvhybrRcsofjr1nCoO2aC5PGvt7z6GsrrNr27XMe59ZUozXxhHf82c5JxuUfMtKExFRITkhQBtY= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F312F3858C98 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=aurel32.net ; s=202004.hall; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date: Subject:Cc:To:From:Content-Type:From:Reply-To:Subject:Content-ID: Content-Description:In-Reply-To:References:X-Debbugs-Cc; bh=TfHM7H6J/nGVBJtZ3SnEgyyTJA0ZHnM114p4n922G5s=; b=WIIf39RBlBCoAXIms8cDQIzZ9g PpuXV+d/TIxcM1wAF1KBegToKkJGRW+I2oPbv6A+soCd8qjVnT74g4TMd4rEaZCNKGe1A8tRFGgVT Sv/+sF1d3uiQMlhzGm8nFXOYLSRNWArxKaJl+CE7bkRXsMqrc31Y1zHWHQ1GjsNOvcYkSvYCtkrVj 5U+0u/wdJ6hO7LtgQuZsMUaJTHPcH1M3S50nn3qx6Rn4ZpRhcHdRW6UlTm3Vq2umYctP1dxWad5y9 oG1j2xr94DM81x9R1uWHVMcf3ytxM8VQVlQGJpADxcxhCYuac3FonH6JX29GL4bLKGaNvP54cP3CF dgGD5XSA==; Received: from [2a01:e34:ec5d:a741:1ee1:92ff:feb4:5ec0] (helo=ohm.rr44.fr) by hall.aurel32.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tqG3H-00BbE5-1F; Thu, 06 Mar 2025 19:34:35 +0100 From: Aurelien Jarno To: libc-alpha@sourceware.org Cc: Aurelien Jarno Subject: [PATCH] math: Remove an extra semicolon in math function declarations Date: Thu, 6 Mar 2025 19:34:18 +0100 Message-ID: <20250306183418.3086902-1-aurelien@aurel32.net> X-Mailer: git-send-email 2.47.2 MIME-Version: 1.0 X-Spam-Status: No, score=-12.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_PASS, 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 Commit 6bc301672bfbd ("math: Remove __XXX math functions from installed math.h [BZ #32418]") left an extra semicolon after macro expansion. For instance the ceil declaration after expansion is: extern double ceil (double __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__));; This chokes very naive parsers like gauche c-wrapper. Fix that by removing that extra semicolon in the macro. --- math/bits/mathcalls-macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/math/bits/mathcalls-macros.h b/math/bits/mathcalls-macros.h index 1ef07f1f58..321ae00ec8 100644 --- a/math/bits/mathcalls-macros.h +++ b/math/bits/mathcalls-macros.h @@ -34,7 +34,7 @@ #define __MATHCALLX(function,suffix, args, attrib) \ __MATHDECLX (_Mdouble_,function,suffix, args, attrib) #define __MATHDECLX(type, function,suffix, args, attrib) \ - __MATHDECL_1(type, function,suffix, args) __attribute__ (attrib); + __MATHDECL_1(type, function,suffix, args) __attribute__ (attrib) #define __MATHDECL_1_IMPL(type, function, suffix, args) \ extern type __MATH_PRECNAME(function,suffix) args __THROW #define __MATHDECL_1(type, function, suffix, args) \