[Bug preprocessor/58381] crash in diagnostic_report_current_module when a fatal_error happens during PCH processing on NetBSD/spa64rc
martin at netbsd dot org
gcc-bugzilla@gcc.gnu.org
Tue Sep 10 15:29:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58381
--- Comment #2 from Martin Husemann <martin at netbsd dot org> ---
Created attachment 30790
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30790&action=edit
Restore line_table and input_location before calling fatal_error when failing a
pch load
With this patch, the fatal_error is properly reported:
> $BUILDDIR/stage1-gcc/xg++ -B $BUILDDIR/stage1-gcc -Werror -Winvalid-pch -Wno-deprecated -c conftest.cc
conftest.cc:1:0: fatal error: had to relocate PCH
#include "conftest.h"
^
compilation terminated.
More information about the Gcc-bugs
mailing list