From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 78C303858CDB; Thu, 9 Mar 2023 08:59:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 78C303858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678352358; bh=sAOXrgBoVGSk5bpvQ8mK00LcGdOQMh5nXK++1/SxCmg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=eMETk5zFyO7hpLX763Id1EhAUBLAWH55fl3ogTKQX9IuS3J8NOY3576sS3SzzINWy +5xjzGrj/P9vvATgNzZVIw3CpGZWAb8792Rib4SeQAhuvWO9hDVisaC/SJsdItFQRW B3Ul+uLZXDcXv5loN1olC9U54n7Tdyi1Iyjd9JjQ= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/109031] csmith: possible bad code with -O2 -fno-strict-aliasing Date: Thu, 09 Mar 2023 08:59:18 +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: needs-bisection, needs-reduction, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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=3D109031 --- Comment #21 from Martin Li=C5=A1ka --- (In reply to Jakub Jelinek from comment #20) > Well, cvise reduction of runtime testcases is always problematic, and try= ing > to ensure > the reduction doesn't introduce uninitialized var uses which weren't there > before (perhaps with checking for new -Wmaybe-uninitialized -Wuninitializ= ed > warnings or even all -Wall -W warnings; or perhaps with > -ftrivial-var-init=3Dsomething) as well as using some timeout on the exec= ution > because the execution could very well loop forever is minimum what needs = to > be done. Yes, one can mitigate that with -fsanitize=3Dundefined,address, I used that= time to time for csmith test-cases.=