This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix libcpp ICE (PR preprocessor/60736)


On Thu, Nov 19, 2015 at 01:41:52AM +0100, Bernd Schmidt wrote:
> On 11/19/2015 12:02 AM, Jakub Jelinek wrote:
> >2015-11-18  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.
> 
> Is it worth it to put Ian's mini-testcase of "#include <stdc-predef.h>"
> into the testsuite?

Well, it behaves differently when stdc-predef.h is present in /usr/include
and when it is not, so it would have to say dg-prune-output the diagnostics
or something similar.

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]