From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4346E3858D3C; Sat, 17 Jun 2023 05:46:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4346E3858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686980773; bh=P0Ar5yq2XB0ODLIxhL0whnjlgdJgpEDXN6qARk+p3R8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=vySMLtYxYLqSIAQEU3QCcWHzSaBv0ytNV2jmQJOZQglCKTyQ0odUd71B2238qrFCK 62YtDoSskbG4VoziaEDAivFM7YrSeS4t82fDHS2QTbGdowU4nQkDVPXl2epy7ciFo5 U08SbXgoIbgmySv8ifw/mKeD34ePgtCEKhy1YgM8= From: "yann at droneaud dot fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/110292] undefined value due to strict aliasing without warning Date: Sat, 17 Jun 2023 05:46:12 +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: 14.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: yann at droneaud dot fr 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=3D110292 --- Comment #5 from Yann Droneaud --- Hi, Thanks a lot for the quick analysis of my issue. (In reply to Andrew Pinski from comment #4) > Note -Wstrict-aliasing=3D1 actually does warn: OK, and -Wall enables -Wstrict-aliasing which defaults to -Wstrict-aliasing= =3D3, I'm sorry I haven't tried to use lower values ... https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wstrict-alias= ing (In reply to Andrew Pinski from comment #2) > aliasing violations are known not to be warned about nor have a runtime > sanitizer either. Is there any other tool that would reliably detect such issues ? Regards=