From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DF08A3858C52; Wed, 4 Oct 2023 12:33:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DF08A3858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696422814; bh=NjhFNigIBuBY9JaEL2PPhXLs6Z/bDHPgSujOygSUIHM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=VUzbAQ9bJ44wciftV9iKZLSyAbSX5/MnKL1Gf7bBBb7TGyrVzz7wSt/zWTn88ZdE/ L6bPWUhU61tJDvlp37dRO8sTJ+vh+qoNn+nX2zVnRy1MEgh+rJmmHvKX0yu2scbj7l H3Vzt4BufLn4fu9Xh99Uo8VHPBhw6wGpmG7i6iuU= From: "malat at debian dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/110643] [13/14 Regression] aarch64: Miscompilation at O1 level (O0 is working) Date: Wed, 04 Oct 2023 12:33:33 +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.1.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: malat at debian dot org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.3 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=3D110643 --- Comment #17 from Mathieu Malaterre --- (In reply to Andrew Pinski from comment #15) > That returns a address to a local variable ... Sorry I am having a hard time driving cvise correctly. Here is the latest version: g++-13 -g -o works inf6.cc -O0 -Wall -Wextra -Werror -Wfatal-errors -> no issue valgrind --error-exitcode=3D1 ./works -> should only report a memleak clang++-16 -fsanitize=3Dundefined -g -o works0 inf6.cc -Wall -Wextra -Werror -Wfatal-errors -> no issue You can reproduce the abort using: g++-13 -g -o fails inf6.cc -O1 -Wall -Wextra -Werror -Wfatal-errors -> abort Please note that my version of g++-11 & g++-12 compile the TU just fine usi= ng -O1. Could you please run a regression to identify which commit along GCC-13 bra= nch introduce the change at least to get the ball rolling ? Thanks !=