[Patch,Fortran] PR92284 – gfc_desc_to_cfi_desc fixes

Jakub Jelinek jakub@redhat.com
Thu Oct 31 16:42:00 GMT 2019


On Thu, Oct 31, 2019 at 12:29:05AM +0100, Tobias Burnus wrote:
>  	gcc/testsuite/
> 	PR fortran/92284.

Note, no . at the end

> 	* gfortran.dg/bind-c-intent-out.f90: Update expected dump;
> 	extend comment.
> 	* gfortran.dg/bind_c_array_params_3.f90: New.
> 	* gfortran.dg/bind_c_array_params_3_aux.c: New.

This test breaks for me on Fedora, as ISO_Fortran_binding.h header isn't
found.  All other gfortran.dg tests that use this header include it with
full relative path, so I've committed this as obvious to trunk
after retesting it fixes the issue:

2019-10-31  Jakub Jelinek  <jakub@redhat.com>

	PR fortran/92284
	* gfortran.dg/bind_c_array_params_3_aux.c: Include
	../../../libgfortran/ISO_Fortran_binding.h rather than
	ISO_Fortran_binding.h.

--- gcc/testsuite/gfortran.dg/bind_c_array_params_3_aux.c.jj	2019-10-31 13:35:20.572889538 +0100
+++ gcc/testsuite/gfortran.dg/bind_c_array_params_3_aux.c	2019-10-31 17:30:23.192165458 +0100
@@ -5,7 +5,7 @@
 #include <errno.h>
 #include <stdio.h>
 
-#include "ISO_Fortran_binding.h"
+#include "../../../libgfortran/ISO_Fortran_binding.h"
 
 void arr_set_c(CFI_cdesc_t*);
 
@@ -24,4 +24,3 @@ void arr_set_c(CFI_cdesc_t *arr){
   for(i=0; i<ub[0]-lb[0]+1; i++) auxp[i]=i;
   return;
 }
-

	Jakub



More information about the Gcc-patches mailing list