This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix libcpp ICE (PR preprocessor/60736)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Bernd Schmidt <bschmidt at redhat dot com>
- Cc: Dodji Seketeli <dseketel at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 19 Nov 2015 01:55:01 +0100
- Subject: Re: [PATCH] Fix libcpp ICE (PR preprocessor/60736)
- Authentication-results: sourceware.org; auth=none
- References: <20151118230225 dot GO5675 at tucnak dot redhat dot com> <564D1AD0 dot 1060301 at redhat dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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