Re: [PATCH] Fix libcpp ICE (PR preprocessor/60736)

2015-11-18 Thread Jakub Jelinek
On Thu, Nov 19, 2015 at 01:41:52AM +0100, Bernd Schmidt wrote: > On 11/19/2015 12:02 AM, Jakub Jelinek wrote: > >2015-11-18 Jakub Jelinek > > > > PR preprocessor/60736 > > * include/cpplib.h (cpp_errno_filename): New prototype. > > * errors.c (cpp_errno): Don't handle msgid "" specia

Re: [PATCH] Fix libcpp ICE (PR preprocessor/60736)

2015-11-18 Thread Bernd Schmidt
On 11/19/2015 12:02 AM, Jakub Jelinek wrote: 2015-11-18 Jakub Jelinek PR preprocessor/60736 * include/cpplib.h (cpp_errno_filename): New prototype. * errors.c (cpp_errno): Don't handle msgid "" specially, use _(msgid) instead of msgid as argument to cpp_error.

[PATCH] Fix libcpp ICE (PR preprocessor/60736)

2015-11-18 Thread Jakub Jelinek
Hi! In some cases, e.g. when using #include with /usr/include/ not containing that header, open_file_failed is called with NULL file->path; trying to print that doesn't really work, we should use file->name in that case instead. Though in other cases open_file_failed is called with both file->na