This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix for "" vs <> inclusion bug
- To: Zack Weinberg <zack at wolery dot cumb dot org>
- Subject: Re: Fix for "" vs <> inclusion bug
- From: Laurynas Biveinis <lauras at softhome dot net>
- Date: Sat, 24 Jun 2000 16:21:06 +0200
- CC: gcc-patches at gcc dot gnu dot org
- References: <20000621113351.U5412@wolery.cumb.org>
Zack Weinberg wrote:
> There's an experimental feature included in this patch: header files
> without reinclusion guards are held open in case we need them again
> (we usually do). I'm interested to know if this causes problems or if
> it makes any noticeable performance difference. The new lexer mmaps
> files where possible, and we may try caching the mappings as well.
On DJGPP:
stage1/xgcc.exe -Bstage1/ -B/dev/env/DJDIR/i686-pc-msdosdjgpp/bin/ -c -DIN_GCC
-W -Wall -Wtraditional -Wwrite-strings -Wstrict-prototypes -Wmissing-prototyp
es -pedantic -Wno-long-long -O2 -g -O2 -DHAVE_CONFIG_H -DSTANDARD_INCLUDE_DIR=
\"\$DJDIR/include\" -DSTANDARD_INCLUDE_COMPONENT=\"\" -I. -I../../gcc -I../../g
cc/config -I../../gcc/../include ../../gcc/diagnostic.c
../../gcc/diagnostic.c:34:18: input.h: Too many open files (EMFILE)
../../gcc/diagnostic.c:35:22: insn-attr.h: Too many open files (EMFILE)
../../gcc/diagnostic.c:36:23: insn-codes.h: Too many open files (EMFILE)
../../gcc/diagnostic.c:37:24: insn-config.h: Too many open files (EMFILE)
../../gcc/diagnostic.c:38:19: toplev.h: Too many open files (EMFILE)
../../gcc/diagnostic.c:39:17: intl.h: Too many open files (EMFILE)
../../gcc/diagnostic.c:40:23: diagnostic.h: Too many open files (EMFILE)
xgcc.exe: Internal compiler error: program cpp got fatal signal 33
DOS limits the number of simultaneously open files to 20 by default.
I'll try to make a patch, which would close older files before opening
new ones, if cpp starts hiting this limit.
Laurynas