RFC: Leave preprocessed files on ICE

Jakub Jelinek jakub@redhat.com
Tue Jan 7 15:14:10 GMT 2025


On Tue, Jan 07, 2025 at 04:04:22PM +0100, Thomas Koenig wrote:
> Am 07.01.25 um 15:48 schrieb Jakub Jelinek:
> > On Tue, Jan 07, 2025 at 03:45:02PM +0100, Thomas Koenig via Gcc wrote:
> > > Would it be reasonable to dump a preprocessed file (if any) on an ICE,
> > > and point the user to it?  The error message could then be something
> > > like "Please submit the preprocessed file at /home/foo/bar/baz.i".
> 
> > You mean what the -freport-bug option does?
> 
> I had actually looked at that before I sent my e-mail. The most recent
> docs say
> 
> # Collect and dump debug information into a temporary file if an
> # internal compiler error (ICE) occurs.
> 
> which sounds like something different; I would not have thought
> that "debug information" refers to preprocessed source.

It is "debug information" in the sense that it is everything needed
to debug the ICE.
Which isn't just preprocessed source, but also used compiler options,
and details on how the compiler has been configured and what ICE has been
emitted.  Plus, the driver actually tests it multiple times whether the ICE
is reproduceable and it isn't just some hw misbehavior.

	Jakub



More information about the Gcc mailing list