Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: david at pgmasters dot net
Target Milestone: ---
Created attachment 46843
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46843&action=edit
Pre-processed source file
We receiv
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91031
David changed:
What|Removed |Added
CC||david at pgmasters dot net
--- Comment #2 from
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63155
--- Comment #34 from David ---
My primary concern in 87316 was about memory usage and this patch definitely
helps a lot with that. Thanks!
Using -ftree-coalesce-vars helps on >= 4.9 versions and does not seem to have
an adverse effect on test
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87316
--- Comment #8 from David ---
Thanks, using -ftree-coalesce-vars cuts the time down by about 5x and allows
the unit tests to compile in available memory.
We may be able to cut down on the number of setjmps in the unit test macros,
but they are v
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87316
--- Comment #6 from David ---
clang 6 does the compilation in under 1 second on the same container.
$ clang-6.0 -v
clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87316
--- Comment #5 from David ---
I've isolated the compilation and the results are still as above -- new
versions of gcc are significantly slower compiling the attached test.i.
Using this command: gcc -std=gnu99 -O0 -c test.i
gcc 7.3.0 (Ubuntu 18.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87316
--- Comment #4 from David ---
Hmm, yeah, increasing the memory a bit (4GB -> 5GB) leads to a successful
compile.
I guess it is expected that newer versions use more memory -- more features,
etc.
The interesting thing is that I was combining tes
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87316
--- Comment #2 from David ---
The test.i file was too large to attach directly so I was forced to gzip it.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87316
--- Comment #1 from David ---
Created attachment 44696
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44696&action=edit
preprocessed output of test.c
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: david at pgmasters dot net
Target Milestone: ---
Got this while compiling a unit test module. A bunch of .c files are directly
included and there are a lot of test macros so it gets pretty big. If I remove
some tests
10 matches
Mail list logo