This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
insn-attrtab.c long time to compile..
- From: Jay <jayk123 at hotmail dot com>
- To: <gcc at gcc dot gnu dot org>
- Date: Fri, 1 Aug 2008 08:26:26 +0000
- Subject: insn-attrtab.c long time to compile..
4.2.3 insn-attrtab.c takes "a long time" to
compile on djgpp (build=host=target=i586-pc-msdosdjgpp, bootstrapping
from 4.2.3) with the default -g -O2.
I let it go, walked away for a few days, laptop
power was pulled in the meantime (moved to another laptop),
so it ran till the battery ran out. Presumably at least 30 minutes.
Perhaps this can at least be split up into
insn-attrtab-1.c
insn-attrtab-2.c
insn-attrtab-3.c
insn-attrtab-4.c
with a quarter of the functions in each file?
It seems either switch takes a long time.
Omitting both compiles in just a few seconds.
I'll see about collecting accurate times for all four combinations,
testing with 4.3.1, see if breaking it up into multiple files helps, etc.
(could be just one particular function causes it, even if isolated in one source file).
#pragma optimize would probably good and easy, but looks like that's not available in these versions.
Thanks,
- Jay