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