https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84038
Bug ID: 84038
Summary: powerpc-linux-gcc gets stuck building linux kernel
Product: gcc
Version: 7.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: arnd at linaro dot org
Target Milestone: ---
Created attachment 43240
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43240&action=edit
linux/kernel/cpu.c, preprocessed and compressed
I tried building all powerpc 'defconfig' kernels with gcc-7.3.0, and got stuck
in mpc866_ads_defconfig while compiling linux/kernel/cpu.c
Build with 'powerpc-linux-gcc-7.3.0 -O2 -c cpu.i'. Passing '-O2
-finline-functions' avoids the problem. 'perf top' during the gcc run shows
11.30% cc1 [.] fast_dce
8.63% cc1 [.] df_worklist_dataflow
7.07% cc1 [.] volatile_refs_p
6.23% cc1 [.] prescan_insns_for_dce
5.94% cc1 [.] deletable_insn_p
5.31% cc1 [.] bitmap_set_bit
I started manually reducing the file. The only other compiler versions I tried
were a 7.2.1 snapshot (same result) and an old 5.4.0 compiler (no problems).