From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DFE223858C53; Fri, 2 Sep 2022 19:48:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DFE223858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662148103; bh=L5dBvG07n0577aiw5IypOA4ZSsVxJ4462olFILCdTD0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qD43DP+KOZ567J9gYKnwrYKJ6FwFMS8ZlOstlmj/keOJuThWLZcnNE9QeA7x47wOz qyol9AkmTLTRcLwts9wEv1ARE64Qb50zS0xwHLr1Wt3UJ8eq56vXTfDTTZqFeoNpCa FF3Xp0REZmJLeQJxzWnEbk74ezeqcWhUVxMbpCzE= From: "gcc.gnu at vvalter dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/106816] noreturn/pure attributes are not set correctly on multiversioned functions Date: Fri, 02 Sep 2022 19:48:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gcc.gnu at vvalter dot com X-Bugzilla-Status: NEW 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=3D106816 --- Comment #4 from Simon Rainer --- That's weird, I still get the following with your patch applied: main: .LFB2: .cfi_startproc subq $8, %rsp .cfi_def_cfa_offset 16 call _Z5_Z1fvv@PLT movl $1, %eax addq $8, %rsp .cfi_def_cfa_offset 8 ret .cfi_endproc I double checked that and reran a full bootstrap, but maybe I'm doing somet= hing wrong. I would also be surprised if information about volatile, readonly, a= nd pure are enough to detect that the function is noreturn, wouldn't that need= to be a separate information?=