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

--- Comment #9 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(In reply to Ian Lance Taylor from comment #8)
> I don't think that's the right patch, unless there is a good reason for
> msgid to be NULL.  Note that two lines down we are printing msgid, so that
> would need to be fixed as well.  But it would be best if msgid were not NULL.

Yes, you're right.
So what about this untested patch:

diff --git a/libcpp/files.c b/libcpp/files.c
index 7e8877854445..30707cf7050b 100644
--- a/libcpp/files.c
+++ b/libcpp/files.c
@@ -1044,7 +1044,7 @@ open_file_failed (cpp_reader *pfile, _cpp_file *file, int
angle_brackets)
       if (CPP_OPTION (pfile, deps.style) == DEPS_NONE
           || print_dep
           || CPP_OPTION (pfile, deps.need_preprocessor_output))
-       cpp_errno (pfile, CPP_DL_FATAL, file->path);
+       cpp_errno (pfile, CPP_DL_FATAL, file->name);
       else
        cpp_errno (pfile, CPP_DL_WARNING, file->path);
     }

Reply via email to