From patchwork Thu Aug 8 02:01:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wentao Zhang X-Patchwork-Id: 1970306 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=YXqAOgUT; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WfVgK33f8z1ybS for ; Thu, 8 Aug 2024 12:02:53 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4912A3858432 for ; Thu, 8 Aug 2024 02:02:51 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by sourceware.org (Postfix) with ESMTPS id E80733858410 for ; Thu, 8 Aug 2024 02:02:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E80733858410 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E80733858410 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::435 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1723082552; cv=none; b=G6HozBEFObVuM62819zzc4xvYfE3EX9F4ytQrK4n2D7gW0y8bqhsYhWE3J87flgV06Auube8cWdgMLXKeFnsZbbFugN++/HOCA8rJh+yKYlpO19jlqNRTEHGSIVOfNMNxXowWPZ5XY3ErI9O94VMaHI5ZoaprHF2pwJB/HBcF8w= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1723082552; c=relaxed/simple; bh=fOGivkBrMKxV9OxERTAQBrqBKsD7lxHvBex1goj7Un4=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=M1GIaqQNJrz9NUqsyN36IZtuXvvE84fCSpuUe1JUsGzam4vfuC0GGHyHCXnJVUU22NF+o1oRQYLxI/ldO1iIPwH9X/EDcwV3X34qb/GeaWv9Yik2N+Xd/XAMYH+Ty1IVkFepVQp+PAYedDGILc0LDqnJRX2336dsSFKnOdc7alc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-70d199fb3dfso410516b3a.3 for ; Wed, 07 Aug 2024 19:02:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723082525; x=1723687325; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=/08Mn5rxO4KG0AOhP3Rbpc+8Hj9RHInAVR/tVs4gaLQ=; b=YXqAOgUTYlCIl96yVoLMTRB9Ih8WCJuXBq0VxIMzobfnRvAR/0av2cFGRqLc+n/oqi FVO4/o/qv6CemNHy0s7IeFFTzzNXt6mHI1YdA3WE6pKvPrq1+qtvEW+ksVIb5tMtr8JZ eDz4mGx+vUujikVKeAcUSUY4o/V1zlSNaklULtjXZvvncVNuyzDaVCxJTDsusflRwPN7 qq83f6aULCSvMykAAcvjsAH/98lVSHNR7qEFe16TA4b/SeIt8R1Qh+6Mda03JbgJOga1 aocF8r/uajLFKKi8nSg2SvUsF/r8IUFZKvliQFTY5qo7HYlRvWjtI9cL79oqrvVEsMuz FLzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723082525; x=1723687325; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/08Mn5rxO4KG0AOhP3Rbpc+8Hj9RHInAVR/tVs4gaLQ=; b=ZMjj7czCkN7m5H6TfswpnM0KP5j9eb0Oo4jjY8Dl3JiT/+PxVlJtmd1GafZO/PHhq7 Av2YfHZbZEAZi6CtZxSo96dVZYpm5xWzDxKuoB3wIRrq+IEwRDWcbaPf91NM7JLdbapO KOLFI8bDNacfGn6ZDkSpPpOA5tjSRQdVOy1h0DfhEZr10Qbr3PYoe45Adov9vWLBw7mv AI2j9yZemJIz1gZHxZ5xKEqy4PEkE5PTUomKHfDw9/ZuZgoc9fPRG8p6Ev1ae9ozjfjj 4PNFQNzzEYwuABHPJEstnBpyQGlamoXT77k0wntL5rvQlaVGMr9ZzoLslOqWOYasch0y 6pmw== X-Gm-Message-State: AOJu0YwqEE/fk0p49hDD5zSC2KULNGBZDNYccPHc447cXJ267xVGvJy/ nmvEHqZSLJObW4UN4fatrhdOoJeFmB/dG7RQE7BxnaXRLS4xtjepiONlcIYY X-Google-Smtp-Source: AGHT+IH1Jjvv9VYoXKWi6XHaqYZ/cXgjdHo4ITlINlHmmzQaHWKmvaEL3kc2X+p72LxgyBbgsYzCiQ== X-Received: by 2002:a05:6a00:992:b0:705:6a0a:de14 with SMTP id d2e1a72fcca58-710cad30b98mr663432b3a.1.1723082524511; Wed, 07 Aug 2024 19:02:04 -0700 (PDT) Received: from node0.small2.linux-mcdc-pg0.clemson.cloudlab.us ([130.127.134.45]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-710cb22b9c8sm160493b3a.76.2024.08.07.19.02.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Aug 2024 19:02:04 -0700 (PDT) From: Wentao Zhang To: gcc-patches@gcc.gnu.org Cc: j@lambda.is, zhangwt1997@gmail.com Subject: [PATCH] doc: move the cross reference for -fprofile-arcs to the right paragraph Date: Wed, 7 Aug 2024 21:01:59 -0500 Message-Id: <20240808020159.142198-1-zhangwt1997@gmail.com> X-Mailer: git-send-email 2.34.1 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, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, 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: 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~incoming=patchwork.ozlabs.org@gcc.gnu.org The referenced page contains more explanation of auxname.gcda produced by gcov profiler, which is a continuation of -fprofile-arcs's description. gcc/ChangeLog: * doc/invoke.texi (Instrumentation Options): Move the cross reference of "Cross-profiling" under the description for flag "-fprofile-arcs". --- gcc/doc/invoke.texi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 27539a017..cd10d6cd5 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -17328,6 +17328,8 @@ Note that if a command line directly links source files, the corresponding E.g. @code{gcc a.c b.c -o binary} would generate @file{binary-a.gcda} and @file{binary-b.gcda} files. +@xref{Cross-profiling}. + @item -fcondition-coverage @opindex fcondition-coverage Add code so that program conditions are instrumented. During execution the @@ -17336,8 +17338,6 @@ can be used to verify that all terms in a Boolean function are tested and have an independent effect on the outcome of a decision. The result can be read with @code{gcov --conditions}. -@xref{Cross-profiling}. - @cindex @command{gcov} @opindex coverage @item --coverage