This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][Fortran] Properly generate DECL_EXPRs for temporary arrays
- From: Jerry DeLisle <jvdelisle at charter dot net>
- To: Richard Biener <rguenther at suse dot de>, gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Date: Fri, 29 Apr 2016 10:03:42 -0700
- Subject: Re: [PATCH][Fortran] Properly generate DECL_EXPRs for temporary arrays
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot LSU dot 2 dot 11 dot 1604291102360 dot 13384 at t29 dot fhfr dot qr>
On 04/29/2016 02:06 AM, Richard Biener wrote:
>
> The following makes sure to create DECL_EXPRs for VLA types built for
> temporary arrays to properly allow the gimplifier to unshare expression
> in its type fields when required.
>
> This avoids turing those fields into garbage. With a patch to allow
> the gimplifier to introduce SSA names it avoids ICEs for
>
> gfortran.dg/auto_char_pointer_array_result_1.f90
> gfortran.dg/interface_12.f90
> gfortran.dg/result_in_spec_1.f90
>
> and
>
> libgomp.fortran/vla7.f90
>
> Bootstrapped and tested on x86_64-unknown-linux-gnu.
>
> Ok for trunk?
>
OK and thanks.
Jerry