]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libgfortran: Makefile fix for ISO_Fortran_binding.h
authorTobias Burnus <tobias@codesourcery.com>
Mon, 13 Sep 2021 06:58:54 +0000 (08:58 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Mon, 13 Sep 2021 06:58:54 +0000 (08:58 +0200)
libgfortran/ChangeLog:

* Makefile.am (gfor_built_src): Depend on
include/ISO_Fortran_binding.h not on ISO_Fortran_binding.h.
(ISO_Fortran_binding.h): Rename make target to ...
(include/ISO_Fortran_binding.h): ... this.
* Makefile.in: Regenerate.

(cherry picked from commit fc4f0631de806c89a383fd02428a16e91068b9f6)

libgfortran/ChangeLog.omp
libgfortran/Makefile.am
libgfortran/Makefile.in

index 212520a3e5a24d0bd3c4c2f02b25164aa6facfee..2929d6f7a1bbdc428949100509645bf13a5ef1e0 100644 (file)
@@ -1,3 +1,14 @@
+2021-08-13  Tobias Burnus  <tobias@codesourcery.com>
+
+       Backported from master:
+       2021-08-07  Tobias Burnus  <tobias@codesourcery.com>
+
+       * Makefile.am (gfor_built_src): Depend on
+       include/ISO_Fortran_binding.h not on ISO_Fortran_binding.h.
+       (ISO_Fortran_binding.h): Rename make target to ...
+       (include/ISO_Fortran_binding.h): ... this.
+       * Makefile.in: Regenerate.
+
 2021-08-13  Tobias Burnus  <tobias@codesourcery.com>
 
        Backported from master:
index 5874c0da2eeca6990b65ac3edcda0c1e452c9f87..7df639821958b3231460f13194e14157b3b24e24 100644 (file)
@@ -817,7 +817,7 @@ gfor_built_src= $(i_all_c) $(i_any_c) $(i_count_c) $(i_maxloc0_c) \
     $(i_pow_c) $(i_pack_c) $(i_unpack_c) $(i_matmulavx128_c) \
     $(i_spread_c) selected_int_kind.inc selected_real_kind.inc kinds.h \
     $(i_cshift0_c) kinds.inc c99_protos.inc fpu-target.h fpu-target.inc \
-    ISO_Fortran_binding.h \
+    include/ISO_Fortran_binding.h \
     $(i_cshift1a_c) $(i_maxloc0s_c) $(i_minloc0s_c) $(i_maxloc1s_c) \
     $(i_minloc1s_c) $(i_maxloc2s_c) $(i_minloc2s_c) $(i_maxvals_c) \
     $(i_maxval0s_c) $(i_minval0s_c) $(i_maxval1s_c) $(i_minval1s_c) \
@@ -1076,15 +1076,13 @@ fpu-target.inc: fpu-target.h $(srcdir)/libgfortran.h
        grep '^#define GFC_FPE_' < $(top_srcdir)/../gcc/fortran/libgfortran.h > $@ || true
        grep '^#define GFC_FPE_' < $(srcdir)/libgfortran.h >> $@ || true
 
-# Place ISO_Fortran_binding.h also under include/ in the build directory such
+# Place ISO_Fortran_binding.h under include/ in the build directory such
 # that it can be used for in-built-tree testsuite runs without interference of
 # other files in the build dir - like intrinsic .mod files or other .h files.
-ISO_Fortran_binding.h: $(srcdir)/ISO_Fortran_binding.h
+include/ISO_Fortran_binding.h: $(srcdir)/ISO_Fortran_binding.h
        -rm -f $@
-       cp $(srcdir)/ISO_Fortran_binding.h $@
        $(MKDIR_P) include
-       -rm -f include/ISO_Fortran_binding.h
-       cp $@ include/ISO_Fortran_binding.h
+       cp $(srcdir)/ISO_Fortran_binding.h $@
 
 ## A 'normal' build shouldn't need to regenerate these
 ## so we only include them in maintainer mode
index 22a6942b49c76d5f5c1ed650ffd4c9856f1399fc..a73ee649355a022718b6bc4cb582b3a194027b9a 100644 (file)
@@ -1381,7 +1381,7 @@ gfor_built_src = $(i_all_c) $(i_any_c) $(i_count_c) $(i_maxloc0_c) \
     $(i_pow_c) $(i_pack_c) $(i_unpack_c) $(i_matmulavx128_c) \
     $(i_spread_c) selected_int_kind.inc selected_real_kind.inc kinds.h \
     $(i_cshift0_c) kinds.inc c99_protos.inc fpu-target.h fpu-target.inc \
-    ISO_Fortran_binding.h \
+    include/ISO_Fortran_binding.h \
     $(i_cshift1a_c) $(i_maxloc0s_c) $(i_minloc0s_c) $(i_maxloc1s_c) \
     $(i_minloc1s_c) $(i_maxloc2s_c) $(i_minloc2s_c) $(i_maxvals_c) \
     $(i_maxval0s_c) $(i_minval0s_c) $(i_maxval1s_c) $(i_minval1s_c) \
@@ -7041,15 +7041,13 @@ fpu-target.inc: fpu-target.h $(srcdir)/libgfortran.h
        grep '^#define GFC_FPE_' < $(top_srcdir)/../gcc/fortran/libgfortran.h > $@ || true
        grep '^#define GFC_FPE_' < $(srcdir)/libgfortran.h >> $@ || true
 
-# Place ISO_Fortran_binding.h also under include/ in the build directory such
+# Place ISO_Fortran_binding.h under include/ in the build directory such
 # that it can be used for in-built-tree testsuite runs without interference of
 # other files in the build dir - like intrinsic .mod files or other .h files.
-ISO_Fortran_binding.h: $(srcdir)/ISO_Fortran_binding.h
+include/ISO_Fortran_binding.h: $(srcdir)/ISO_Fortran_binding.h
        -rm -f $@
-       cp $(srcdir)/ISO_Fortran_binding.h $@
        $(MKDIR_P) include
-       -rm -f include/ISO_Fortran_binding.h
-       cp $@ include/ISO_Fortran_binding.h
+       cp $(srcdir)/ISO_Fortran_binding.h $@
 
 @MAINTAINER_MODE_TRUE@$(i_all_c): m4/all.m4 $(I_M4_DEPS2)
 @MAINTAINER_MODE_TRUE@ $(M4) -Dfile=$@ -I$(srcdir)/m4 all.m4 > $@