re PR preprocessor/58893 (<command-line>:0:0: internal compiler error: Segmentation...
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Tue, 30 Sep 2014 16:08:53 +0000 (16:08 +0000)
committerBernd Edlinger <edlinger@gcc.gnu.org>
Tue, 30 Sep 2014 16:08:53 +0000 (16:08 +0000)
commitcc811a8ae6c760955ac2dca51d8359d003c8e4f2
treeab32b139b652fc4cee08f6e47ca2d986547e773f
parentcd91371c5f1ed77c2acdde60f194a98df95c241b
re PR preprocessor/58893 (<command-line>:0:0: internal compiler error: Segmentation fault)

2014-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>

PR preprocessor/58893
* errors.c (cpp_diagnostic): Fix possible out of bounds access.
* files.c (_cpp_stack_include): Initialize src_loc for IT_CMDLINE.

testsuite:
2014-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>

PR preprocessor/58893
* gcc.dg/pr58893.c: New test case.
* gcc.dg/pr58893-0.h: New include.

From-SVN: r215730
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr58893-0.h [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr58893.c [new file with mode: 0644]
libcpp/ChangeLog
libcpp/errors.c
libcpp/files.c