From patchwork Wed Jan 15 22:52:11 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam James X-Patchwork-Id: 104862 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 06EAA3851154 for ; Wed, 15 Jan 2025 22:53:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 06EAA3851154 X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 54EBE3857C58 for ; Wed, 15 Jan 2025 22:52:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 54EBE3857C58 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 54EBE3857C58 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:ea4a:1:5054:ff:fec7:86e4 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736981550; cv=none; b=LnKuF2ox98SsDF4ZiwahZEKUXI7U7tuhitROiYazE+tv331i4ku+2g5z2DtYiQZlfTvmjF5u/3eLqekR2DM+B5Id+bB8AOR9wcMkNDNJL4SCUYv6lmHwbV7sECl2zmw2nQVauBRRuwwe0RfF79OS13HFEFfvzXeWVXekOr2Vj7I= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736981550; c=relaxed/simple; bh=FJR22DG+eZ9trwDcs8Utd+HlWjxwiu6Y6+NAk1emZAQ=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=huGTrZf3epWJ/tAAvbuG0sA8aZiuA0v1qva/BbftPgrjjWFAK03j0p5vrtQCISl1xTRrIfprQ2T8OygFXGWZFEv/AT6SVTOGSuh40wXXSVfoMc847qESXcjQt+4oKywZhGUhGkOPWmVeyxsemeKhEhpW4s5T98Pq9A1qyOc6byc= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 54EBE3857C58 From: Sam James To: gcc-patches@gcc.gnu.org Cc: Sam James Subject: [COMMITTED 1/2] doc: trivial grammar fix Date: Wed, 15 Jan 2025 22:52:11 +0000 Message-ID: X-Mailer: git-send-email 2.48.0 MIME-Version: 1.0 X-Spam-Status: No, score=-10.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org We say 'a constant .. expression' elsewhere. Fix the grammar. gcc/ChangeLog: * doc/extend.texi: Add 'a' for grammar fix. --- Committed as obvious. gcc/doc/extend.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 1e1b4cc837da..84894efc2ea4 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -15534,7 +15534,7 @@ the expected number of iterations made by loop optimizations. This function has the same semantics as @code{__builtin_expect}, but the caller provides the expected probability that @var{exp} == @var{c}. The last argument, @var{probability}, is a floating-point value in the -range 0.0 to 1.0, inclusive. The @var{probability} argument must be +range 0.0 to 1.0, inclusive. The @var{probability} argument must be a constant floating-point expression. @enddefbuiltin From patchwork Wed Jan 15 22:52:12 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam James X-Patchwork-Id: 104863 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 43EF73851157 for ; Wed, 15 Jan 2025 22:53:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 43EF73851157 X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 550DA3860767 for ; Wed, 15 Jan 2025 22:52:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 550DA3860767 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 550DA3860767 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:ea4a:1:5054:ff:fec7:86e4 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736981550; cv=none; b=vNACaEBEaXOGftEPyP8g5ULeSn6iyKXC5w7wn+UBL6COffM/atGQ1oNHjjRMRZU1l2L5v6lo+evaL9qnwX7loob/UkaA5tFzWw/fLNqE5akqyCUCo0tYiRcDKN2gPkfiHEYUM3JWz+CPB/Y3Nm7iuEmXMifSqm2C3RGvd/dEDZ8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736981550; c=relaxed/simple; bh=q2My5zNF1iU1zMnORDHqreuLiOnA3dnH1BzQbqEWoJ4=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=aE9Npvkfdy2S+1sSgFFVtePYrdUzpVj9X1sAsyLLnKX0ZCr9hpdq5IyxdVq9N/31T3C8DCp2wieBEzT0uvcawKntZVh539x6545su3dyo71Wqq2+162h5aMutKvD4Jhf5CABd62305X6C9RZ4+o749Wuf07GI6mwV/BTO8SmFBk= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 550DA3860767 From: Sam James To: gcc-patches@gcc.gnu.org Cc: Sam James Subject: [COMMITTED 2/2] doc: cleanup trailing whitespace Date: Wed, 15 Jan 2025 22:52:12 +0000 Message-ID: X-Mailer: git-send-email 2.48.0 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-10.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org gcc/ChangeLog: * doc/extend.texi: Cleanup trailing whitespace. --- Committed as obvious. gcc/doc/extend.texi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 84894efc2ea4..52ba78b80361 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -15355,7 +15355,7 @@ a function if it does not. For example: You may use this built-in function in either a macro or an inline function. However, if you use it in an inlined function and pass an -argument of the function as the argument to the built-in, GCC +argument of the function as the argument to the built-in, GCC never returns 1 when you call the inline function with a string constant or compound literal (@pxref{Compound Literals}) and does not return 1 when you pass a constant numeric value to the inline function unless you @@ -15520,9 +15520,9 @@ when testing pointer or floating-point values. For the purposes of branch prediction optimizations, the probability that a @code{__builtin_expect} expression is @code{true} is controlled by GCC's -@code{builtin-expect-probability} parameter, which defaults to 90%. +@code{builtin-expect-probability} parameter, which defaults to 90%. -You can also use @code{__builtin_expect_with_probability} to explicitly +You can also use @code{__builtin_expect_with_probability} to explicitly assign a probability value to individual expressions. If the built-in is used in a loop construct, the provided probability will influence the expected number of iterations made by loop optimizations.