From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B5AD43858D20; Sun, 11 Jun 2023 10:23:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B5AD43858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686479019; bh=CTEPf7vzlIPaTvmGu+lHUKm7IPx+YB44CX03o8ZQ250=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LSLG2GeexDBs3aVwZkzEzJpwYS/k2tGI1JeTzhOcHD15funeSQejM/PEBPLJsYPxs TJvdunyOp8AUOY7jllz0sPOLS1ZtUcGaDbLjFsFGKQjIAaGMbUvHsBcQKfXbJ2wdZa tCr/d734iNA5ZEtM8bnywB8DWT36eJHbasicSCtU= From: "xry111 at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/109456] `-ffixed` is ignored for `a` registers on RISC-V. Date: Sun, 11 Jun 2023 10:23:38 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.2.1 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: xry111 at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109456 --- Comment #9 from Xi Ruoyao --- The easiest way is considering it a documentation issue and do: diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 0870f7aff93..c39880349d5 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -18635,8 +18635,8 @@ more efficient than other code generation strategie= s. @opindex ffixed @item -ffixed-@var{reg} Treat the register named @var{reg} as a fixed register; generated code -should never refer to it (except perhaps as a stack pointer, frame -pointer or in some other fixed role). +should never refer to it (except as a stack pointer, frame +pointer, argument register or in some other fixed role). @var{reg} must be the name of a register. The register names accepted are machine-specific and are defined in the @code{REGISTER_NAMES}=