From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 655653858D34; Mon, 30 Aug 2021 19:58:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 655653858D34 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/102107] protocol register (r12) corrupted before a tail call Date: Mon, 30 Aug 2021 19:58:34 +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: 11.2.1 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2021 19:58:34 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102107 Segher Boessenkool changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |segher at gcc dot gnu.org --- Comment #6 from Segher Boessenkool --- I get (-mcpu=3Dpower10 -mabi=3Delfv2 -O2): .L2: ld 9,0(30) # 59 [c=3D8 l=3D4] *movdi_internal64/1 addi 1,1,112 # 124 [c=3D4 l=3D4] *adddi3/1 .cfi_def_cfa_offset 0 li 3,0 # 63 [c=3D4 l=3D4] *movdi_internal64/3 ld 0,16(1) # 125 [c=3D8 l=3D4] *movdi_internal64/1 ld 31,-8(1) # 129 [c=3D8 l=3D4] *movdi_internal64/1 ld 12,0(9) # 62 [c=3D8 l=3D4] *movdi_internal64/1 addi 9,9,8 # 60 [c=3D4 l=3D4] *adddi3/1 std 9,0(30) # 61 [c=3D4 l=3D4] *movdi_internal64/0 ld 30,-16(1) # 128 [c=3D8 l=3D4] *movdi_internal64/1 mtlr 0 # 127 [c=3D4 l=3D4] *movdi_internal64/23 .cfi_restore 65 mtctr 12 # 103 [c=3D4 l=3D4] *movdi_internal64/23 lwz 12,8(1) # 126 [c=3D8 l=3D4] *movsi_internal1/2 mtcrf 8,12 # 130 [c=3D4 l=3D4] *mtcrfsi .cfi_restore 72 .cfi_restore 31 .cfi_restore 30 bctr # 66 [c=3D4 l=3D4] *sibcall_value_aixdi/1 This looks just fine. What is wrong with your build?=