This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran] Prevent segfault with dump-*-original for implicit class expressions.
- From: Mikael Morin <mikael dot morin at sfr dot fr>
- To: Andre Vehreschild <vehre at gmx dot de>
- Cc: GCC-Patches-ML <gcc-patches at gcc dot gnu dot org>, GCC-Fortran-ML <fortran at gcc dot gnu dot org>
- Date: Tue, 28 Apr 2015 14:05:57 +0200
- Subject: Re: [Patch, Fortran] Prevent segfault with dump-*-original for implicit class expressions.
- Authentication-results: sourceware.org; auth=none
- Authentication-results: sfrmc.priv.atos.fr; dkim=none (no signature); dkim-adsp=none (no policy) header dot from=mikael dot morin at sfr dot fr
- References: <20150313113339 dot 32440f8c at vepi2> <553C037E dot 3090006 at sfr dot fr> <20150428124337 dot 79d3f638 at gmx dot de>
Hello,
Le 28/04/2015 12:43, Andre Vehreschild a Ãcrit :
> To get the testsuite accepting a dump-fortran-original, I had to insert a
> dg-prune-output. Without the prune output, dejagnu was reporting excess errors.
> The prune removes all output after the first Namespace: that starts the
> fortran-dump. I am not that happy with it, because ICEs in the dump will not be
> detected that way. But I could not find a better solution yet. Does anyone know
> of a better way to solve this? Best would be to have the fortran dump go to a
> file like all other dumps, but that is not scope of this patch.
>
Without a better idea, the scope of the dg-prune-output should be
limited at least.
As the dump ends with a "-------" line, you can use the
"Namespace:.*-{42}" regular expression.
OK with that change. Thanks.
Mikael