re PR preprocessor/60736 (Crash in preprocessor including stdc-predef.h when it does...
authorJakub Jelinek <jakub@redhat.com>
Thu, 19 Nov 2015 08:27:12 +0000 (09:27 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 19 Nov 2015 08:27:12 +0000 (09:27 +0100)
commit46ce03de3afe6dcd7b23572ada199c28ffc10e70
tree5835d3decb0a09480820c64a42a01462dccceb96
parentee1326921d7cb8645bed87b2d9b71f1f74eb6605
re PR preprocessor/60736 (Crash in preprocessor including stdc-predef.h when it does not exist on glibc-based systems)

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.
(cpp_errno_filename): New function.
* files.c (read_file_guts): Use cpp_errno_filename instead of
cpp_errno.
(open_file_failed): Likewise.  Use file->name if file->path is NULL
in diagnostics.

From-SVN: r230591
libcpp/ChangeLog
libcpp/errors.c
libcpp/files.c
libcpp/include/cpplib.h