From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CE5AE3858C2A; Tue, 26 Sep 2023 06:31:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CE5AE3858C2A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1695709865; bh=6ngg70p0KCwBJhcVv53bXbiGzg2MRewxd3fcrsYrcCk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bTV3q1Drr06eFy/6ZLXMBjFFH2+mB+7ceGEiRs0QWy2CVQkfBxwzJl8j3IZwU8Nwr BfBM5QF8TXki4936DFf3C/BllKa/Flb6LkUb83jBkT542InnRXKoa1NUx81yDwMTq0 BaPxcvuJa0G94rLi2+hptPq5lb0Qcy0ewiw8d38c= From: "malat at debian dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/111231] armhf: Miscompilation with -O2/-fno-exceptions level (-O2 is working) Date: Tue, 26 Sep 2023 06:31:04 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: malat at debian dot org 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=3D111231 --- Comment #10 from Mathieu Malaterre --- I could not reduce to a single *.cc file. The function needs to be in an alt file 'foo.cc'. So could someone please compare: g++ -std=3Dc++11 -o works -O2 -g -Wfatal-errors -Werror -Wall -Wextra -Wconversion -DNDEBUG -march=3Darmv7-a -mfpu=3Dneon-vfpv4 -mfloat-abi=3Dhard -mfp16-format=3Dieee -Wno-psabi widen_mul_test.cc foo.cc with: g++ -std=3Dc++11 -o fails -O2 -g -Wfatal-errors -DNDEBUG -fno-exceptions -march=3Darmv7-a -mfpu=3Dneon-vfpv4 -mfloat-abi=3Dhard -mfp16-format=3Dieee= -Wno-psabi widen_mul_test.cc foo.cc=