This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PING][PATCH] Add patch for debugging compiler ICEs.
- From: Maxim Ostapenko <m dot ostapenko at partner dot samsung dot com>
- To: Jeff Law <law at redhat dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: tsaunders at mozilla dot com, Yury Gribov <y dot gribov at samsung dot com>, Slava Garbuzov <v dot garbuzov at samsung dot com>, Maxim Ostapenko <chefmax7 at gmail dot com>
- Date: Tue, 12 Aug 2014 20:14:17 +0400
- Subject: [PING][PATCH] Add patch for debugging compiler ICEs.
- Authentication-results: sourceware.org; auth=none
- References: <53DFBCDA dot 1010504 at partner dot samsung dot com>
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>
On 08/04/2014 09:03 PM, 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.
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