$ touch t.c $ ./xgcc -B. -I- t.c cc1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. $ ./xgcc -v Using built-in specs. COLLECT_GCC=./xgcc Target: arm-unknown-linux-gnueabi Configured with: ../configure --target=arm-unknown-linux-gnueabi --prefix=/home/ryan/x-tools/arm-unknown-linux-gnueabi --with-sysroot=/home/ryan/x-tools/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/sys-root --disable-multilib --with-local-prefix=/home/ryan/x-tools/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/sys-root --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-c99 --enable-long-long --enable-target-optspace target_alias=arm-unknown-linux-gnueabi --enable-languages=c++ --disable-shared --disable-libmudflap --disable-libssp Thread model: posix gcc version 4.7.0 20111109 (experimental) [trunk revision 181205] (GCC) After the fix to PR36819, -I- has split_quote_chain calling free_path with a null path
Bother. Frankly I don't feel like spending much time on PR36819, we can as well revert it. Or please test the attached. Joseph, does it make sense to you?
Created attachment 25770 [details] Untested
Yes, the patch fixes the crash. Thanks.
Author: paolo Date: Wed Nov 9 17:26:37 2011 New Revision: 181216 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=181216 Log: 2011-11-09 Paolo Carlini <paolo.carlini@oracle.com> PR preprocessor/51061 * incpath.c (merge_include_chains): Make sure to not pass null pointers to free_path. Modified: trunk/gcc/ChangeLog trunk/gcc/incpath.c
Fixed, thanks for testing!