From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 25C403858D39; Mon, 1 May 2023 18:23:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 25C403858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1682965387; bh=v38A/wr8L+pFdsBWO3/DUchm+R4rspXlA5q8UArkutY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ka0l+iKbynVBjU/ujhrFqVVNYy48YiAPK1RmHJ5qi4BHjD4D9lu/utcoOYCHSucWF kM6c+g0TqcRwqcle963KYQu3T00YYMqFiOrdc6nSwYMSU35zZidlC4l+UQpvNLz3Oy VbM4HvP4zPnvVI8cEJIXM+7UbdnGlppFIX4q6+kA= From: "gccriscvuser at proton dot me" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/109456] `-ffixed` is ignored for `a` registers on RISC-V. Date: Mon, 01 May 2023 18:23:06 +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: gccriscvuser at proton dot me 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 #6 from gccriscvuser at proton dot me --- I'm willing to agree that the generator is emitting correct code, but in th= at case, there should be an error- or fatal-level diagnostic indicating that `-ffixed` is not supported for `a4` (solution 3 above). It would be even better if the diagnostic were issued only if there is at l= east one function that takes so many parameters that `a4` is needed. The diagno= stic message could point at the function(s) themselves to assist the programmer = in correcting the issue. If none of the functions use `a4` as a parameter, th= en no diagnostic is needed.=