On Tue, Nov 12, 2019 at 03:42:23PM +0100, Tobias Burnus wrote:
> 2019-12-11  Tobias Burnus  <tob...@codesourcery.com>
> 
>       libgfortran/
>       PR fortran/92470
>       * runtime/ISO_Fortran_binding.c (CFI_address): Handle non-zero
>       lower_bound; update error message.
>       (CFI_allocate): Fix comment typo.
>       (CFI_establish): Fix identation, fix typos, don't check values of 'dv'
>       argument.
> 
>       gcc/testsuite/
>       PR fortran/92470
>       * gfortran.dg/ISO_Fortran_binding_17.c: New.
>       * gfortran.dg/ISO_Fortran_binding_17.f90: New.
>       * gfortran.dg/ISO_Fortran_binding_1.c (elemental_mult_c, allocate_c,
>       section_c, select_part_c): Update for CFI_{address} changes;
>       add asserts.

This broke on hosts where the system compiler doesn't have
ISO_Fortran_binding.h header installed (e.g. GCC 8 and earlier).

Fixed thusly, tested on x86_64-linux, committed to trunk as obvious.

2019-11-14  Jakub Jelinek  <ja...@redhat.com>

        * gfortran.dg/ISO_Fortran_binding_17.c: Include
        ../../../libgfortran/ISO_Fortran_binding.h rather than
        ISO_Fortran_binding.h.

--- gcc/testsuite/gfortran.dg/ISO_Fortran_binding_17.c.jj       2019-11-13 
10:54:37.081172852 +0100
+++ gcc/testsuite/gfortran.dg/ISO_Fortran_binding_17.c  2019-11-14 
01:19:36.704285484 +0100
@@ -2,7 +2,7 @@
 
 #include <stdio.h>
 #include <assert.h>
-#include "ISO_Fortran_binding.h"
+#include "../../../libgfortran/ISO_Fortran_binding.h"
 
 void Csub(const CFI_cdesc_t *, size_t, CFI_index_t invalid);
 


        Jakub

Reply via email to