On Fri, Aug 01, 2014 at 12:13:18PM +0400, Yury Gribov wrote: > On 08/01/2014 12:00 PM, Jakub Jelinek wrote: > >Don't want to review a patch I wrote partially, so just a few comments: > >1) IMHO it should be configure time selectable (not sure about the default, > >but for non-release branches IMHO it should default to off, for release > >branches I don't know). The point is that while it is useful for > >people to report gcc bugs in production compilers, it is not useful for > >gcc developers on their boxes, having ICEs take 3 times as long is not > >desirable for people who deal with those all the time > > I think we should use David Malcolm's approach i.e. add some --report-bug > flag > to driver. This could be enabled by default at configure time via > --with-spec.
-freport-bug or whatever we call it should not be, at least if it attempts to communicate over the network, should not be required though, lots of people do e.g. package builds in various chroots etc. and you really don't want to perform any network activity from there. Still, having info whether an ICE was reproduceable or not is useful in that case, and having preprocessed source left in /tmp with the path printed to stderr is also useful, you can e.g. grab those /tmp/cc*.out files from the chroot and allow people to report later on. The ICE message can of course suggest an option or script or command line to run to report the bug or navigate the user through bug reporting process. Jakub