https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92773
Bug ID: 92773
Summary: GCC compilation with big array / header is infinite
Product: gcc
Version: 9.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: renault at fedoraproject dot org
Target Milestone: ---
Created attachment 47408
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47408&action=edit
module driver
I'm working on a new Linux kernel module. I'm using Fedora 31 with GCC 9.2.1
This module has several big arrays generated by a external tool which should be
included into the driver itself. I use C headers for that.
Without those headers, the compilation works fine. But if I try to include
them, the compilation takes a infinite amount of time with cc1 process which
uses one CPU at 100%.
I tried with GCC 5.3.1 (Fedora 22) and 5.3.0 (Yocto) and the build succeed. And
I don't see any reason to have this behaviour on earlier GCC.