From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 962D8385843A; Thu, 1 Feb 2024 12:39:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 962D8385843A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706791165; bh=Ptkbz7vDY2hM2M8XuJpScaKMzoBQw4Davq9XN5A8NWw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=nwiABK2Br1kTuM9luFAzeNBSHFEkSlvWADgmiquLGt4DuWX9soFzsRc3AebhE3kPx 8LGIU3ry0KEUEHoGN5b9/XA/n4XaxuFiQaqrwHkpD8aYZzwkm+HA0Tl9bKF/Sb+rGc DO5fh3/r+kuhueY9cojtCbP2SvYZ8qkldNlFfSXo= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/113689] [11/12/13/14 Regression] wrong code with -fprofile -mcmodel=large when needing drap register since r11-6548 Date: Thu, 01 Feb 2024 12:39:23 +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: 14.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.5 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=3D113689 --- Comment #3 from Jakub Jelinek --- Anyway, if flag_fentry =3D=3D 0, it doesn't seem to be safe to clobber any registers to me, sure, the code could test if %r10 or %r11 are ever live in the current func= tion (if that information is up to date at that point, or remember it during prologue generation when we know we need function profiler with flag_fentry= =3D=3D 0), but if they are live, I think it needs to do something different. Or, can it use say %r12 instead of %r10 if %r10 is drap?=