From patchwork Tue Feb 8 03:20:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 50902 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 1D1693858426 for ; Tue, 8 Feb 2022 04:29:57 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by sourceware.org (Postfix) with ESMTPS id 1583C3858C27 for ; Tue, 8 Feb 2022 04:29:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1583C3858C27 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-pl1-x630.google.com with SMTP id c3so12844094pls.5 for ; Mon, 07 Feb 2022 20:29:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=subject:date:message-id:mime-version:content-transfer-encoding:cc :from:to; bh=e9Dxzdgg3TtvKlR0pgQKzw08ek+KCgOrC0FDfnfFtr4=; b=UKxYutjUtKO7Um/bBn04Xjj30uq1VEN6zB2PROMm30fFnXSxyV9SKOA9vef30Q2hFk in1WRrU+R3xQaBMKeCtJY4H6wreqD/RgXmJLEOC2HDu6dFSmNU01HgVtEY35+x1R2CRx hLPNdMDMB1zu57kfjBKqgaxT9NPSg8UegtgvVQn8S6BlWz2pleoi0/p6sNZCX1DqfZap lxjqJf7NiOwghb/EsK6Hwl0QKYMa5d7KKhAHgfnyL2b1+DhchDGn/tr3JXR2U4/UqYcR A5GlYWPaEiInTIq23c26yFvM5IQ+XA+qazoFngvTMVDLtQNmWWV2Uf8hp5GqhhPqf+e0 WDPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:date:message-id:mime-version :content-transfer-encoding:cc:from:to; bh=e9Dxzdgg3TtvKlR0pgQKzw08ek+KCgOrC0FDfnfFtr4=; b=cbs8gr697F8J14avCXyi6siRDnJjpTFjwZ3DTOvAYeLByUEnhzNjpayd01hNuTzv7l 8gvtlnTueeb3yen5lSV5xe9YZrOxT6gopvZUKm5wzpKIwsZGW0yWKbPqBNfnSmU4DTiy jwC1OPrDyHFUlWdiKKUXdWlyEqR0ZTsimPD+AaSWkU2X7ge5tIq9TmyOBuN8Hr/Y+5a5 GUUGCqlmGF4cOpF7Tzg+J2JqIkynj8B5k8brY3vPLDDVn78DJxQTpmH6kSNeJrbZF8km d0v7DczV6blwE3R6myMu7PrKlWfwIfoYvGVsRc2tS3d9k87tlSS9c+wGfDPTBZvoIXhe eYpA== X-Gm-Message-State: AOAM530Mze3iyZWru4p6dAir88OQ1RSoc7qF6gTkytvusZgnEmBdXaot dTDP/O+JYzxCM6ng0cGVi4bdIA== X-Google-Smtp-Source: ABdhPJzoMoLFD6oRl7Qutk5OBqcA7M/PyGMo9o4MayVDoy+BdIYtsKxhBcD9KZH3C4tW9+8MwRr2TQ== X-Received: by 2002:a17:90b:1b52:: with SMTP id nv18mr2442068pjb.136.1644294578412; Mon, 07 Feb 2022 20:29:38 -0800 (PST) Received: from localhost ([12.3.194.138]) by smtp.gmail.com with ESMTPSA id mi18sm355242pjb.35.2022.02.07.20.29.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Feb 2022 20:29:37 -0800 (PST) Subject: [PATCH] doc: invoke: RISC-V: Clean up the -memit-attribute wording Date: Mon, 7 Feb 2022 19:20:21 -0800 Message-Id: <20220208032021.1400-1-palmer@rivosinc.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 From: Palmer Dabbelt To: gcc-patches@gcc.gnu.org X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, 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.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 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 Sender: "Gcc-patches" The previous wording makes it sound like "do not emit" is a clarification of "emit", which is not accurate. This cleans up the wording to match (most) of the other arguments. gcc/ChangeLog * doc/invoke.texi (RISC-V -memit-attribute): Re-word the do/do not language. Signed-off-by: Palmer Dabbelt --- gcc/doc/invoke.texi | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 8bd5293fce7..0ebe538ccdc 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -26294,12 +26294,11 @@ assembler and the linker alone without help from the compiler. @itemx -mno-mcount-ra-address @opindex mmcount-ra-address @opindex mno-mcount-ra-address -Emit (do not emit) code that allows @code{_mcount} to modify the -calling function's return address. When enabled, this option extends -the usual @code{_mcount} interface with a new @var{ra-address} -parameter, which has type @code{intptr_t *} and is passed in register -@code{$12}. @code{_mcount} can then modify the return address by -doing both of the following: +Do or do not emit code that allows @code{_mcount} to modify the calling +function's return address. When enabled, this option extends the usual +@code{_mcount} interface with a new @var{ra-address} parameter, which has type +@code{intptr_t *} and is passed in register @code{$12}. @code{_mcount} can +then modify the return address by doing both of the following: @itemize @item Returning the new address in register @code{$31}.