This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH to defer cpp_read_main_file and related changes


> 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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]