This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH to defer cpp_read_main_file and related changes
- From: DJ Delorie <dj at redhat dot com>
- To: pbothner at apple dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 30 Oct 2003 21:33:47 -0500
- Subject: Re: PATCH to defer cpp_read_main_file and related changes
- References: <3F729957.3040805@bothner.com> <3F7BB4CC.3080205@apple.com>
> Date: Wed, 01 Oct 2003 22:17:00 -0700
> From: Per Bothner <pbothner@apple.com>
> 2003-10-01 Per Bothner <pbothner@apple.com>
>
> * c-lex.c (src_line): Remove unneeded static variable.
> ...
This patch broke -imacros :-(
(both dj.h and dj.c below are empty files)
$ ./cc1 -quiet -include dj.h dj.c
$ ./cc1 -quiet -imacros dj.h dj.c
<command line>:2: internal compiler error: Segmentation fault
$ gdb cc1
[ gdb ] r -quiet -imacros dj.h dj.c
Program received signal SIGSEGV, Segmentation fault.
0x080d4569 in should_stack_file (pfile=0x85ea088, file=0x0, import=false)
at ../../gcc/gcc/cppfiles.c:537
537 if (file->once_only)