This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Infinite loop with -include and -M
- From: Andreas Schwab <schwab at suse dot de>
- To: gcc at gcc dot gnu dot org
- Date: 22 Apr 2003 01:38:41 +0200
- Subject: Infinite loop with -include and -M
When preprocessing a file with -M (or any other option that sets
flag_no_output) and there is a -include file the preprocessor enters
an infinite loop in preprocess_file because pfile->buffer->prev never
becomes NULL, and eventually the process runs out of memory.
$ echo > included.c
$ echo > included.h
$ gcc -include included.h -M included.c
Andreas.