Blame SOURCES/gcc10-libgfortran-compat.patch

ca6e07
--- libgfortran/Makefile.am.jj	2020-04-30 17:41:43.451589601 +0200
ca6e07
+++ libgfortran/Makefile.am	2020-05-28 13:55:44.816954223 +0200
ca6e07
@@ -37,6 +37,7 @@ LTLDFLAGS = $(shell $(SHELL) $(top_srcdi
ca6e07
 	    $(lt_host_flags)
ca6e07
 
ca6e07
 toolexeclib_LTLIBRARIES = libgfortran.la
ca6e07
+noinst_LTLIBRARIES = libgfortran_nonshared80.la
ca6e07
 toolexeclib_DATA = libgfortran.spec
ca6e07
 libgfortran_la_LINK = $(LINK) $(libgfortran_la_LDFLAGS)
ca6e07
 libgfortran_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` \
ca6e07
@@ -1039,6 +1040,89 @@ libgfortran_la_SOURCES = $(prereq_SRC)
ca6e07
 
ca6e07
 endif
ca6e07
 
ca6e07
+$(patsubst %.c,%.lo,$(nonshared_generated_C_SRC) $(nonshared)): \
ca6e07
+nonshared-%.lo: $(srcdir)/generated/%.c
ca6e07
+	$(LTCOMPILE) -c -o $@ $< -DLIBGFORTRAN_NONSHARED
ca6e07
+
ca6e07
+$(patsubst %.c,%.o,$(nonshared_generated_C_SRC) $(nonshared)): \
ca6e07
+nonshared-%.o: $(srcdir)/generated/%.c
ca6e07
+	$(COMPILE) -c -o $@ $< -DLIBGFORTRAN_NONSHARED
ca6e07
+
ca6e07
+$(patsubst %.c,%.lo,$(nonshared_intrinsics_C_SRC) $(nonshared)): \
ca6e07
+nonshared-%.lo: $(srcdir)/intrinsics/%.c
ca6e07
+	$(LTCOMPILE) -c -o $@ $< -DLIBGFORTRAN_NONSHARED
ca6e07
+
ca6e07
+$(patsubst %.c,%.o,$(nonshared_intrinsics_C_SRC) $(nonshared)): \
ca6e07
+nonshared-%.o: $(srcdir)/intrinsics/%.c
ca6e07
+	$(COMPILE) -c -o $@ $< -DLIBGFORTRAN_NONSHARED
ca6e07
+
ca6e07
+$(patsubst %.c,%.lo,$(nonshared_runtime_C_SRC) $(nonshared)): \
ca6e07
+nonshared-%.lo: $(srcdir)/runtime/%.c
ca6e07
+	$(LTCOMPILE) -c -o $@ $< -DLIBGFORTRAN_NONSHARED
ca6e07
+
ca6e07
+$(patsubst %.c,%.o,$(nonshared_runtime_C_SRC) $(nonshared)): \
ca6e07
+nonshared-%.o: $(srcdir)/runtime/%.c
ca6e07
+	$(COMPILE) -c -o $@ $< -DLIBGFORTRAN_NONSHARED
ca6e07
+
ca6e07
+$(patsubst %.f90,%.lo,$(nonshared_intrinsics_f90_SRC) $(nonshared)): \
ca6e07
+nonshared-%.lo: $(srcdir)/intrinsics/%.f90
ca6e07
+	$(LTPPFCCOMPILE) -c -o $@ $< -fallow-leading-underscore
ca6e07
+
ca6e07
+$(patsubst %.f90,%.o,$(nonshared_intrinsics_f90_SRC) $(nonshared)): \
ca6e07
+nonshared-%.o: $(srcdir)/intrinsics/%.f90
ca6e07
+	$(PPFCCOMPILE) -c -o $@ $< -fallow-leading-underscore
ca6e07
+
ca6e07
+nonshared_runtime_C_SRC = \
ca6e07
+nonshared-ISO_Fortran_binding.c
ca6e07
+
ca6e07
+nonshared_generated_C_SRC = \
ca6e07
+nonshared-findloc0_i1.c \
ca6e07
+nonshared-findloc0_i2.c \
ca6e07
+nonshared-findloc0_i4.c \
ca6e07
+nonshared-findloc0_i8.c \
ca6e07
+nonshared-findloc0_i16.c \
ca6e07
+nonshared-findloc0_r4.c \
ca6e07
+nonshared-findloc0_r8.c \
ca6e07
+nonshared-findloc0_r10.c \
ca6e07
+nonshared-findloc0_r16.c \
ca6e07
+nonshared-findloc0_c4.c \
ca6e07
+nonshared-findloc0_c8.c \
ca6e07
+nonshared-findloc0_c16.c \
ca6e07
+nonshared-findloc0_s1.c \
ca6e07
+nonshared-findloc0_s4.c \
ca6e07
+nonshared-findloc1_i1.c \
ca6e07
+nonshared-findloc1_i2.c \
ca6e07
+nonshared-findloc1_i4.c \
ca6e07
+nonshared-findloc1_i8.c \
ca6e07
+nonshared-findloc1_i16.c \
ca6e07
+nonshared-findloc1_r4.c \
ca6e07
+nonshared-findloc1_r8.c \
ca6e07
+nonshared-findloc1_r10.c \
ca6e07
+nonshared-findloc1_r16.c \
ca6e07
+nonshared-findloc1_c4.c \
ca6e07
+nonshared-findloc1_c8.c \
ca6e07
+nonshared-findloc1_c16.c \
ca6e07
+nonshared-findloc1_s1.c \
ca6e07
+nonshared-findloc1_s4.c \
ca6e07
+nonshared-findloc2_s1.c \
ca6e07
+nonshared-findloc2_s4.c
ca6e07
+
ca6e07
+nonshared_intrinsics_C_SRC = \
ca6e07
+nonshared-is_contiguous.c \
ca6e07
+nonshared-trigd.c
ca6e07
+
ca6e07
+nonshared_intrinsics_f90_SRC = \
ca6e07
+nonshared-random_init.f90
ca6e07
+
ca6e07
+libgfortran_nonshared80_la_SOURCES = \
ca6e07
+$(nonshared_runtime_C_SRC) \
ca6e07
+$(nonshared_generated_C_SRC) \
ca6e07
+$(nonshared_intrinsics_C_SRC) \
ca6e07
+$(nonshared_intrinsics_f90_SRC) \
ca6e07
+$(srcdir)/ieee/nonshared-ieee_arithmetic.c \
ca6e07
+$(srcdir)/io/nonshared-transfer.c \
ca6e07
+$(srcdir)/runtime/nonshared-error.c
ca6e07
+
ca6e07
 I_M4_DEPS=m4/iparm.m4
ca6e07
 I_M4_DEPS0=$(I_M4_DEPS) m4/iforeach.m4
ca6e07
 I_M4_DEPS1=$(I_M4_DEPS) m4/ifunction.m4
ca6e07
--- libgfortran/ieee/nonshared-ieee_arithmetic.c.jj	2020-05-27 17:46:36.538953840 +0200
ca6e07
+++ libgfortran/ieee/nonshared-ieee_arithmetic.c	2020-05-27 17:46:36.538953840 +0200
ca6e07
@@ -0,0 +1,64 @@
ca6e07
+/* Helper functions in C for IEEE modules
ca6e07
+   Copyright (C) 2013-2019 Free Software Foundation, Inc.
ca6e07
+   Contributed by Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
ca6e07
+
ca6e07
+This file is part of the GNU Fortran runtime library (libgfortran).
ca6e07
+
ca6e07
+Libgfortran is free software; you can redistribute it and/or
ca6e07
+modify it under the terms of the GNU General Public
ca6e07
+License as published by the Free Software Foundation; either
ca6e07
+version 3 of the License, or (at your option) any later version.
ca6e07
+
ca6e07
+Libgfortran is distributed in the hope that it will be useful,
ca6e07
+but WITHOUT ANY WARRANTY; without even the implied warranty of
ca6e07
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
ca6e07
+GNU General Public License for more details.
ca6e07
+
ca6e07
+Under Section 7 of GPL version 3, you are granted additional
ca6e07
+permissions described in the GCC Runtime Library Exception, version
ca6e07
+3.1, as published by the Free Software Foundation.
ca6e07
+
ca6e07
+You should have received a copy of the GNU General Public License and
ca6e07
+a copy of the GCC Runtime Library Exception along with this program;
ca6e07
+see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
ca6e07
+<http://www.gnu.org/licenses/>.  */
ca6e07
+
ca6e07
+#include "libgfortran.h"
ca6e07
+
ca6e07
+GFC_LOGICAL_4
ca6e07
+__ieee_arithmetic_MOD_ieee_support_subnormal_4 (gfc_array_r4 *arg)
ca6e07
+{
ca6e07
+  (void) arg;
ca6e07
+  return 1;
ca6e07
+}
ca6e07
+
ca6e07
+GFC_LOGICAL_4
ca6e07
+__ieee_arithmetic_MOD_ieee_support_subnormal_8 (gfc_array_r8 *arg)
ca6e07
+{
ca6e07
+  (void) arg;
ca6e07
+  return 1;
ca6e07
+}
ca6e07
+
ca6e07
+#ifdef HAVE_GFC_REAL_10
ca6e07
+GFC_LOGICAL_4
ca6e07
+__ieee_arithmetic_MOD_ieee_support_subnormal_10 (gfc_array_r10 *arg)
ca6e07
+{
ca6e07
+  (void) arg;
ca6e07
+  return 1;
ca6e07
+}
ca6e07
+#endif
ca6e07
+
ca6e07
+#ifdef HAVE_GFC_REAL_16
ca6e07
+GFC_LOGICAL_4
ca6e07
+__ieee_arithmetic_MOD_ieee_support_subnormal_16 (gfc_array_r16 *arg)
ca6e07
+{
ca6e07
+  (void) arg;
ca6e07
+  return 1;
ca6e07
+}
ca6e07
+#endif
ca6e07
+
ca6e07
+GFC_LOGICAL_4
ca6e07
+__ieee_arithmetic_MOD_ieee_support_subnormal_noarg (void)
ca6e07
+{
ca6e07
+  return 1;
ca6e07
+}
ca6e07
--- libgfortran/Makefile.in.jj	2020-04-30 17:41:43.467589365 +0200
ca6e07
+++ libgfortran/Makefile.in	2020-05-28 14:05:15.576583891 +0200
ca6e07
@@ -217,7 +217,8 @@ am__uninstall_files_from_dir = { \
ca6e07
 am__installdirs = "$(DESTDIR)$(cafexeclibdir)" \
ca6e07
 	"$(DESTDIR)$(toolexeclibdir)" "$(DESTDIR)$(toolexeclibdir)" \
ca6e07
 	"$(DESTDIR)$(gfor_cdir)" "$(DESTDIR)$(fincludedir)"
ca6e07
-LTLIBRARIES = $(cafexeclib_LTLIBRARIES) $(toolexeclib_LTLIBRARIES)
ca6e07
+LTLIBRARIES = $(cafexeclib_LTLIBRARIES) $(noinst_LTLIBRARIES) \
ca6e07
+	$(toolexeclib_LTLIBRARIES)
ca6e07
 libcaf_single_la_LIBADD =
ca6e07
 am_libcaf_single_la_OBJECTS = single.lo
ca6e07
 libcaf_single_la_OBJECTS = $(am_libcaf_single_la_OBJECTS)
ca6e07
@@ -467,6 +468,36 @@ am__objects_65 = $(am__objects_3) $(am__
ca6e07
 @onestep_FALSE@am_libgfortran_la_OBJECTS = $(am__objects_65)
ca6e07
 @onestep_TRUE@am_libgfortran_la_OBJECTS = libgfortran_c.lo
ca6e07
 libgfortran_la_OBJECTS = $(am_libgfortran_la_OBJECTS)
ca6e07
+libgfortran_nonshared80_la_LIBADD =
ca6e07
+am__objects_66 = nonshared-ISO_Fortran_binding.lo
ca6e07
+am__objects_67 = nonshared-findloc0_i1.lo nonshared-findloc0_i2.lo \
ca6e07
+	nonshared-findloc0_i4.lo nonshared-findloc0_i8.lo \
ca6e07
+	nonshared-findloc0_i16.lo nonshared-findloc0_r4.lo \
ca6e07
+	nonshared-findloc0_r8.lo nonshared-findloc0_r10.lo \
ca6e07
+	nonshared-findloc0_r16.lo nonshared-findloc0_c4.lo \
ca6e07
+	nonshared-findloc0_c8.lo nonshared-findloc0_c16.lo \
ca6e07
+	nonshared-findloc0_s1.lo nonshared-findloc0_s4.lo \
ca6e07
+	nonshared-findloc1_i1.lo nonshared-findloc1_i2.lo \
ca6e07
+	nonshared-findloc1_i4.lo nonshared-findloc1_i8.lo \
ca6e07
+	nonshared-findloc1_i16.lo nonshared-findloc1_r4.lo \
ca6e07
+	nonshared-findloc1_r8.lo nonshared-findloc1_r10.lo \
ca6e07
+	nonshared-findloc1_r16.lo nonshared-findloc1_c4.lo \
ca6e07
+	nonshared-findloc1_c8.lo nonshared-findloc1_c16.lo \
ca6e07
+	nonshared-findloc1_s1.lo nonshared-findloc1_s4.lo \
ca6e07
+	nonshared-findloc2_s1.lo nonshared-findloc2_s4.lo
ca6e07
+am__objects_68 = nonshared-is_contiguous.lo \
ca6e07
+	nonshared-trigd.lo
ca6e07
+am__objects_69 = nonshared-random_init.lo
ca6e07
+am_libgfortran_nonshared80_la_OBJECTS = $(am__objects_66) \
ca6e07
+	$(am__objects_67) $(am__objects_68) $(am__objects_69) \
ca6e07
+	nonshared-ieee_arithmetic.lo nonshared-transfer.lo \
ca6e07
+	nonshared-error.lo
ca6e07
+libgfortran_nonshared80_la_OBJECTS =  \
ca6e07
+	$(am_libgfortran_nonshared80_la_OBJECTS)
ca6e07
+AM_V_lt = $(am__v_lt_@AM_V@)
ca6e07
+am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
ca6e07
+am__v_lt_0 = --silent
ca6e07
+am__v_lt_1 = 
ca6e07
 AM_V_P = $(am__v_P_@AM_V@)
ca6e07
 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
ca6e07
 am__v_P_0 = false
ca6e07
@@ -483,10 +514,6 @@ DEFAULT_INCLUDES = -I.@am__isrc@
ca6e07
 depcomp = $(SHELL) $(top_srcdir)/../depcomp
ca6e07
 am__depfiles_maybe = depfiles
ca6e07
 am__mv = mv -f
ca6e07
-AM_V_lt = $(am__v_lt_@AM_V@)
ca6e07
-am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
ca6e07
-am__v_lt_0 = --silent
ca6e07
-am__v_lt_1 = 
ca6e07
 PPFCCOMPILE = $(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
ca6e07
 	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS)
ca6e07
 LTPPFCCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=FC $(AM_LIBTOOLFLAGS) \
ca6e07
@@ -530,7 +557,8 @@ AM_V_FC = $(am__v_FC_@AM_V@)
ca6e07
 am__v_FC_ = $(am__v_FC_@AM_DEFAULT_V@)
ca6e07
 am__v_FC_0 = @echo "  FC      " $@;
ca6e07
 am__v_FC_1 = 
ca6e07
-SOURCES = $(libcaf_single_la_SOURCES) $(libgfortran_la_SOURCES)
ca6e07
+SOURCES = $(libcaf_single_la_SOURCES) $(libgfortran_la_SOURCES) \
ca6e07
+	$(libgfortran_nonshared80_la_SOURCES)
ca6e07
 am__can_run_installinfo = \
ca6e07
   case $$AM_UPDATE_INFO_DIR in \
ca6e07
     n|no|NO) false;; \
ca6e07
@@ -726,6 +754,7 @@ LTLDFLAGS = $(shell $(SHELL) $(top_srcdi
ca6e07
 	    $(lt_host_flags)
ca6e07
 
ca6e07
 toolexeclib_LTLIBRARIES = libgfortran.la
ca6e07
+noinst_LTLIBRARIES = libgfortran_nonshared80.la
ca6e07
 toolexeclib_DATA = libgfortran.spec
ca6e07
 libgfortran_la_LINK = $(LINK) $(libgfortran_la_LDFLAGS)
ca6e07
 libgfortran_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` \
ca6e07
@@ -1553,6 +1582,57 @@ prereq_SRC = $(gfor_src) $(gfor_built_sr
ca6e07
 #libgfortran_F.lo: 
ca6e07
 #	$(LTPPFCCOMPILE) -c -o $@ $^ -combine
ca6e07
 @onestep_TRUE@libgfortran_la_SOURCES = libgfortran_c.c $(filter-out %.c,$(prereq_SRC))
ca6e07
+nonshared_runtime_C_SRC = \
ca6e07
+nonshared-ISO_Fortran_binding.c
ca6e07
+
ca6e07
+nonshared_generated_C_SRC = \
ca6e07
+nonshared-findloc0_i1.c \
ca6e07
+nonshared-findloc0_i2.c \
ca6e07
+nonshared-findloc0_i4.c \
ca6e07
+nonshared-findloc0_i8.c \
ca6e07
+nonshared-findloc0_i16.c \
ca6e07
+nonshared-findloc0_r4.c \
ca6e07
+nonshared-findloc0_r8.c \
ca6e07
+nonshared-findloc0_r10.c \
ca6e07
+nonshared-findloc0_r16.c \
ca6e07
+nonshared-findloc0_c4.c \
ca6e07
+nonshared-findloc0_c8.c \
ca6e07
+nonshared-findloc0_c16.c \
ca6e07
+nonshared-findloc0_s1.c \
ca6e07
+nonshared-findloc0_s4.c \
ca6e07
+nonshared-findloc1_i1.c \
ca6e07
+nonshared-findloc1_i2.c \
ca6e07
+nonshared-findloc1_i4.c \
ca6e07
+nonshared-findloc1_i8.c \
ca6e07
+nonshared-findloc1_i16.c \
ca6e07
+nonshared-findloc1_r4.c \
ca6e07
+nonshared-findloc1_r8.c \
ca6e07
+nonshared-findloc1_r10.c \
ca6e07
+nonshared-findloc1_r16.c \
ca6e07
+nonshared-findloc1_c4.c \
ca6e07
+nonshared-findloc1_c8.c \
ca6e07
+nonshared-findloc1_c16.c \
ca6e07
+nonshared-findloc1_s1.c \
ca6e07
+nonshared-findloc1_s4.c \
ca6e07
+nonshared-findloc2_s1.c \
ca6e07
+nonshared-findloc2_s4.c
ca6e07
+
ca6e07
+nonshared_intrinsics_C_SRC = \
ca6e07
+nonshared-is_contiguous.c \
ca6e07
+nonshared-trigd.c
ca6e07
+
ca6e07
+nonshared_intrinsics_f90_SRC = \
ca6e07
+nonshared-random_init.f90
ca6e07
+
ca6e07
+libgfortran_nonshared80_la_SOURCES = \
ca6e07
+$(nonshared_runtime_C_SRC) \
ca6e07
+$(nonshared_generated_C_SRC) \
ca6e07
+$(nonshared_intrinsics_C_SRC) \
ca6e07
+$(nonshared_intrinsics_f90_SRC) \
ca6e07
+$(srcdir)/ieee/nonshared-ieee_arithmetic.c \
ca6e07
+$(srcdir)/io/nonshared-transfer.c \
ca6e07
+$(srcdir)/runtime/nonshared-error.c
ca6e07
+
ca6e07
 I_M4_DEPS = m4/iparm.m4
ca6e07
 I_M4_DEPS0 = $(I_M4_DEPS) m4/iforeach.m4
ca6e07
 I_M4_DEPS1 = $(I_M4_DEPS) m4/ifunction.m4
ca6e07
@@ -1663,6 +1743,17 @@ clean-cafexeclibLTLIBRARIES:
ca6e07
 	  rm -f $${locs}; \
ca6e07
 	}
ca6e07
 
ca6e07
+clean-noinstLTLIBRARIES:
ca6e07
+	-test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
ca6e07
+	@list='$(noinst_LTLIBRARIES)'; \
ca6e07
+	locs=`for p in $$list; do echo $$p; done | \
ca6e07
+	      sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
ca6e07
+	      sort -u`; \
ca6e07
+	test -z "$$locs" || { \
ca6e07
+	  echo rm -f $${locs}; \
ca6e07
+	  rm -f $${locs}; \
ca6e07
+	}
ca6e07
+
ca6e07
 install-toolexeclibLTLIBRARIES: $(toolexeclib_LTLIBRARIES)
ca6e07
 	@$(NORMAL_INSTALL)
ca6e07
 	@list='$(toolexeclib_LTLIBRARIES)'; test -n "$(toolexeclibdir)" || list=; \
ca6e07
@@ -1704,6 +1795,9 @@ libcaf_single.la: $(libcaf_single_la_OBJ
ca6e07
 libgfortran.la: $(libgfortran_la_OBJECTS) $(libgfortran_la_DEPENDENCIES) $(EXTRA_libgfortran_la_DEPENDENCIES) 
ca6e07
 	$(AM_V_GEN)$(libgfortran_la_LINK) -rpath $(toolexeclibdir) $(libgfortran_la_OBJECTS) $(libgfortran_la_LIBADD) $(LIBS)
ca6e07
 
ca6e07
+libgfortran_nonshared80.la: $(libgfortran_nonshared80_la_OBJECTS) $(libgfortran_nonshared80_la_DEPENDENCIES) $(EXTRA_libgfortran_nonshared80_la_DEPENDENCIES) 
ca6e07
+	$(AM_V_FCLD)$(FCLINK)  $(libgfortran_nonshared80_la_OBJECTS) $(libgfortran_nonshared80_la_LIBADD) $(LIBS)
ca6e07
+
ca6e07
 mostlyclean-compile:
ca6e07
 	-rm -f *.$(OBJEXT)
ca6e07
 
ca6e07
@@ -2118,6 +2212,42 @@ distclean-compile:
ca6e07
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/minval_r8.Plo@am__quote@
ca6e07
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/move_alloc.Plo@am__quote@
ca6e07
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mvbits.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-ISO_Fortran_binding.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-error.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-findloc0_c16.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-findloc0_c4.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-findloc0_c8.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-findloc0_i1.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-findloc0_i16.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-findloc0_i2.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-findloc0_i4.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-findloc0_i8.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-findloc0_r10.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-findloc0_r16.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-findloc0_r4.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-findloc0_r8.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-findloc0_s1.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-findloc0_s4.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-findloc1_c16.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-findloc1_c4.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-findloc1_c8.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-findloc1_i1.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-findloc1_i16.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-findloc1_i2.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-findloc1_i4.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-findloc1_i8.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-findloc1_r10.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-findloc1_r16.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-findloc1_r4.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-findloc1_r8.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-findloc1_s1.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-findloc1_s4.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-findloc2_s1.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-findloc2_s4.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-ieee_arithmetic.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-is_contiguous.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-transfer.Plo@am__quote@
ca6e07
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonshared-trigd.Plo@am__quote@
ca6e07
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/norm2_r10.Plo@am__quote@
ca6e07
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/norm2_r16.Plo@am__quote@
ca6e07
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/norm2_r4.Plo@am__quote@
ca6e07
@@ -6658,6 +6788,27 @@ ieee_helper.lo: ieee/ieee_helper.c
ca6e07
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
ca6e07
 @am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ieee_helper.lo `test -f 'ieee/ieee_helper.c' || echo '$(srcdir)/'`ieee/ieee_helper.c
ca6e07
 
ca6e07
+nonshared-ieee_arithmetic.lo: $(srcdir)/ieee/nonshared-ieee_arithmetic.c
ca6e07
+@am__fastdepCC_TRUE@	$(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT nonshared-ieee_arithmetic.lo -MD -MP -MF $(DEPDIR)/nonshared-ieee_arithmetic.Tpo -c -o nonshared-ieee_arithmetic.lo `test -f '$(srcdir)/ieee/nonshared-ieee_arithmetic.c' || echo '$(srcdir)/'`$(srcdir)/ieee/nonshared-ieee_arithmetic.c
ca6e07
+@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/nonshared-ieee_arithmetic.Tpo $(DEPDIR)/nonshared-ieee_arithmetic.Plo
ca6e07
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$(srcdir)/ieee/nonshared-ieee_arithmetic.c' object='nonshared-ieee_arithmetic.lo' libtool=yes @AMDEPBACKSLASH@
ca6e07
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
ca6e07
+@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o nonshared-ieee_arithmetic.lo `test -f '$(srcdir)/ieee/nonshared-ieee_arithmetic.c' || echo '$(srcdir)/'`$(srcdir)/ieee/nonshared-ieee_arithmetic.c
ca6e07
+
ca6e07
+nonshared-transfer.lo: $(srcdir)/io/nonshared-transfer.c
ca6e07
+@am__fastdepCC_TRUE@	$(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT nonshared-transfer.lo -MD -MP -MF $(DEPDIR)/nonshared-transfer.Tpo -c -o nonshared-transfer.lo `test -f '$(srcdir)/io/nonshared-transfer.c' || echo '$(srcdir)/'`$(srcdir)/io/nonshared-transfer.c
ca6e07
+@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/nonshared-transfer.Tpo $(DEPDIR)/nonshared-transfer.Plo
ca6e07
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$(srcdir)/io/nonshared-transfer.c' object='nonshared-transfer.lo' libtool=yes @AMDEPBACKSLASH@
ca6e07
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
ca6e07
+@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o nonshared-transfer.lo `test -f '$(srcdir)/io/nonshared-transfer.c' || echo '$(srcdir)/'`$(srcdir)/io/nonshared-transfer.c
ca6e07
+
ca6e07
+nonshared-error.lo: $(srcdir)/runtime/nonshared-error.c
ca6e07
+@am__fastdepCC_TRUE@	$(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT nonshared-error.lo -MD -MP -MF $(DEPDIR)/nonshared-error.Tpo -c -o nonshared-error.lo `test -f '$(srcdir)/runtime/nonshared-error.c' || echo '$(srcdir)/'`$(srcdir)/runtime/nonshared-error.c
ca6e07
+@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/nonshared-error.Tpo $(DEPDIR)/nonshared-error.Plo
ca6e07
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$(srcdir)/runtime/nonshared-error.c' object='nonshared-error.lo' libtool=yes @AMDEPBACKSLASH@
ca6e07
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
ca6e07
+@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o nonshared-error.lo `test -f '$(srcdir)/runtime/nonshared-error.c' || echo '$(srcdir)/'`$(srcdir)/runtime/nonshared-error.c
ca6e07
+
ca6e07
 .f90.o:
ca6e07
 	$(AM_V_FC)$(FCCOMPILE) -c -o $@ $<
ca6e07
 
ca6e07
@@ -6852,7 +7003,8 @@ maintainer-clean-generic:
ca6e07
 clean: clean-am
ca6e07
 
ca6e07
 clean-am: clean-cafexeclibLTLIBRARIES clean-generic clean-libtool \
ca6e07
-	clean-local clean-toolexeclibLTLIBRARIES mostlyclean-am
ca6e07
+	clean-local clean-noinstLTLIBRARIES \
ca6e07
+	clean-toolexeclibLTLIBRARIES mostlyclean-am
ca6e07
 
ca6e07
 distclean: distclean-am
ca6e07
 	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
ca6e07
@@ -6932,14 +7084,15 @@ uninstall-am: uninstall-cafexeclibLTLIBR
ca6e07
 .PHONY: CTAGS GTAGS TAGS all all-am all-local am--refresh check \
ca6e07
 	check-am clean clean-cafexeclibLTLIBRARIES clean-cscope \
ca6e07
 	clean-generic clean-libtool clean-local \
ca6e07
-	clean-toolexeclibLTLIBRARIES cscope cscopelist-am ctags \
ca6e07
-	ctags-am distclean distclean-compile distclean-generic \
ca6e07
-	distclean-hdr distclean-libtool distclean-local distclean-tags \
ca6e07
-	dvi dvi-am html html-am info info-am install install-am \
ca6e07
-	install-cafexeclibLTLIBRARIES install-data install-data-am \
ca6e07
-	install-dvi install-dvi-am install-exec install-exec-am \
ca6e07
-	install-exec-local install-gfor_cHEADERS install-html \
ca6e07
-	install-html-am install-info install-info-am install-man \
ca6e07
+	clean-noinstLTLIBRARIES clean-toolexeclibLTLIBRARIES cscope \
ca6e07
+	cscopelist-am ctags ctags-am distclean distclean-compile \
ca6e07
+	distclean-generic distclean-hdr distclean-libtool \
ca6e07
+	distclean-local distclean-tags dvi dvi-am html html-am info \
ca6e07
+	info-am install install-am install-cafexeclibLTLIBRARIES \
ca6e07
+	install-data install-data-am install-dvi install-dvi-am \
ca6e07
+	install-exec install-exec-am install-exec-local \
ca6e07
+	install-gfor_cHEADERS install-html install-html-am \
ca6e07
+	install-info install-info-am install-man \
ca6e07
 	install-nodist_fincludeHEADERS install-pdf install-pdf-am \
ca6e07
 	install-ps install-ps-am install-strip install-toolexeclibDATA \
ca6e07
 	install-toolexeclibLTLIBRARIES installcheck installcheck-am \
ca6e07
@@ -6997,6 +7150,38 @@ ieee_arithmetic.mod: ieee_arithmetic.lo
ca6e07
 @onestep_TRUE@libgfortran_c.lo: $(filter %.c,$(prereq_SRC))
ca6e07
 @onestep_TRUE@	$(LTCOMPILE) -c -o $@ $^ -combine
ca6e07
 
ca6e07
+$(patsubst %.c,%.lo,$(nonshared_generated_C_SRC) $(nonshared)): \
ca6e07
+nonshared-%.lo: $(srcdir)/generated/%.c
ca6e07
+	$(LTCOMPILE) -c -o $@ $< -DLIBGFORTRAN_NONSHARED
ca6e07
+
ca6e07
+$(patsubst %.c,%.o,$(nonshared_generated_C_SRC) $(nonshared)): \
ca6e07
+nonshared-%.o: $(srcdir)/generated/%.c
ca6e07
+	$(COMPILE) -c -o $@ $< -DLIBGFORTRAN_NONSHARED
ca6e07
+
ca6e07
+$(patsubst %.c,%.lo,$(nonshared_intrinsics_C_SRC) $(nonshared)): \
ca6e07
+nonshared-%.lo: $(srcdir)/intrinsics/%.c
ca6e07
+	$(LTCOMPILE) -c -o $@ $< -DLIBGFORTRAN_NONSHARED
ca6e07
+
ca6e07
+$(patsubst %.c,%.o,$(nonshared_intrinsics_C_SRC) $(nonshared)): \
ca6e07
+nonshared-%.o: $(srcdir)/intrinsics/%.c
ca6e07
+	$(COMPILE) -c -o $@ $< -DLIBGFORTRAN_NONSHARED
ca6e07
+
ca6e07
+$(patsubst %.c,%.lo,$(nonshared_runtime_C_SRC) $(nonshared)): \
ca6e07
+nonshared-%.lo: $(srcdir)/runtime/%.c
ca6e07
+	$(LTCOMPILE) -c -o $@ $< -DLIBGFORTRAN_NONSHARED
ca6e07
+
ca6e07
+$(patsubst %.c,%.o,$(nonshared_runtime_C_SRC) $(nonshared)): \
ca6e07
+nonshared-%.o: $(srcdir)/runtime/%.c
ca6e07
+	$(COMPILE) -c -o $@ $< -DLIBGFORTRAN_NONSHARED
ca6e07
+
ca6e07
+$(patsubst %.f90,%.lo,$(nonshared_intrinsics_f90_SRC) $(nonshared)): \
ca6e07
+nonshared-%.lo: $(srcdir)/intrinsics/%.f90
ca6e07
+	$(LTPPFCCOMPILE) -c -o $@ $< -fallow-leading-underscore
ca6e07
+
ca6e07
+$(patsubst %.f90,%.o,$(nonshared_intrinsics_f90_SRC) $(nonshared)): \
ca6e07
+nonshared-%.o: $(srcdir)/intrinsics/%.f90
ca6e07
+	$(PPFCCOMPILE) -c -o $@ $< -fallow-leading-underscore
ca6e07
+
ca6e07
 kinds.h: $(srcdir)/mk-kinds-h.sh
ca6e07
 	$(SHELL) $(srcdir)/mk-kinds-h.sh '$(FCCOMPILE)' > $@ || rm $@
ca6e07
 
ca6e07
--- libgfortran/libgfortran.h.jj	2020-04-30 17:41:43.652586644 +0200
ca6e07
+++ libgfortran/libgfortran.h	2020-05-27 17:46:36.530953956 +0200
ca6e07
@@ -195,7 +195,7 @@ extern int __mingw_snprintf (char *, siz
ca6e07
 # define internal_proto(x)	sym_rename(x, IPREFIX(x))
ca6e07
 #endif
ca6e07
 
ca6e07
-#if defined(HAVE_ATTRIBUTE_VISIBILITY) && defined(HAVE_ATTRIBUTE_ALIAS)
ca6e07
+#if defined(HAVE_ATTRIBUTE_VISIBILITY) && defined(HAVE_ATTRIBUTE_ALIAS) && !defined(LIBGFORTRAN_NONSHARED)
ca6e07
 # define export_proto(x)	sym_rename(x, PREFIX(x))
ca6e07
 # define export_proto_np(x)	extern char swallow_semicolon
ca6e07
 # define iexport_proto(x)	internal_proto(x)
ca6e07
@@ -270,6 +270,10 @@ typedef GFC_UINTEGER_4 gfc_char4_t;
ca6e07
    simply equal to the kind parameter itself.  */
ca6e07
 #define GFC_SIZE_OF_CHAR_KIND(kind) (kind)
ca6e07
 
ca6e07
+#ifdef LIBGFORTRAN_NONSHARED
ca6e07
+#define big_endian (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
ca6e07
+#endif
ca6e07
+
ca6e07
 #define GFOR_POINTER_TO_L1(p, kind) \
ca6e07
   ((__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ ? 1: 0) * (kind - 1) + (GFC_LOGICAL_1 *)(p))
ca6e07
 
ca6e07
@@ -1774,4 +1778,63 @@ internal_proto(cshift1_16_c16);
ca6e07
 #define HAVE_GFC_UINTEGER_1 1
ca6e07
 #define HAVE_GFC_UINTEGER_4 1
ca6e07
 
ca6e07
+#ifdef LIBGFORTRAN_NONSHARED
ca6e07
+#include <stdlib.h>
ca6e07
+#include <string.h>              
ca6e07
+#include <errno.h>
ca6e07
+
ca6e07
+#define internal_malloc_size nonshared_internal_malloc_size
ca6e07
+#define xmalloc nonshared_internal_xmalloc
ca6e07
+#define xmallocarray nonshared_internal_xmallocarray
ca6e07
+#define reshape_packed nonshared_reshape_packed
ca6e07
+static inline __attribute__((__always_inline__, __unused__))
ca6e07
+void *
ca6e07
+internal_malloc_size (size_t size)
ca6e07
+{
ca6e07
+  void *p;
ca6e07
+
ca6e07
+  if (size == 0)
ca6e07
+    return NULL;
ca6e07
+
ca6e07
+  p = (void *) malloc (size);
ca6e07
+  if (p == NULL)
ca6e07
+    os_error ("Memory allocation failed");
ca6e07
+  return p;
ca6e07
+}
ca6e07
+
ca6e07
+static inline __attribute__((__always_inline__, __unused__))
ca6e07
+void *
ca6e07
+xmalloc (size_t size)
ca6e07
+{
ca6e07
+  return internal_malloc_size (size ? size : 1);
ca6e07
+}
ca6e07
+
ca6e07
+static inline __attribute__((__always_inline__, __unused__))
ca6e07
+void *
ca6e07
+xmallocarray (size_t nmemb, size_t size)
ca6e07
+{
ca6e07
+  if (!nmemb || !size)
ca6e07
+    size = nmemb = 1;
ca6e07
+  else if (__builtin_expect ((nmemb | size)
ca6e07
+			     >= (((size_t) 1) << (__CHAR_BIT__
ca6e07
+						  * sizeof (size_t) / 2)), 0)
ca6e07
+	   && nmemb > __SIZE_MAX__ / size)
ca6e07
+    {
ca6e07
+      errno = ENOMEM;
ca6e07
+      os_error ("Integer overflow in xmallocarray");
ca6e07
+    }
ca6e07
+
ca6e07
+  return internal_malloc_size (nmemb * size);
ca6e07
+}
ca6e07
+
ca6e07
+static inline __attribute__((__always_inline__, __unused__))
ca6e07
+#include "intrinsics/reshape_packed.c"
ca6e07
+
ca6e07
+struct no_bounds_check { int bounds_check; };
ca6e07
+#define compile_options ((struct no_bounds_check) { .bounds_check = 0 })
ca6e07
+
ca6e07
+#define internal_error(x, y...) runtime_error (y)
ca6e07
+
ca6e07
+#endif
ca6e07
+
ca6e07
 #endif  /* LIBGFOR_H  */
ca6e07
--- libgfortran/runtime/nonshared-error.c.jj	2020-05-27 19:01:38.937435776 +0200
ca6e07
+++ libgfortran/runtime/nonshared-error.c	2020-05-27 19:11:53.280403140 +0200
ca6e07
@@ -0,0 +1,56 @@
ca6e07
+/* Copyright (C) 2020 Free Software Foundation, Inc.
ca6e07
+
ca6e07
+This file is part of the GNU Fortran runtime library (libgfortran).
ca6e07
+
ca6e07
+Libgfortran is free software; you can redistribute it and/or modify
ca6e07
+it under the terms of the GNU General Public License as published by
ca6e07
+the Free Software Foundation; either version 3, or (at your option)
ca6e07
+any later version.
ca6e07
+
ca6e07
+Libgfortran is distributed in the hope that it will be useful,
ca6e07
+but WITHOUT ANY WARRANTY; without even the implied warranty of
ca6e07
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
ca6e07
+GNU General Public License for more details.
ca6e07
+
ca6e07
+Under Section 7 of GPL version 3, you are granted additional
ca6e07
+permissions described in the GCC Runtime Library Exception, version
ca6e07
+3.1, as published by the Free Software Foundation.
ca6e07
+
ca6e07
+You should have received a copy of the GNU General Public License and
ca6e07
+a copy of the GCC Runtime Library Exception along with this program;
ca6e07
+see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
ca6e07
+<http://www.gnu.org/licenses/>.  */
ca6e07
+
ca6e07
+
ca6e07
+#define LIBGFORTRAN_NONSHARED
ca6e07
+#include "libgfortran.h"
ca6e07
+#include "io.h"
ca6e07
+#include "async.h"
ca6e07
+
ca6e07
+#include <string.h>
ca6e07
+#include <stdio.h>
ca6e07
+
ca6e07
+/* Improved version of os_error with a printf style format string and
ca6e07
+   a locus.  */
ca6e07
+
ca6e07
+void
ca6e07
+os_error_at (const char *where, const char *message, ...)
ca6e07
+{
ca6e07
+  char buf[4096];
ca6e07
+  size_t len = strlen (where);
ca6e07
+  int written;
ca6e07
+  va_list ap;
ca6e07
+
ca6e07
+  if (len >= 2048)
ca6e07
+    os_error ("Unknown error");
ca6e07
+  memcpy (buf, where, len);
ca6e07
+  memcpy (buf + len, ": ", 2);
ca6e07
+  va_start (ap, message);
ca6e07
+  written = vsnprintf (buf + len + 2, 4095 - len - 2, message, ap);
ca6e07
+  va_end (ap);
ca6e07
+  if (written < 0)
ca6e07
+    written = 0;
ca6e07
+  buf[len + 2 + written] = '\0';
ca6e07
+  os_error (buf);
ca6e07
+}
ca6e07
+iexport(os_error_at);
ca6e07
--- libgfortran/io/nonshared-transfer.c.jj	2020-05-27 17:46:36.539953825 +0200
ca6e07
+++ libgfortran/io/nonshared-transfer.c	2020-05-27 17:46:36.539953825 +0200
ca6e07
@@ -0,0 +1,42 @@
ca6e07
+/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
ca6e07
+   Contributed by Andy Vaught
ca6e07
+   Namelist transfer functions contributed by Paul Thomas
ca6e07
+   F2003 I/O support contributed by Jerry DeLisle
ca6e07
+
ca6e07
+This file is part of the GNU Fortran runtime library (libgfortran).
ca6e07
+
ca6e07
+Libgfortran is free software; you can redistribute it and/or modify
ca6e07
+it under the terms of the GNU General Public License as published by
ca6e07
+the Free Software Foundation; either version 3, or (at your option)
ca6e07
+any later version.
ca6e07
+
ca6e07
+Libgfortran is distributed in the hope that it will be useful,
ca6e07
+but WITHOUT ANY WARRANTY; without even the implied warranty of
ca6e07
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
ca6e07
+GNU General Public License for more details.
ca6e07
+
ca6e07
+Under Section 7 of GPL version 3, you are granted additional
ca6e07
+permissions described in the GCC Runtime Library Exception, version
ca6e07
+3.1, as published by the Free Software Foundation.
ca6e07
+
ca6e07
+You should have received a copy of the GNU General Public License and
ca6e07
+a copy of the GCC Runtime Library Exception along with this program;
ca6e07
+see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
ca6e07
+<http://www.gnu.org/licenses/>.  */
ca6e07
+
ca6e07
+
ca6e07
+/* transfer.c -- Top level handling of data transfer statements.  */
ca6e07
+
ca6e07
+#include "io.h"
ca6e07
+#include "fbuf.h"
ca6e07
+#include "format.h"
ca6e07
+#include "unix.h"
ca6e07
+#include "async.h"
ca6e07
+#include <string.h>
ca6e07
+#include <errno.h>
ca6e07
+
ca6e07
+void
ca6e07
+st_wait_async (st_parameter_wait *wtp)
ca6e07
+{
ca6e07
+  (void) wtp;
ca6e07
+}