[Bug preprocessor/60736] [4.9/5/6 Regression] Crash in preprocessor including stdc-predef.h when it does not exist on glibc-based systems
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Nov 19 08:27:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60736
--- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Nov 19 08:27:12 2015
New Revision: 230591
URL: https://gcc.gnu.org/viewcvs?rev=230591&root=gcc&view=rev
Log:
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.
Modified:
trunk/libcpp/ChangeLog
trunk/libcpp/errors.c
trunk/libcpp/files.c
trunk/libcpp/include/cpplib.h
More information about the Gcc-bugs
mailing list