https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92471
Bug ID: 92471
Summary: [ICE] segmentation fault in ipa-profile.c
ipa_get_cs_argument_count (args=0x0)
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: ipa
Assignee: unassigned at gcc dot gnu.org
Reporter: hliu at amperecomputing dot com
CC: marxin at gcc dot gnu.org
Target Milestone: ---
GCC failed to compile spec2017 523.xalancbmk_r. The command line and stacks are
as following:
(gdb) r -quiet -dumpbase AIXPlatformUtils.o -mabi=lp64 -mlittle-endian
-march=armv8-a+crypto+crc -auxbase AIXPlatformUtils -Ofast -version -fno-openmp
-fno-openacc -fno-pie -fltrans-output-list=/tmp/ccuzr3NS.ltrans.out -fwpa
@/tmp/ccbPq0RT
...
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU GIMPLE (GCC) version 10.0.0 20191111 (experimental)
(aarch64-unknown-linux-gnu)
compiled by GNU C version 10.0.0 20191111 (experimental), GMP version
6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version isl-0.18-GMP
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
...
Program received signal SIGSEGV, Segmentation fault.
0x000000000071bd54 in ipa_get_cs_argument_count (args=0x0) at
../../gcc/gcc/ipa-prop.h:681
681 return vec_safe_length (args->jump_functions);
(gdb) bt
#0 0x000000000071bd54 in ipa_get_cs_argument_count (args=0x0) at
../../gcc/gcc/ipa-prop.h:681
#1 ipa_profile () at ../../gcc/gcc/ipa-profile.c:607
#2 (anonymous namespace)::pass_ipa_profile::execute (this=<optimized out>) at
../../gcc/gcc/ipa-profile.c:755
#3 0x000000000084a224 in execute_one_pass (pass=pass@entry=0x1be2e00) at
../../gcc/gcc/passes.c:2494
#4 0x000000000084ba28 in execute_ipa_pass_list (pass=0x1be2e00) at
../../gcc/gcc/passes.c:2921
#5 0x000000000043b0f4 in do_whole_program_analysis () at
../../gcc/gcc/context.h:48
#6 lto_main () at ../../gcc/gcc/lto/lto.c:642
#7 0x000000000091d568 in compile_file () at ../../gcc/gcc/toplev.c:459
#8 0x000000000040f630 in do_compile () at ../../gcc/gcc/toplev.c:2284
#9 toplev::main (this=this@entry=0xffffffffedd8, argc=<optimized out>,
argc@entry=17, argv=<optimized out>, argv@entry=0xffffffffef38) at
../../gcc/gcc/toplev.c:2419
#10 0x000000000041143c in main (argc=17, argv=0xffffffffef38) at
../../gcc/gcc/main.c:39
(gdb) p args
$1 = (ipa_edge_args *) 0x0