This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [PATCH] Fix PR61335
- From: Tobias Burnus <tobias dot burnus at physik dot fu-berlin dot de>
- To: Uros Bizjak <ubizjak at gmail dot com>, gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org, Richard Biener <rguenther at suse dot de>, Dominique Dhumieres <dominiq at lps dot ens dot fr>
- Date: Tue, 17 Jun 2014 12:24:50 +0200
- Subject: Re: [PATCH] Fix PR61335
- Authentication-results: sourceware.org; auth=none
Uros Bizjak wrote:
> Attached patch initializes problematic array to zero instead of
> uninitialized value.
>
> 2014-06-17 Uros Bizjak <ubizjak@gmail.com>
>
> * gfortran.dg/pr61335.f90 (cp_unit_create): Initialize
> unit_id and kind_id to zero.
>
> Tested on alphaev68-linux-gnu and x86_64-linux-gnu.
> OK for mainline?
Looks good to me, is obvious and shouldn't affect the test case.
In particular the variables in questions aren't used in the
code after their initialization with an undefined implicitly
declared variable, which is also otherwise unused.
Tobias