[Patch, Fortra, Coarray] Free allocated memory for static coarrays.

Tobias Burnus burnus@net-b.de
Thu Jun 16 23:31:00 GMT 2011


Hi Daniel,

Daniel Carrera wrote:
>> Have you tested the modifications with MPI? I mean: Compiling mpi.c,
>> and then in gcc/testsuite/gfortran.dg/coarray:
>
> Ooops. I compiled and ran the test suite but I forgot to test MPI 
> separately.

Seemingly, there was also a bug in the single.c version:

+  local = malloc (size);
+  token = malloc (sizeof (void*) * 1);


I have added the missing line:
   token[0] = local;

Committed the patch with this change as Rev. 175124. Thanks for the patch!

Tobias



More information about the Gcc-patches mailing list