This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [patch, fortran] PR65996 [5/6 Regression] gfortran ICE with -dH
- From: Jerry DeLisle <jvdelisle at charter dot net>
- To: gfortran <fortran at gcc dot gnu dot org>
- Cc: gcc patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 21 Jan 2016 12:25:14 -0800
- Subject: Re: [patch, fortran] PR65996 [5/6 Regression] gfortran ICE with -dH
- Authentication-results: sourceware.org; auth=none
- References: <569D3699 dot 4040700 at charter dot net>
On 01/18/2016 11:01 AM, Jerry DeLisle wrote:
> This patch follows the suggestion Jakub made in the PR and is very straightforward.
>
The patch is simple enough. I will commit to trunk shortly if I hear from no one.
Regards,
Jerry
> With the patch, an abort is given on actual errors, in agreement with the
> documentation for -dH.
> (Yes, not very useful, but we can clear this PR)
>
> Buffered errors bypass this abort by saving and restoring the state.
>
> Regression tested on x86-64-linux.
>
> OK for trunk and then back port to 5 in about a week?
>
> A test case will be included, similar to that given by Dominique in the PR.
>
> Regards,
>
> Jerry
>
> 2016-01-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
>
> PR fortran/65996
> * error.c (gfc_error): Save the state of abort_on_error and set
> it to false for buffered errors to allow normal processing.
> Restore the state before leaving.
>