Bit-reproduciblity issue for gfortran .mod files

Steve Kargl sgk@troutmask.apl.washington.edu
Sat Feb 3 01:58:00 GMT 2018


On Fri, Feb 02, 2018 at 01:22:17PM +0000, Alastair McKinstry wrote:
> 
> Index: gcc-7-7.2.0/src/gcc/fortran/module.c
> ===================================================================
> --- gcc-7-7.2.0.orig/src/gcc/fortran/module.c
> +++ gcc-7-7.2.0/src/gcc/fortran/module.c
> @@ -79,6 +79,10 @@ along with GCC; see the file COPYING3.
>  #include "scanner.h"
>  #include <zlib.h>
>  
> +/* for GNU / POSIX basename */
> +#define _GNU_SOURCE
> +#include <string.h>
> +

What is the above for?  basename(3) is declared in libgen.h.

-- 
Steve



More information about the Fortran mailing list