mirror of
https://github.com/openRuyi-Project/gcc.git
synced 2026-10-03 15:39:28 +00:00
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
This commit is contained in:
committed by
Jakub Jelinek
parent
ee1326921d
commit
46ce03de3a
@@ -1,3 +1,15 @@
|
||||
2015-11-19 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
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.
|
||||
|
||||
2015-11-13 David Malcolm <dmalcolm@redhat.com>
|
||||
|
||||
* errors.c (cpp_diagnostic): Pass pfile->line_table to
|
||||
|
||||
Reference in New Issue
Block a user