From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B819C3858D32; Sat, 5 Nov 2022 14:22:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B819C3858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667658163; bh=MGeEeGPMz3D8n08lNPcDa1KGck10LJKxR18MVDrKF8U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hUR4ZSEGfT3bk7J7mCmiPhKPkoyQYDcCg2lzbkajReLMay/KeYI4noOXAjuxLXD9L q+NAzcWxoG8JCiqs3D3QgxOfyk+wQOILFoakcYHeII94XpogX8+VLHlBc4aBBvuU3G XUvoOmUwihOhlm0tOQrOHTrJsv/+7BBlLfIngZqk= From: "rguenther at suse dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/106811] GENERIC and GIMPLE IL undefined behavior needs documenting Date: Sat, 05 Nov 2022 14:22:42 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenther at suse dot de 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=3D106811 --- Comment #2 from rguenther at suse dot de --- On Wed, 2 Nov 2022, nunoplopes at sapo dot pt wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106811 >=20 > Nuno Lopes changed: >=20 > What |Removed |Added > -------------------------------------------------------------------------= --- > CC| |nunoplopes at sapo dot pt >=20 > --- Comment #1 from Nuno Lopes --- > I suggest adopting the concept of poison that LLVM has. It allows operati= ons to > have undefined behavior, while still allow them to be moved freely. > I have some slides that may serve as an introduction to the topic: > https://web.ist.utl.pt/nuno.lopes/pres/ub-vmcai19.pdf >=20 > Happy to discuss further. I've seen this before but I don't really see how that manages to avoid issues when making conditional undefined behavior invoking stmts unconditional.=