From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9879D3858D28; Mon, 1 May 2023 20:19:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9879D3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1682972362; bh=Fl0gbq/GjgCkDn6vUwgFpYTk8fae7oImg3XtdUILXq0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=nrh4kHWLxYNfhNXyFbDpOUcyyBfW3sUTSYzOZdU3Wj502cCFrTcSFagT7OadzYOAU oyisJCJnXuBSEpXZ+pbrnbI58+rNvKpA11RXrwWdlC2/DXpLP/hnKni9scMabFJnrE EwqNdoXWpB0n281dvtciSu5KDLf4gz6T0PyZdOuE= 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 20:19:22 +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 #7 from gccriscvuser at proton dot me --- To be clear, when I said "generator is emitting correct code", I mean with respect to the ABI specification. However, this is an actual bug, not a request for enhancement, because the emitted code is incorrect with respect to the command-line option. The programmer has a reasonable expectation that, if no diagnostic is issued, t= he `-ffixed` command-line option is respected. Thanks=