From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CF5B53858C60; Tue, 6 Feb 2024 20:20:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CF5B53858C60 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707250807; bh=QzrL9H7BUV4+2vsWpVK/vW8EwDfHylnKW0Y4kw8bTik=; h=From:To:Subject:Date:In-Reply-To:References:From; b=nSyHamIxwCaonUPsK6MA+ELvg5f2TlnJiKvrcBW+xip1TnCw7cQKdn8xAZeCOvuJY DzM3zY6XmdLWpFm3Ee2fbdoKwEAkO3WSjPPJ/gfXnLhnG9nq/00Kjee7OdHkZI61pY 40nfDZI90ekMafHdnR3nnotk9f7vv3+p7nXLWeK8= From: "redi at gcc dot gnu.org" 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, 06 Feb 2024 20:20:05 +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: redi at gcc dot gnu.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: attachments.created 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=3D106568 --- Comment #22 from Jonathan Wakely --- Created attachment 57344 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D57344&action=3Dedit Gzipped preprocessed source With -O2 -fsantiize=3Dunreachable this prints an error: pubkey.h:2209:32: runtime error: execution reached an unreachable program p= oint That happens from the constructor at validat9.cpp:455=20 #0=20 CryptoPP::PK_FinalTemplate, CryptoPP::DL_Algorithm_ECGDSA, CryptoPP::DL_SignatureMessageEncodingMethod_DSA, CryptoPP::SHA1, int>, CryptoPP::DL_Keys_ECGDSA, CryptoPP::DL_Algorithm_ECGDSA, CryptoPP::DL_SignatureMessageEncodingMethod_DSA, CryptoPP::SHA1> > >::PK_FinalTemplate (algorithm=3D..., this=3D0x7fffffffc7d0) at /tmp/cryptopp/cryptlib.h:2626 #1 CryptoPP::Test::ValidateECGDSA (thorough=3Dthorough@entry=3Dtrue) at validat9.cpp:455 #2 0x000000000043448f in CryptoPP::Test::Validate (alg=3D, thorough=3Dthorough@entry=3Dtrue) at test.cpp:995 #3 0x000000000043a303 in CryptoPP::Test::scoped_main (argc=3D3, argv=3D0x7fffffffd6b8) at test.cpp:401 #4 0x000000000043aaf3 in main (argc=3D, argv=3D) at test.cpp:1094 I don't see anything obviously wrong with the code.=