From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4C6273858C52; Mon, 10 Apr 2023 11:42:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4C6273858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681126948; bh=13wOqSXeNlSvQp1ZyoTQJ6nluQtYXRy4V01KQ99ZqEE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gGYFr9BAWVhUtJ9h69dHnAXtrDZdeWXh22ebPN2ek3z616uwGZ9AqfJrVKQZ1kC1D /gmF2LG97IZuxWgkjNtsBIOM6HOyDSGvH+2MPynLUSnfuMkkH03cnDwWHpoUYxdjjn RrvmvuPbEqMr2cOMhRBNfBG4Ao0a/XaO12PtYSvw= 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: Mon, 10 Apr 2023 11:42:27 +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: cc 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 Xi Ruoyao changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xry111 at gcc dot gnu.org --- Comment #5 from Xi Ruoyao --- Is this a bug? -ffixed-reg Treat the register named reg as a fixed register; generated code should nev= er refer to it (except perhaps as a stack pointer, frame pointer or in some ot= her fixed role). To me "the ABI mandates to pass an argument in this register" means "some o= ther fixed role".=