From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 117CA3846072; Wed, 3 Apr 2024 18:51:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 117CA3846072 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712170297; bh=7bNCYnuNSHzn2oTF5Fhlz1hTDGkS0XvlbvoGK7+YGxA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rtefZxPctvgrZ83GzTUkzwCYD/7dp+oCyU3Xg3usGVy9Bdqp+Gf2XjBnvfYIGk53/ r3WPMPSJIVM1WQw6QLtk6cDPRuS4ATfcvHkBYHiOish7vuKTArgtQ3IDW6TpTZH3oc CSvHg+hDWfP66jOCqGYGJEWhJaI3NuDO02jIv/7o= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/84210] __ubsan_handle_builtin_unreachable shoun't be const Date: Wed, 03 Apr 2024 18:51:34 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org 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: see_also cf_reconfirmed_on 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=3D84210 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D107300 Last reconfirmed|2021-12-19 00:00:00 |2024-4-3 --- Comment #5 from Andrew Pinski --- And then there was an issue where we convert __builtin_unreachable to __builtin_trap which had the similar issue so we added: DEF_GCC_BUILTIN (BUILT_IN_UNREACHABLE_TRAP, "unreachable trap", BT_FN_VOID, ATTR_CONST_NORETURN_NOTHROW_LEAF_COLD_LIST) instead, see PR 107300 for the issue there.=20 So the question becomes why was __builtin_unreachable marked as const, I ha= ve no idea. Anyways reconfirmed.=