From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8DEB33858015; Fri, 15 Oct 2021 10:19:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8DEB33858015 From: "zhendong.su at inf dot ethz.ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/102769] wrong code at -O1 and above on x86_64-linux-gnu Date: Fri, 15 Oct 2021 10:19:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zhendong.su at inf dot ethz.ch 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Oct 2021 10:19:02 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102769 --- Comment #2 from Zhendong Su --- Interesting --- it was missed by clang-10 sanitizers and the CompCert interpreter (a pretty rare occurrence):=20 [565] % ccomp -interp -fall small.c small.c:13: warning: implicit declaration of function '__builtin_abort' is invalid in C99 [-Wimplicit-function-declaration] small.c:13: warning: '__builtin_abort' is declared without a function proto= type Time 114: program terminated (exit code =3D 0) [566] % clang-10 -Xclang -disable-llvm-optzns -w -m64 -O0 -fwrapv -ftrapv -fsanitize=3Dundefined,address small.c; ./a.out [567] % clang-10 -pie -fPIE -pie -Xclang -disable-llvm-optzns -w -O0 -m64 -fsanitize=3Dmemory small.c; ./a.out [568] %=