From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E51593858C20; Tue, 9 Aug 2022 01:09:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E51593858C20 From: "noloader at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/106568] -freorder-blocks-algorithm appears to causes a crash in stable code, no way to disable it Date: Tue, 09 Aug 2022 01:09:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 12.1.1 X-Bugzilla-Keywords: EH, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: noloader at gmail dot com 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 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: Tue, 09 Aug 2022 01:09:31 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106568 --- Comment #14 from Jeffrey Walton --- (In reply to Jeffrey Walton from comment #13) > (In reply to Andrew Pinski from comment #12) > > Can you try -fno-reorder-blocks-and-partition adding to the options? > > This would not be the first time this option caused issues with EH. >=20 > No joy with -fno-reorder-blocks-and-partition . We still saw the crash wi= th > CXXFLAGS=3D"-DNDEBUG -g2 -O3 -fno-reorder-blocks-and-partition". I did notice that using -fno-reorder-functions results in "terminate called without an active exception". That's unusual because we have exception hand= lers in place. $ ./cryptest.exe vv 51 Using seed: 1660007252 ECGDSA validation suite running... passed brainpoolP192r1 using SHA-1 passed signature key validation passed signature and verification passed checking invalid signature passed brainpoolP320r1 using SHA-224 passed signature key validation passed signature and verification passed checking invalid signature passed brainpoolP320r1 using SHA-256 passed signature key validation passed signature and verification passed checking invalid signature passed brainpoolP512r1 using SHA-384 passed signature key validation passed signature and verification passed checking invalid signature passed brainpoolP512r1 using SHA-512 passed signature key validation passed signature and verification passed checking invalid signature terminate called without an active exception Aborted (core dumped)=