From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0B0933858CDB; Sat, 23 Sep 2023 21:48:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0B0933858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1695505731; bh=NigeoK5xlQbtFe6hKavoAwD5lP/NKlx/ZEEgE1eUn6U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=b7rNEwLP4rh3rMiALvYkF+XVHtJ7XVsWJTeJm2sxdP6ssG905gVBGTxQfRNtxZe91 0wq4lZ86NluCGCkRKdx8mG97uOPyUA0TtDE0ILuK3a76vjmGGKWRsvaXvkSFzUSVh5 gHKj80ma9MMR23lgVpvZM4d4Hc5FwTThpXzb16Yo= From: "sjames at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/111559] [14 regression] ICE when building Python with PGO Date: Sat, 23 Sep 2023 21:48:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sjames 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: 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=3D111559 --- Comment #1 from Sam James --- I don't think I'm going to be able to get a minimal reproducer for this, but trying to at least get something a bit smaller/precise. If I take inspiration from PR79587, I can do a bit better: * wget https://www.python.org/ftp/python/3.11.5/Python-3.11.5.tar.xz * tar xvf Python-3.11.5.tar.xz * ./configure CC=3Dgcc-14 --enable-optimizations * make clean * make profile-removal * make build_all_generate_profile * make profile-removal * make run_profile_task # unfortunately this runs something like 44 differe= nt Python tests * make build_all_merge_profile * gcc-14 -c -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABL= ED=3D1 -DNDEBUG -O2 -pipe -march=3Dnative -fdiagnostics-color=3Dalways -frecord-gcc-switches -Wreturn-type -ggdb3 -fwrapv -fno-semantic-interposit= ion -std=3Dc11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=3Dimplicit-function-declaration -fvisibility=3D= hidden -fprofile-use -fprofile-correction -I./Include/internal -I. -I./Include -I/usr/include/ncursesw -fPIC -DPy_BUILD_CORE -o Parser/parser.o Parser/parser.c -save-temps ``` gcc-14 -c -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED= =3D1 -DNDEBUG -O2 -pipe -fdiagnostics-color=3Dalways -frecord-gcc-switches -Wreturn-type -ggdb3 -fwrapv -fno-semantic-interposition -std=3Dc11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=3Dimplicit-function-declaration -fvisibility=3Dhidden -fprofile-use -fprofile-correction -I./Include/internal -I. -I./Include -I/usr/include/ncursesw -fPIC -DPy_BUILD_CORE -o Parser/parser.o Parser/parser.c -save-temps gcc-14: warning: =E2=80=98-pipe=E2=80=99 ignored because =E2=80=98-save-tem= ps=E2=80=99 specified Parser/parser.c: In function =E2=80=98_tmp_28_rule=E2=80=99: Parser/parser.c:25179:1: error: probability of edge 3->4 not initialized 25179 | _tmp_28_rule(Parser *p) | ^~~~~~~~~~~~ Parser/parser.c:25179:1: error: probability of edge 5->11 not initialized during GIMPLE pass: fixup_cfg Parser/parser.c:25179:1: internal compiler error: verify_flow_info failed 0x55b70ce37153 verify_flow_info() =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0_pre20230917/gcc-14-20230917/gcc/cfghook= s.cc:287 0x55b70d295897 execute_function_todo =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0_pre20230917/gcc-14-20230917/gcc/passes.= cc:2100 0x55b70d295e10 execute_todo =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0_pre20230917/gcc-14-20230917/gcc/passes.= cc:2142 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. ``` ``` $ gcc-14 -v Using built-in specs. COLLECT_GCC=3Dgcc-14 COLLECT_LTO_WRAPPER=3D/usr/libexec/gcc/x86_64-pc-linux-gnu/14/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-14.0.0_pre20230917/work/gcc-14-20230917/conf= igure --host=3Dx86_64-pc-linux-gnu --build=3Dx86_64-pc-linux-gnu --prefix=3D/usr --bindir=3D/usr/x86_64-pc-linux-gnu/gcc-bin/14 --includedir=3D/usr/lib/gcc/x86_64-pc-linux-gnu/14/include --datadir=3D/usr/share/gcc-data/x86_64-pc-linux-gnu/14 --mandir=3D/usr/share/gcc-data/x86_64-pc-linux-gnu/14/man --infodir=3D/usr/share/gcc-data/x86_64-pc-linux-gnu/14/info --with-gxx-include-dir=3D/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14 --disable-silent-rules --disable-dependency-tracking --with-python-dir=3D/share/gcc-data/x86_64-pc-linux-gnu/14/python --enable-languages=3Dc,c++,fortran,rust --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --disable-libunwind-exceptions --enable-checking=3Dyes,extra,rtl --with-bugurl=3Dhttps://bugs.gentoo.org/ --with-pkgversion=3D'Gentoo Harden= ed 14.0.0_pre20230917 p2' --with-gcc-major-version-only --enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared --enable-threads=3Dpos= ix --enable-__cxa_atexit --enable-clocale=3Dgnu --enable-multilib --with-multilib-list=3Dm32,m64 --disable-fixed-point --enable-targets=3Dall --enable-libgomp --disable-libssp --disable-libada --enable-cet --disable-systemtap --enable-valgrind-annotations --disable-vtable-verify --disable-libvtv --with-zstd --with-isl --disable-isl-version-check --enable-default-pie --enable-host-pie --enable-host-bind-now --enable-default-ssp --with-build-config=3Dbootstrap-cet Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.0 20230917 (experimental) (Gentoo Hardened 14.0.0_pre20230= 917 p2) ``` I've uploaded build dir after running that last command at https://dev.gentoo.org/~sam/bugs/gcc/gcc-python-pgo-x86/Python-3.11.5-pgo-c= rash.tar.xz.=