sys-devel/gcc-8.2.0-r6 fails to build on my armv5tel-softfloat-linux-gnueabi with: /var/tmp/portage/sys-devel/gcc-8.2.0-r6/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-8.2.0-r6/work/build/./gcc/ -B/usr/armv5t el-softfloat-linux-gnueabi/bin/ -B/usr/armv5tel-softfloat-linux-gnueabi/lib/ -isystem /usr/armv5tel-softfloat-linux-gnueabi/include -is ystem /usr/armv5tel-softfloat-linux-gnueabi/sys-include -g -O2 -pipe -march=armv5te -O2 -g -O2 -pipe -march=armv5te -DIN_GCC -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -fno-inline -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -fno-stack-clash-protection -fPIC -fno-inline -I. -I. -I../. ././gcc -I/var/tmp/portage/sys-devel/gcc-8.2.0-r6/work/gcc-8.2.0/libgcc -I/var/tmp/portage/sys-devel/gcc-8.2.0-r6/work/gcc-8.2.0/libgcc /. -I/var/tmp/portage/sys-devel/gcc-8.2.0-r6/work/gcc-8.2.0/libgcc/../gcc -I/var/tmp/portage/sys-devel/gcc-8.2.0-r6/work/gcc-8.2.0/libg cc/../include -DHAVE_CC_TLS -o _divdi3.o -MT _divdi3.o -MD -MP -MF _divdi3.dep -DL_divdi3 -c /var/tmp/portage/sys-devel/gcc-8.2.0-r6/ work/gcc-8.2.0/libgcc/libgcc2.c \ -fexceptions -fvisibility=hidden -DHIDE_EXPORTS during GIMPLE pass: einline /var/tmp/portage/sys-devel/gcc-8.2.0-r6/work/gcc-8.2.0/libgcc/libgcc2.c: In function ‘__divdi3’: /var/tmp/portage/sys-devel/gcc-8.2.0-r6/work/gcc-8.2.0/libgcc/libgcc2.c:1250:1: internal compiler error: in get_hot_bb_threshold, at pr edict.c:135 } ^ 0x5253a7 get_hot_bb_threshold() /var/tmp/portage/sys-devel/gcc-8.2.0-r6/work/gcc-8.2.0/gcc/predict.c:135 0x42139f ipa_propagate_frequency(cgraph_node*) /var/tmp/portage/sys-devel/gcc-8.2.0-r6/work/gcc-8.2.0/gcc/ipa-profile.c:436 0x412b17 inline_update_callee_summaries /var/tmp/portage/sys-devel/gcc-8.2.0-r6/work/gcc-8.2.0/gcc/ipa-fnsummary.c:2862 0x4132cf ipa_merge_fn_summary_after_inlining(cgraph_edge*) /var/tmp/portage/sys-devel/gcc-8.2.0-r6/work/gcc-8.2.0/gcc/ipa-fnsummary.c:3112 0xca513f inline_call(cgraph_edge*, bool, vec<cgraph_edge*, va_heap, vl_ptr>*, int*, bool, bool*) /var/tmp/portage/sys-devel/gcc-8.2.0-r6/work/gcc-8.2.0/gcc/ipa-inline-transform.c:448 0xc9867f inline_always_inline_functions /var/tmp/portage/sys-devel/gcc-8.2.0-r6/work/gcc-8.2.0/gcc/ipa-inline.c:2628 0xc9867f early_inliner(function*) /var/tmp/portage/sys-devel/gcc-8.2.0-r6/work/gcc-8.2.0/gcc/ipa-inline.c:2724 build.log attached
Created attachment 568402 [details] build.log
Created attachment 568404 [details] gcc-build-logs.tar.bz2
And I should say sys-devel/gcc-8.3.0 builds fine.
Is it reproducible? If it is can you extract a self-contained sample following https://wiki.gentoo.org/wiki/Gcc-ICE-reporting-guide ?
(In reply to Sergei Trofimovich from comment #4) > Is it reproducible? If it is can you extract a self-contained sample > following https://wiki.gentoo.org/wiki/Gcc-ICE-reporting-guide ? Yes, it is reproducible! I will attach libgcc2.i.
Created attachment 568460 [details] libgcc2.i
I tried to reproduce it on the following cross-compilers: amd64->armv5tel-softfloat-linux-gnueabi x86->armv5tel-softfloat-linux-gnueabi and did not succeed so far. The test just compiles fine. Will try a few more options.
I see 3 IPA-related backports into 8.3.0: 2e48cb7168c Backport r268762 https://github.com/gcc-mirror/gcc/commit/2e48cb7168c https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89009 Looks related. 2a5ec34a971 Backport from mainline: 2019-01-05 Jan Hubicka <hubicka@ucw.cz> https://github.com/gcc-mirror/gcc/commit/2a5ec34a971 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86020 Looks unrelated. af2fb015375 Backported from mainline 2019-01-31 Jakub Jelinek <jakub@redhat.com> https://github.com/gcc-mirror/gcc/commit/af2fb015375 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89124 Looks unrelated. I wonder if you could try https://github.com/gcc-mirror/gcc/commit/2e48cb7168c on 8.2.0 and see if it helps. I'll attach the patch.
Created attachment 568920 [details, diff] gcc-8.2.0-ipa-no-inline-PR89009.patch
(In reply to Sergei Trofimovich from comment #9) > Created attachment 568920 [details, diff] [details, diff] > gcc-8.2.0-ipa-no-inline-PR89009.patch * Applying user patches from /etc/portage/patches/sys-devel/gcc-8.2.0-r6 ... * gcc-8.2.0-ipa-no-inline-PR89009.patch ... [ ok ] ... /var/tmp/portage/sys-devel/gcc-8.2.0-r6/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-8.2.0-r6/work/build/./gcc/ -B/usr/armv5t el-softfloat-linux-gnueabi/bin/ -B/usr/armv5tel-softfloat-linux-gnueabi/lib/ -isystem /usr/armv5tel-softfloat-linux-gnueabi/include -is ystem /usr/armv5tel-softfloat-linux-gnueabi/sys-include -g -O2 -pipe -march=armv5te -O2 -g -O2 -pipe -march=armv5te -DIN_GCC -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -fno-inline -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -fno-stack-clash-protection -fPIC -fno-inline -I. -I. -I../. ././gcc -I/var/tmp/portage/sys-devel/gcc-8.2.0-r6/work/gcc-8.2.0/libgcc -I/var/tmp/portage/sys-devel/gcc-8.2.0-r6/work/gcc-8.2.0/libgcc /. -I/var/tmp/portage/sys-devel/gcc-8.2.0-r6/work/gcc-8.2.0/libgcc/../gcc -I/var/tmp/portage/sys-devel/gcc-8.2.0-r6/work/gcc-8.2.0/libg cc/../include -DHAVE_CC_TLS -o _divdi3.o -MT _divdi3.o -MD -MP -MF _divdi3.dep -DL_divdi3 -c /var/tmp/portage/sys-devel/gcc-8.2.0-r6/ work/gcc-8.2.0/libgcc/libgcc2.c \ -fexceptions -fvisibility=hidden -DHIDE_EXPORTS during GIMPLE pass: einline /var/tmp/portage/sys-devel/gcc-8.2.0-r6/work/gcc-8.2.0/libgcc/libgcc2.c: In function ‘__divdi3’: /var/tmp/portage/sys-devel/gcc-8.2.0-r6/work/gcc-8.2.0/libgcc/libgcc2.c:1250:1: internal compiler error: in get_hot_bb_threshold, at pr edict.c:135 } ^ Didn't help!
That's unfortunate. Is recently pushed gcc-9.1.0 any better?
Let's close as obsolete as there is no follow-up.