https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81520
Bug ID: 81520 Summary: [8 Regression] ICE: in function_and_variable_visibility, at ipa-visibility.c:639 Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: danglin at gcc dot gnu.org CC: marxin at gcc dot gnu.org Target Milestone: --- Host: hppa2.0w-hp-hpux11.11 Target: hppa2.0w-hp-hpux11.11 Build: hppa2.0w-hp-hpux11.11 Created attachment 41812 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41812&action=edit Preprocessed source libtool: compile: /test/gnu/gcc/objdir/./gcc/xgcc -shared-libgcc -B/test/gnu/gc c/objdir/./gcc -nostdinc++ -L/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc+ +-v3/src -L/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/src/.libs -L/ test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/libsupc++/.libs -B/opt/gn u/gcc/gcc-8/hppa2.0w-hp-hpux11.11/bin/ -B/opt/gnu/gcc/gcc-8/hppa2.0w-hp-hpux11.1 1/lib/ -isystem /opt/gnu/gcc/gcc-8/hppa2.0w-hp-hpux11.11/include -isystem /opt/g nu/gcc/gcc-8/hppa2.0w-hp-hpux11.11/sys-include -I/test/gnu/gcc/gcc/libstdc++-v3/ ../libgcc -I/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/hppa 2.0w-hp-hpux11.11 -I/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/incl ude -I/test/gnu/gcc/gcc/libstdc++-v3/libsupc++ -std=gnu++98 -D_GLIBCXX_SHARED -f no-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi -fdiagnost ics-show-location=once -frandom-seed=pool_allocator.lo -g -O2 -c ../../../../../ gcc/libstdc++-v3/src/c++98/pool_allocator.cc -fPIC -DPIC -D_GLIBCXX_SHARED -o p ool_allocator.o during IPA pass: whole-program ../../../../../gcc/libstdc++-v3/src/c++98/pool_allocator.cc:177:1: internal comp iler error: in function_and_variable_visibility, at ipa-visibility.c:639 } // namespace ^ libbacktrace could not find executable to open Breakpoint 1, _ZL32function_and_variable_visibilityb (whole_program=false) at ../../gcc/gcc/ipa-visibility.c:639 639 gcc_assert (alias && alias != node); (gdb) bt Python Exception <type 'exceptions.ImportError'> Failed to load /home/gnu/lib/python2.7/lib-dynload/itertools.sl: #0 _ZL32function_and_variable_visibilityb (whole_program=false) at ../../gcc/gcc/ipa-visibility.c:639 #1 0x01762574 in (anonymous namespace)::whole_program_function_and_variable_visibility() () at ../../gcc/gcc/ipa-visibility.c:912 #2 0x017628b4 in _ZN12_GLOBAL__N_133pass_ipa_whole_program_visibility7executeEP8function (this=0x405b40a8) at ../../gcc/gcc/ipa-visibility.c:960 #3 0x01bf430c in _Z16execute_one_passP8opt_pass (pass=0x405b40a8) at ../../gcc/gcc/passes.c:2492 #4 0x01bf6148 in _Z21execute_ipa_pass_listP8opt_pass (pass=0x405b40a8) at ../../gcc/gcc/passes.c:2927 #5 0x00e7403c in _ZL10ipa_passesv () at ../../gcc/gcc/cgraphunit.c:2389 #6 0x00e74628 in _ZN12symbol_table7compileEv (this=0x7ae27000) at ../../gcc/gcc/cgraphunit.c:2475 #7 0x00e74cac in _ZN12symbol_table25finalize_compilation_unitEv ( this=0x7ae27000) at ../../gcc/gcc/cgraphunit.c:2629 #8 0x01f12510 in _ZL12compile_filev () at ../../gcc/gcc/toplev.c:493 #9 0x01f175dc in _ZL10do_compilev () at ../../gcc/gcc/toplev.c:2021 #10 0x01f17e38 in _ZN6toplev4mainEiPPc (this=0x7eff07b8, argc=23, argv=0x7eff062c) at ../../gcc/gcc/toplev.c:2155 #11 0x02a58618 in main (argc=23, argv=0x7eff062c) at ../../gcc/gcc/main.c:39 (gdb) list 634 continue; 635 636 if (!alias) 637 { 638 alias = dyn_cast<cgraph_node *> (node->noninterposable_alias ()); 639 gcc_assert (alias && alias != node); 640 } 641 642 e->redirect_callee (alias); 643 if (gimple_has_body_p (e->caller->decl)) (gdb) p alias $1 = (cgraph_node *) 0x0 Reading specs from ./specs COLLECT_GCC=./xgcc COLLECT_LTO_WRAPPER=./lto-wrapper Target: hppa2.0w-hp-hpux11.11 Configured with: ../gcc/configure --with-gnu-as --with-as=/opt/gnu/bin/as --enable-shared --with-local-prefix=/opt/gnu --prefix=/opt/gnu/gcc/gcc-8 --with-gmp=/opt/gnu/gcc/gmp --enable-threads=posix --disable-nls --disable-lto --without-cloog --without-ppl --enable-checking=yes --enable-languages=c,c++,objc,fortran,ada,obj-c++ Thread model: posix gcc version 8.0.0 20170722 (experimental) [trunk revision 250453] (GCC)