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 PR65550, ICE on invalid PCH use


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


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