From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7A9233858C31; Sat, 24 Jun 2023 09:50:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7A9233858C31 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687600219; bh=wHWglPRjiGhGnNeUG0Zt8IFVCE3o4AiUy+wPXm55kuo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DxlBNtmQUnMW2zfatcmdvWFfIHzdGGXeBgQKHh4N8GF38mxuZ6noNtOEBOn623jeJ 6NQLKHS8KCymvyRXWhPDplxbBbzCLEgjIlcTU5+CAg180uxP34/rmUdiA3xf4Y9+k1 LQP6O6Jor2FSOLvFXU1MCSLUf+WOtoMpB4WSPoWA= From: "xry111 at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/109456] `-ffixed-reg` cannot prevent using `reg` for ABI-mandated roles (argument register etc) and the behavior should be documented more clearly Date: Sat, 24 Jun 2023 09:50:19 +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: documentation 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 #13 from Xi Ruoyao --- (In reply to gccriscvuser from comment #12) > Updating the documentation is good, but there should also be an error > diagnostic, right? It would be a backward-incompatible change. IMO it's perfectly legal to disable a register for RA with -ffixed- but still allowing it for fixed rol= es.=20 And I bet there are existing uses of this feature in the wild.=