Is there a PR open for this code?
Andrew Pinski
pinskia@gmail.com
Thu Sep 11 19:21:00 GMT 2008
On Thu, Sep 11, 2008 at 7:31 AM, <jdelia@intec.unl.edu.ar> wrote:
> Dear all,
>
> Using the compilers
>
> $ gfortran --version
> GNU Fortran (GCC) 4.4.0 20080302 (experimental) [trunk revision 132813]
> Copyright (C) 2007 Free Software Foundation, Inc.
>
> $ ifort --version
> ifort (IFORT) 9.0 20051201
>
> Here there are some experiments:
>
> 1) With "test31.f90"
>
> $ gfortran -Wuninitialized -o test31.exe test31.f90
> f951: warning: -Wuninitialized is not supported without -O
-Wunitialized is support at -O0 since the following patch:
2008-07-31 Richard Guenther <rguenther@suse.de>
* passes.c (init_optimization_passes): Always call
pass_early_warn_uninitialized.
* opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
* doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
* doc/passes.texi (Warn for uninitialized variables): Adjust.
So you are using a semi old revision of 4.4 :).
With the trunk as of:
gcc version 4.4.0 20080910 (experimental) [trunk revision 140245] (GCC)
I get the following warnings:
[dhcp-10-98-10-23:~] apinski% ~/local-gcc/bin/gfortran -W -Wall t.f90
t.f90: In function 'no_leak1':
t.f90:4: warning: 'i' is used uninitialized in this function
t.f90:4: warning: 'n' is used uninitialized in this function
I get those at -O0, -O1, -O2 and -O3.
-- Pinski
More information about the Fortran
mailing list