public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "slyfox at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/97295] ICE on firefox built with lto+pgo: dist/include/mozilla/Casting.h:64:1: internal compiler error: in to_frequency, at profile-count.c:273 Date: Fri, 09 Oct 2020 08:05:03 +0000 [thread overview] Message-ID: <bug-97295-4-39JJKerFFB@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-97295-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97295 --- Comment #6 from Sergei Trofimovich <slyfox at gcc dot gnu.org> --- Created attachment 49336 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49336&action=edit b.tar.gz Managed to craft self-contained example which is able to crash both gcc-10 and gcc-11. Attached as b.tar.gz. The session looks like: $ LANG=C bash -x ./mk2.bash + rm TestFloatingPoint.o Unified_cpp_mfbt0.o main.o Unified_cpp_mfbt0.gcda main.gcda main + cxx=g++-11.0.0 + cxxflags=(-flto -fPIC -O1 -Wno-error=coverage-mismatch -Wno-coverage-mismatch -Wno-missing-profile "$@") + g++-11.0.0 -flto -fPIC -O1 -Wno-error=coverage-mismatch -Wno-coverage-mismatch -Wno-missing-profile -o Unified_cpp_mfbt0.o -c -O1 -fprofile-generate -fprofile-correction Unified_cpp_mfbt0.cpp + g++-11.0.0 -flto -fPIC -O1 -Wno-error=coverage-mismatch -Wno-coverage-mismatch -Wno-missing-profile -o main.o -c -O1 -fprofile-generate -fprofile-correction main.cc + g++-11.0.0 -flto -fPIC -O1 -Wno-error=coverage-mismatch -Wno-coverage-mismatch -Wno-missing-profile -o main -O1 -fprofile-generate main.o Unified_cpp_mfbt0.o + ./main + g++-11.0.0 -flto -fPIC -O1 -Wno-error=coverage-mismatch -Wno-coverage-mismatch -Wno-missing-profile -o Unified_cpp_mfbt0.o -c -O1 -fprofile-use -fprofile-correction Unified_cpp_mfbt0.cpp + g++-11.0.0 -flto -fPIC -O1 -Wno-error=coverage-mismatch -Wno-coverage-mismatch -Wno-missing-profile -o TestFloatingPoint.o -c -O0 TestFloatingPoint.cpp + g++-11.0.0 -flto -fPIC -O1 -Wno-error=coverage-mismatch -Wno-coverage-mismatch -Wno-missing-profile -o TestFloatingPoint -O1 -shared TestFloatingPoint.o Unified_cpp_mfbt0.o during RTL pass: ira TestFloatingPoint.cpp: In function 'BitwiseCast': TestFloatingPoint.cpp:11:1: internal compiler error: in to_frequency, at profile-count.c:273 11 | } | ^ 0x5c6aaf profile_count::to_frequency(function*) const /usr/src/debug/sys-devel/gcc-11.0.0_pre9999/gcc-11.0.0_pre9999/gcc/profile-count.c:273 0x9f2511 regstat_bb_compute_ri /usr/src/debug/sys-devel/gcc-11.0.0_pre9999/gcc-11.0.0_pre9999/gcc/regstat.c:200 0x9f2511 regstat_compute_ri() /usr/src/debug/sys-devel/gcc-11.0.0_pre9999/gcc-11.0.0_pre9999/gcc/regstat.c:253 0x8b5680 ira /usr/src/debug/sys-devel/gcc-11.0.0_pre9999/gcc-11.0.0_pre9999/gcc/ira.c:5300 0x8b5680 execute /usr/src/debug/sys-devel/gcc-11.0.0_pre9999/gcc-11.0.0_pre9999/gcc/ira.c:5672 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://bugs.gentoo.org/> for instructions. lto-wrapper: fatal error: /usr/bin/g++-11.0.0 returned 1 exit status compilation terminated. /usr/lib/gcc/x86_64-pc-linux-gnu/11.0.0/../../../../x86_64-pc-linux-gnu/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status
next prev parent reply other threads:[~2020-10-09 8:05 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-10-05 18:37 [Bug rtl-optimization/97295] New: " slyfox at gcc dot gnu.org 2020-10-05 18:40 ` [Bug rtl-optimization/97295] " slyfox at gcc dot gnu.org 2020-10-05 18:52 ` slyfox at gcc dot gnu.org 2020-10-05 22:34 ` slyfox at gcc dot gnu.org 2020-10-06 11:15 ` marxin at gcc dot gnu.org 2020-10-07 10:23 ` marxin at gcc dot gnu.org 2020-10-09 8:05 ` slyfox at gcc dot gnu.org [this message] 2020-10-09 8:09 ` [Bug ipa/97295] " slyfox at gcc dot gnu.org 2020-10-09 11:04 ` marxin at gcc dot gnu.org 2020-10-15 7:57 ` cvs-commit at gcc dot gnu.org 2020-10-15 7:59 ` marxin at gcc dot gnu.org 2020-10-15 8:43 ` cvs-commit at gcc dot gnu.org 2020-10-15 9:07 ` cvs-commit at gcc dot gnu.org 2020-10-15 9:08 ` marxin at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-97295-4-39JJKerFFB@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).