[PATCH] PR fortran/91497 -- Silence conversion warnings
Steve Kargl
sgk@troutmask.apl.washington.edu
Fri Oct 4 16:01:00 GMT 2019
On Fri, Oct 04, 2019 at 05:49:13PM +0200, Rainer Orth wrote:
>
> > The attach patch silences -Wconversion and -Wconversion-extra
> > warnings that had previously been issued for explicit conversions
> > (see testcase for examples).
> >
> > The patch has been tested on x86-*-freebsd. OK to commit?
> >
> > 2019-10-03 Steven G. Kargl <kargl@gcc.gnu.org>
> >
> > PR fortran/91497
> > * simplify.c (gfc_simplify_dble, simplify_intconv, gfc_simplify_real,
> > gfc_simplify_sngl): Disable -Wconversion and -Wconversion-extra
> > warnings for explicit conversion of literal constants.
> >
> > 2019-10-03 Steven G. Kargl <kargl@gcc.gnu.org>
> >
> > PR fortran/91497
> > * gfortran.dg/pr91497.f90: New test.
>
> the new testcases FAILs on sparc and a couple of other targets:
>
> +FAIL: gfortran.dg/pr91497.f90 -O (test for excess errors)
>
> Excess errors:
> /vol/gcc/src/hg/trunk/local/gcc/testsuite/gfortran.dg/pr91497.f90:13:13: Error: Old-style type declaration REAL*10 not supported at (1)
> /vol/gcc/src/hg/trunk/local/gcc/testsuite/gfortran.dg/pr91497.f90:20:30: Error: Invalid real kind 10 at (1)
> /vol/gcc/src/hg/trunk/local/gcc/testsuite/gfortran.dg/pr91497.f90:55:22: Error: Invalid kind for REAL at (1)
>
Well, that's a bummer. I'll see about fixing this week.
--
Steve
20170425 https://www.youtube.com/watch?v=VWUpyCsUKR4
20161221 https://www.youtube.com/watch?v=IbCHE-hONow
More information about the Fortran
mailing list