https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88214
Bug ID: 88214 Summary: ICE in bitmap_intersect_p() on 32-bit BE platforms Product: gcc Version: 7.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at inbox dot ru Target Milestone: --- Note: this ICE happens on 32-bit BE-hosts and does not happen on i686 host or x86_64 host. Originally reported at: https://bugs.gentoo.org/672032 Minimal reproducer: $ cat nc.c void i(); short a; void b(e) char * e; { i(); b(a); } $ LANG=C sparc-unknown-linux-gnu-gcc-7.3.0 -Wall -O2 -pipe -o nc.o -c nc.c nc.c: In function 'b': nc.c:7:1: internal compiler error: Segmentation fault $ LANG=C powerpc-unknown-linux-gnu-gcc -Wall -O2 -pipe -o nc.o -c nc.c nc.c: In function 'b': nc.c:7:1: internal compiler error: Segmentation fault Note: it seems to be triggered by K&R-style function declarations. Short backtrace from powerpc-unknown-linux-gnu-gcc-7.3.0: $ gdb --args /usr/libexec/gcc/powerpc-unknown-linux-gnu/7.3.0/cc1 -quiet -v -D__unix__ -D__gnu_linux__ -D__linux__ -Dunix -D__unix -Dlinux -D__linux -Asystem=linux -Asystem=unix -Asystem=posix nc.c -msecure-plt -quiet -dumpbase nc.c -auxbase-strip nc.o -O2 -Wall -version -o /tmp/ccYGzVuI.s Program received signal SIGSEGV, Segmentation fault. 0x1020a4ec in bitmap_intersect_p(bitmap_head const*, bitmap_head const*) () (gdb) bt #0 0x1020a4ec in bitmap_intersect_p(bitmap_head const*, bitmap_head const*) () #1 0x107ed1ec in pt_solutions_intersect(pt_solution*, pt_solution*) () #2 0x10726524 in call_may_clobber_ref_p_1(gcall*, ao_ref*) () #3 0x10726bf0 in stmt_may_clobber_ref_p_1(gimple*, ao_ref*) () #4 0x1046c2e4 in ?? () #5 0x10471a50 in ?? () #6 0x10472878 in analysis_dom_walker::before_dom_children(basic_block_def*) () #7 0x10c00160 in dom_walker::walk(basic_block_def*) () #8 0x104708f8 in ipa_analyze_node(cgraph_node*) () #9 0x10c52378 in ?? () #10 0x1056a14c in execute_ipa_summary_passes(ipa_opt_pass_d*) () #11 0x10278a20 in ?? () #12 0x1027a9f0 in symbol_table::finalize_compilation_unit() () #13 0x10648bd8 in ?? () #14 0x1011dfd4 in toplev::main(int, char**) () #15 0x1011f570 in main ()