This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR65550, ICE on invalid PCH use
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Richard Biener <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 9 Apr 2015 15:19:17 +0200
- Subject: Re: [PATCH] Fix PR65550, ICE on invalid PCH use
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot LSU dot 2 dot 11 dot 1504091502270 dot 6786 at zhemvz dot fhfr dot qr>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Thu, Apr 09, 2015 at 03:03:38PM +0200, Richard Biener wrote:
> The following makes the checks whether the context allows a PCH file
> (only the first include may be one, and not nested) more robust
> thereby fixing PR65550.
>
> Bootstrapped and tested on x86_64-unknown-linux-gnu - ok?
>
> Thanks,
> Richard.
>
> 2015-04-09 Richard Biener <rguenther@suse.de>
>
> PR pch/65550
> * files.c (pch_open_file): Allow main and pre-included files
> when trying to open a PCH.
Ok. If it wouldn't be too hard to add a testcase, it would be appreciated,
but if it isn't that easy, just commit it as is (or add testcase
later).
Jakub