Re: RFC: Leave preprocessed files on ICE

2025-01-07 Thread Thomas Koenig via Gcc
Am 07.01.25 um 17:52 schrieb Jakub Jelinek via Gcc: But the compiler does in every ICE message in which -freport-bug isn't enabled. It seems that -freport-bug does nothing for Fortran, or at least the Fortran front end (which why it was unfamiliar to me). Grabbing a random ICE off bugzilla, sli

Re: RFC: Leave preprocessed files on ICE

2025-01-07 Thread Jakub Jelinek via Gcc
On Tue, Jan 07, 2025 at 07:19:34PM +0100, Thomas Koenig via Gcc wrote: > Am 07.01.25 um 18:04 schrieb Andreas Schwab: > > On Jan 07 2025, Thomas Koenig via Gcc wrote: > > > > > Side remark (which I will also address): https://gcc.gnu.org/bugs/ does > > > not mention -freport-bug. > > > > But the

Re: RFC: Leave preprocessed files on ICE

2025-01-07 Thread Thomas Koenig via Gcc
Am 07.01.25 um 18:04 schrieb Andreas Schwab: On Jan 07 2025, Thomas Koenig via Gcc wrote: Side remark (which I will also address): https://gcc.gnu.org/bugs/ does not mention -freport-bug. But the ICE message does. Hm, OK. Question: Would it make sense to enable -freport-bug by default on

Re: RFC: Leave preprocessed files on ICE

2025-01-07 Thread Andreas Schwab
On Jan 07 2025, Thomas Koenig via Gcc wrote: > Side remark (which I will also address): https://gcc.gnu.org/bugs/ does > not mention -freport-bug. But the ICE message does. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now

Re: RFC: Leave preprocessed files on ICE

2025-01-07 Thread Jakub Jelinek via Gcc
On Tue, Jan 07, 2025 at 05:46:48PM +0100, Thomas Koenig via Gcc wrote: > Am 07.01.25 um 16:41 schrieb Thomas Koenig via Gcc: > > Thanks for the explanation.  I think it might be good to add a bit > > of this to the docs. I will prepare a patch. > > Side remark (which I will also address): https://

Re: RFC: Leave preprocessed files on ICE

2025-01-07 Thread Thomas Koenig via Gcc
Am 07.01.25 um 16:41 schrieb Thomas Koenig via Gcc: Thanks for the explanation.  I think it might be good to add a bit of this to the docs. I will prepare a patch. Side remark (which I will also address): https://gcc.gnu.org/bugs/ does not mention -freport-bug. Best regards Thomas

Re: RFC: Leave preprocessed files on ICE

2025-01-07 Thread Thomas Koenig via Gcc
Am 07.01.25 um 16:14 schrieb Jakub Jelinek via Gcc: 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,

Re: RFC: Leave preprocessed files on ICE

2025-01-07 Thread Jakub Jelinek via Gcc
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 e

Re: RFC: Leave preprocessed files on ICE

2025-01-07 Thread Thomas Koenig via Gcc
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

Re: RFC: Leave preprocessed files on ICE

2025-01-07 Thread Andreas Schwab via Gcc
On Jan 07 2025, 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". Like -freport-bug? -- Andreas Schwab,

Re: RFC: Leave preprocessed files on ICE

2025-01-07 Thread Jakub Jelinek via Gcc
On Tue, Jan 07, 2025 at 03:45:02PM +0100, Thomas Koenig via Gcc wrote: > when an ICE occurs somewhere when building a complex software package, > it can be cumbersome for the user to obtain the preprocessed file > that we ask people to submit to us. > > Would it be reasonable to dump a preprocesse