Fwd: [PATCH] Add patch for debugging compiler ICEs.

Maxim Ostapenko m.ostapenko@partner.samsung.com
Tue Aug 19 13:58:00 GMT 2014


Ping.

-Maxim
-------- Original Message --------
Subject: 	[PATCH] Add patch for debugging compiler ICEs.
Date: 	Mon, 04 Aug 2014 21:03:22 +0400
From: 	Maxim Ostapenko <m.ostapenko@partner.samsung.com>
To: 	GCC Patches <gcc-patches@gcc.gnu.org>
CC: 	Jeff Law <law@redhat.com>, Jakub Jelinek <jakub@redhat.com>, 
tsaunders@mozilla.com, Yury Gribov <y.gribov@samsung.com>, Slava 
Garbuzov <v.garbuzov@samsung.com>



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.

I've updated the patch that I've posted earlier
(https://gcc.gnu.org/ml/gcc-patches/2014-07/msg01649.html ) according to
recent upstream discussion
(https://gcc.gnu.org/ml/gcc-patches/2014-08/msg00020.html).

The debugging functionality is disabled by default and can be enabled
with adding -freport-bug into compile options. It can be also enabled by
default with
--with-spec during GCC build.

There are several directions in which this can be improved e.g:

1) more user-friendly ways to report bugs (autosubmitting to Bugzilla, etc.)

2) generate repro in case of segfault.

but having basic functionality (autogenerating reprocase in temprorary
file) already seems quite useful.

-Maxim



-------------- next part --------------
A non-text attachment was scrubbed...
Name: ICE.diff
Type: text/x-patch
Size: 14867 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140819/5066ec2c/attachment.bin>


More information about the Gcc-patches mailing list