New warnings for Win64 target
FX
fxcoudert@gmail.com
Fri Apr 25 18:39:00 GMT 2008
> Compiling for target=x86_64-pc-mingw32 yields these warnings that
> didn't appear prior to my last set of builds earlier in April (around
> the 17th):
>
> ../../../gcc/libgfortran/generated/reshape_i4.c: In function
> 'reshape_4':
> ../../../gcc/libgfortran/generated/reshape_i4.c:134: warning:
> statement with no effect
This is due to a typo in:
2008-04-20 Thomas Koenig <tkoenig@gcc.gnu.org>
PR libfortran/35960
* intrinsics/reshape_generic.c (reshape_internal): If the size
of the resized array is zero, as determined by the SHAPE
argument, return early.
* m4/reshape.m4: Likewise.
This is because the following:
if (rextent[n] < 0)
rextent[n] == 0;
should be:
if (rextent[n] < 0)
rextent[n] = 0;
Apparently, intrinsics/reshape-generic.c is not subject to that same
issue.
FX
--
François-Xavier Coudert
http://www.homepages.ucl.ac.uk/~uccafco/
More information about the Fortran
mailing list