From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7C4C33858C52; Wed, 2 Nov 2022 09:59:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7C4C33858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667383166; bh=UY62harM1lfC/kvWH99ZOpXoWraM9ATZQU3UgsXmyRo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Djm2fvYwpHWiduGSEkZhFCTyxGo9Kby1grw7sZzpB/EkS6SIcgvav6DAwPJt3Ofol 9yept+PYuZRHbcspVhy8NNLN72imbS2aHN5xA4Jv8JkQEnxzMeKlXssGyeLnCLdJkr MdUKJSeaCWfo4uck1b811d4HY161ElBtvCANFsKA= From: "nunoplopes at sapo dot pt" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/106811] GENERIC and GIMPLE IL undefined behavior needs documenting Date: Wed, 02 Nov 2022 09:59:25 +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: nunoplopes at sapo dot pt 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106811 Nuno Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nunoplopes at sapo dot pt --- Comment #1 from Nuno Lopes --- I suggest adopting the concept of poison that LLVM has. It allows operation= s 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 Happy to discuss further.=