[Bug c/92773] GCC compilation with big array / header is infinite

2019-12-04 Thread renault at fedoraproject dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92773

--- Comment #6 from Charles-Antoine Couret  
---
Ok with a friend we identified a bit more what is the issue.

So in fact I built (manually):

$ gcc -Wall sound/soc/codecs/tas5756m.i -o sound/soc/codecs/tas5756m.o

In that case, no output and it does not stop.

But with:

$ gcc sound/soc/codecs/tas5756m.i

It finished very quickly with some linker errors.

And with:

$ gcc -Wall sound/soc/codecs/tas5756m.i

There are a lot of outputs (warning for each line of my big arrays). And the
process is really slow, some minutes to display the first 1000 lines. It seems
slower over the time (the beginning seems really faster than the end).

I assume that's the issue that I got with Linux build system.

>From my point of view there is a performance regression somewhere. I don't
think this behaviour is normal.

[Bug c/92773] GCC compilation with big array / header is infinite

2019-12-04 Thread renault at fedoraproject dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92773

Charles-Antoine Couret  changed:

   What|Removed |Added

  Attachment #47408|0   |1
is obsolete||
  Attachment #47409|0   |1
is obsolete||
  Attachment #47410|0   |1
is obsolete||

--- Comment #4 from Charles-Antoine Couret  
---
Created attachment 47419
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47419&action=edit
module driver after preprocessor

[Bug c/92773] GCC compilation with big array / header is infinite

2019-12-03 Thread renault at fedoraproject dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92773

--- Comment #2 from Charles-Antoine Couret  
---
Created attachment 47410
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47410&action=edit
one big header which raises the problem

[Bug c/92773] GCC compilation with big array / header is infinite

2019-12-03 Thread renault at fedoraproject dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92773

--- Comment #1 from Charles-Antoine Couret  
---
Created attachment 47409
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47409&action=edit
module driver header

[Bug c/92773] New: GCC compilation with big array / header is infinite

2019-12-03 Thread renault at fedoraproject dot org
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.