[Patch, fortran] PRs 89843 and 90022 - C Fortran Interop fixes.

Dominique d'Humières dominiq@lps.ens.fr
Tue Apr 9 16:43:00 GMT 2019


Hi Paul,

With your patch the test gfortran.dg/ISO_Fortran_binding_9.f90 fails in the 32 bit mode, due to the errors

/opt/gcc/work/gcc/testsuite/gfortran.dg/ISO_Fortran_binding_9.f90:24:6: Error: Type mismatch in argument 'expected' at (1); passed INTEGER(4) to INTEGER(8)
/opt/gcc/work/gcc/testsuite/gfortran.dg/ISO_Fortran_binding_9.f90:25:6: Error: Type mismatch in argument 'expected' at (1); passed INTEGER(4) to INTEGER(8)
/opt/gcc/work/gcc/testsuite/gfortran.dg/ISO_Fortran_binding_9.f90:26:6: Error: Type mismatch in argument 'expected' at (1); passed INTEGER(4) to INTEGER(8)
/opt/gcc/work/gcc/testsuite/gfortran.dg/ISO_Fortran_binding_9.f90:27:6: Error: Type mismatch in argument 'expected' at (1); passed INTEGER(4) to INTEGER(8)

Note that LOC is a gnu extension.

The patch also fixes pr89846 for -m64, but not for -m32

% gfc pr89846.c pr89846.f90 -m32
% a.out
 FAIL 2: 
 FAIL 4: 
% gfc pr89846.c pr89846.f90 
% a.out
 OK
 OK

TIA

Dominique



More information about the Gcc-patches mailing list