[Bug preprocessor/60736] [4.9 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 Feb 11 09:04:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60736

--- Comment #18 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Feb 11 09:03:34 2016
New Revision: 233318

URL: https://gcc.gnu.org/viewcvs?rev=233318&root=gcc&view=rev
Log:
        Backported from mainline
        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.

Modified:
    branches/gcc-4_9-branch/libcpp/ChangeLog
    branches/gcc-4_9-branch/libcpp/errors.c
    branches/gcc-4_9-branch/libcpp/files.c
    branches/gcc-4_9-branch/libcpp/include/cpplib.h


More information about the Gcc-bugs mailing list