gcc/libgfortran
Jakub Jelinek ac6a118120 libgfortran: Partly revert my r12-6498 change to fix Solaris build [PR104006]
In r12-6498 I've added $(version_dep) to BUILT_SOURCES, previously version_dep
on Linux used to be a file in $(srcdir), but with my changes it is a generated
file in the object directory (preprocessed version of the $(srcdir) file)
and I thought generated files belong to BUILT_SOURCES so that they are
cleaned up etc.
For Linux that is fine, but it broke parallel builds on Solaris.
BUILT_SOURCES is a special variable for automake where automake ensures
that for make all, make check and make install all those $(BUILT_SOURCES)
are generated before actually starting building in parallel the various
object files.  That way we can avoid hacks like:
$(patsubst %.F90,%.lo,$(notdir $(filter %.F90,$(prereq_SRC)))): kinds.inc c99_protos.inc
$(patsubst %.c,%.lo,$(notdir $(filter %.c,$(prereq_SRC)))): kinds.h
$(patsubst %.f90,%.lo,selected_real_kind.f90): selected_real_kind.inc
$(patsubst %.f90,%.lo,selected_int_kind.f90): selected_int_kind.inc
$(patsubst %.F90,%.lo,ieee_exceptions.F90): fpu-target.inc
$(patsubst %.F90,%.lo,ieee_arithmetic.F90): fpu-target.inc ieee_exceptions.lo
$(patsubst %.c,%.lo,fpu.c): fpu-target.h
which makes those dependencies explicit but hides it from automake, so that it
doesn't throw away its rules for those object files.
On Solaris, $(version_dep) contains gfortran.ver and gfortran.ver-sun.
gfortran.ver is like on Linux, it can be in $(BUILT_SOURCES), but unfortunately
gfortran.ver-sun depends on all the object files being compiled already,
so if gfortran.ver-sun appears in $(BUILT_SOURCES), the BUILT_SOURCES function
of ensuring the generated files are generated before building object files
is gone, almost everything is built before all-am is entered and there
are no explicit dependencies that e.g. *.F90 files depend on
kinds.inc etc.

So, this change reverts that mistake and instead adds $(version_dep) to
what is removed during make clean (clean-local in particular).

2022-01-14  Jakub Jelinek  <jakub@redhat.com>

	PR libfortran/104006
	* Makefile.am (BUILT_SOURCES): Don't include $(version_dep).
	(clean-local): Remove $(version_dep).
	* Makefile.in: Regenerated.
2022-01-14 12:11:00 +01:00
..
caf Update copyright years. 2022-01-03 10:42:10 +01:00
config Update copyright years. 2022-01-03 10:42:10 +01:00
generated Make sure the Fortran specifics have real(kind=16). 2022-01-11 23:49:31 +01:00
ieee Fortran: Allow IEEE_CLASS to identify signaling NaNs 2022-01-10 12:28:46 +01:00
intrinsics libgfortran: Avoid using libquadmath APIs on powerpc64le on glibc 2.32+ 2022-01-11 23:49:52 +01:00
io power-ieee128: Fix up byte-swapping for IBM extended real(kind=16) 2022-01-11 23:49:53 +01:00
m4 Make sure the Fortran specifics have real(kind=16). 2022-01-11 23:49:31 +01:00
runtime Handle R16 conversion for POWER in the environment variables. 2022-01-11 23:49:53 +01:00
ChangeLog Daily bump. 2022-01-14 00:16:30 +00:00
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog-2014
ChangeLog-2015
ChangeLog-2016
ChangeLog-2017
ChangeLog-2018
ChangeLog-2019
ChangeLog-2020
ChangeLog-2021 Rotate ChangeLog files - part 1 - add ChangeLog-2021. 2022-01-03 10:18:16 +01:00
ISO_Fortran_binding.h Update copyright years. 2022-01-03 10:42:10 +01:00
Makefile.am libgfortran: Partly revert my r12-6498 change to fix Solaris build [PR104006] 2022-01-14 12:11:00 +01:00
Makefile.in libgfortran: Partly revert my r12-6498 change to fix Solaris build [PR104006] 2022-01-14 12:11:00 +01:00
acinclude.m4 Generate config.h macros for IEEE128 math functions. 2022-01-11 23:40:34 +01:00
aclocal.m4
c99_protos.h Update copyright years. 2022-01-03 10:42:10 +01:00
config.h.in Make sure the Fortran specifics have real(kind=16). 2022-01-11 23:49:31 +01:00
configure Make sure the Fortran specifics have real(kind=16). 2022-01-11 23:49:31 +01:00
configure.ac Make sure the Fortran specifics have real(kind=16). 2022-01-11 23:49:31 +01:00
configure.host Fortran: add support for IEEE intrinsics on aarch64 non-glibc targets 2021-12-20 00:49:10 +01:00
gfortran.map fortran, libgfortran: -mabi=ieeelongdouble I/O 2022-01-11 23:49:48 +01:00
kinds-override.h Make sure the Fortran specifics have real(kind=16). 2022-01-11 23:49:31 +01:00
libgfortran.h libgfortran: Fix build on non-glibc targets 2022-01-12 09:43:18 +01:00
libgfortran.spec.in libgfortran: Use the libtool macro to determine libm availability. 2021-08-27 16:50:19 +01:00
libtool-version
mk-kinds-h.sh Fortran: allow __float128 on targets where long double is not REAL(KIND=10) 2021-12-22 12:46:07 +01:00
mk-sik-inc.sh
mk-srk-inc.sh