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