From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A9FAE3858401; Thu, 1 Jun 2023 12:58:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A9FAE3858401 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685624322; bh=jOxrJlZcUyZfQZc9JxKoLvA8fbor+SFErmw+tGehIls=; h=From:To:Subject:Date:From; b=HrkittJp/kH7hlUlbDixFJ8FRtKkXH6Ebcc9yBij1SjL/nehMMuQUmmT3Glv43pMz Wgdupobp1eKH2YgszoJMsuM4AvdZRjPw0WHC4HPS4jolu9heRHn7lWe6LeTCeuBZps Inc2yARM6Goq1Sp02el7LsPd/tqoDn8IJopPYdvI= From: "yancheng.li at foxmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/110079] New: ICE with -freorder-blocks-and-partition Date: Thu, 01 Jun 2023 12:58:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: yancheng.li at foxmail 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D110079 Bug ID: 110079 Summary: ICE with -freorder-blocks-and-partition Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: yancheng.li at foxmail dot com Target Milestone: --- When compiling the testacse attached with -S -O2 -freorder-blocks-and-parti= tion flags, I get the following error:=20 // target=EF=BC=9Aaarch64-linux-gnu // configure=EF=BC=9A../gcc/configure --prefix=3D/home/lyc/2022/gcc-trunk/i= nstall --enable-shared --enable-threads=3Dposix --enable-checking=3Drelease --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=3Dgnu --enable-languages=3Dc --enable-plugin --enable-initfini-array --disable-libgcj --without-isl --without-cloog --enable-gnu-indirect-function --build=3Daarch64-linux-gnu --with-stage1-ldflags=3D' -Wl,-z,relro,-z,now' --with-boot-ldflags=3D' -Wl,-z,relro,-z,now' --disable-bootstrap --with-multilib-list=3Dlp64 // thread model=EF=BC=9Aposix // gcc version 14.0.0 20230531 (experimental) (GCC) // // during RTL pass: outof_cfglayout // test.c: in function=E2=80=98d=E2=80=99: // test.c:12:1: internal compiler error=EF=BC=9Ain fixup_reorder_chain=EF= =BC=8Cat cfgrtl.cc:4029 // 12 | } // | ^ // 0x824a97 fixup_reorder_chain // ../../gcc/gcc/cfgrtl.cc:4029 // 0x824a97 cfg_layout_finalize() // ../../gcc/gcc/cfgrtl.cc:4571 // 0x824d5f execute // ../../gcc/gcc/cfgrtl.cc:3753 // Please submit a full bug report, with preprocessed source. // Please include the complete backtrace with any bug report. // /home/lyc/2022/gcc-trunk/install/libexec/gcc/aarch64-linux-gnu/14.0.0/cc1 -quiet test.c -quiet -dumpbase test.c -dumpbase-ext .c -mlittle-endian -mabi=3Dlp64 -O2 -freorder-blocks-and-partition -freport-bug -o - -frandom-= seed=3D0 -fdump-noaddr # 0 "test.c" # 0 "" # 0 "<=E5=91=BD=E4=BB=A4=E8=A1=8C>" # 1 "/usr/include/stdc-predef.h" 1 3 4 # 0 "<=E5=91=BD=E4=BB=A4=E8=A1=8C>" 2 # 1 "test.c" int a; __attribute__((__cold__)) int b(char *); void d(void) { e: for (; a;) ; b(""); asm goto("" : : : : c); asm(""); c: goto e; }=