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] Add patch for debugging compiler ICEs


On Fri, Jul 04, 2014 at 04:13:31PM +0100, James Greenhalgh wrote:
> On Mon, Jun 02, 2014 at 04:21:14PM +0100, Maxim Ostapenko wrote:
> > Hi,
> > 
> > A years ago there was a discussion (https://gcc.gnu.org/ml/gcc-patches/2004-01/msg02437.html) about debugging compiler ICEs that resulted in a patch from Jakub, which dumps
> > useful information into temporary file, but for some reasons this patch wasn't applied to trunk.
> > 
> > This is the resurrected patch with added GCC version information into generated repro file.
> > 
> 
> How can I test this patch?
> 
> I tried applying it and injecting a segmentation fault in to the AArch64 CPU
> option parsing code, but I didn't see anything new when the ICE was triggered.
> 
> What am I doing wrong?

It is a driver patch, so you get something only when you invoke the driver,
not when compiling with cc1 or cc1plus etc. directly.

Just pick up any known ICE from bugzilla and try it...

	Jakub


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