gcc/libgfortran
Maciej W. Rozycki c87cce5a33 libgfortran: Correct FP feature macro checks
The *_HAS_* floating-point feature macros are defined as 0/1 rather than
#undef/#define settings by gcc/c-family/c-cppbuiltin.c.  Consequently we
choose to use infinity and NaN features even with non-IEEE-754 targets
such as `vax-netbsdelf' that lack them, causing build warnings and
failures like:

In file included from .../libgfortran/generated/maxval_r4.c:26:
.../libgfortran/generated/maxval_r4.c: In function 'maxval_r4':
.../libgfortran/libgfortran.h:292:30: warning: target format does not support infinity
  292 | # define GFC_REAL_4_INFINITY __builtin_inff ()
      |                              ^~~~~~~~~~~~~~
.../libgfortran/generated/maxval_r4.c:149:19:
note: in expansion of macro 'GFC_REAL_4_INFINITY'
  149 |         result = -GFC_REAL_4_INFINITY;
      |                   ^~~~~~~~~~~~~~~~~~~
.../libgfortran/generated/maxval_r4.c: In function 'mmaxval_r4':
.../libgfortran/libgfortran.h:292:30: warning: target format does not support infinity
  292 | # define GFC_REAL_4_INFINITY __builtin_inff ()
      |                              ^~~~~~~~~~~~~~
.../libgfortran/generated/maxval_r4.c:363:19:
note: in expansion of macro 'GFC_REAL_4_INFINITY'
  363 |         result = -GFC_REAL_4_INFINITY;
      |                   ^~~~~~~~~~~~~~~~~~~
{standard input}: Assembler messages:
{standard input}:204: Fatal error: Can't relocate expression
make[3]: *** [Makefile:3358: maxval_r4.lo] Error 1

Correct the checks then for __FLT_HAS_INFINITY__, __DBL_HAS_INFINITY__,
__LDBL_HAS_INFINITY__, __FLT_HAS_QUIET_NAN__, __DBL_HAS_QUIET_NAN__, and
__LDBL_HAS_QUIET_NAN__ to match semantics and remove build issues coming
from the misinterpretation of these macros.

	libgfortran/
	* libgfortran.h: Use #if rather than #ifdef with
	__FLT_HAS_INFINITY__, __DBL_HAS_INFINITY__,
	__LDBL_HAS_INFINITY__, __FLT_HAS_QUIET_NAN__,
	__DBL_HAS_QUIET_NAN__, and __LDBL_HAS_QUIET_NAN__.
2020-11-26 17:26:43 +00:00
..
caf libgfortran/caf/single.c: Fix typo. 2020-08-03 09:41:24 +02:00
config aix: Use $(AR) without -X32_64 to build FAT libraries. 2020-09-27 12:43:29 -04:00
generated PR libfortran/97063 - Wrong result for vector (step size is negative) * matrix 2020-10-18 20:15:26 +02:00
ieee Update copyright years. 2020-01-01 12:51:42 +01:00
intrinsics Darwin, libgfortran : Do not use environ directly from the library. 2020-11-21 09:06:49 +00:00
io Fortran : rejected f0.d edit descriptor PR96436 2020-08-20 07:40:55 +01:00
m4 PR libfortran/97063 - Wrong result for vector (step size is negative) * matrix 2020-10-18 20:15:26 +02:00
runtime Fixes a hang on an invalid ID in a WAIT statement. 2020-05-23 19:01:43 +02:00
acinclude.m4
aclocal.m4 Add `--with-toolexeclibdir=' configuration option 2020-01-24 11:24:25 +00:00
c99_protos.h libgfortran: Provide some further math library fallbacks [PR94694] 2020-04-22 21:34:19 +02:00
ChangeLog Daily bump. 2020-11-22 00:16:24 +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 Update copyright years. 2020-01-01 12:51:42 +01:00
config.h.in libgfortran: Provide some further math library fallbacks [PR94694] 2020-04-22 21:34:19 +02:00
configure libgfortran: Skip integer-kind=16 check for amdgcn 2020-07-26 07:20:24 +02:00
configure.ac libgfortran: Skip integer-kind=16 check for amdgcn 2020-07-26 07:20:24 +02:00
configure.host aix: Add GCC64 configuration and FAT target libraries. 2020-06-21 14:14:46 -04:00
gfortran.map libgfortran: Export forgotten _gfortran_{,m,s}findloc{0,1}_c10 [PR95390] 2020-05-29 19:01:50 +02:00
ISO_Fortran_binding.h Update copyright years. 2020-01-01 12:51:42 +01:00
kinds-override.h Update copyright years. 2020-01-01 12:51:42 +01:00
libgfortran.h libgfortran: Correct FP feature macro checks 2020-11-26 17:26:43 +00:00
libgfortran.spec.in
libtool-version
Makefile.am libgfortran: Skip integer-kind=16 check for amdgcn 2020-07-26 07:20:24 +02:00
Makefile.in libgfortran: Skip integer-kind=16 check for amdgcn 2020-07-26 07:20:24 +02:00
mk-kinds-h.sh libgfortran: Skip integer-kind=16 check for amdgcn 2020-07-26 07:20:24 +02:00
mk-sik-inc.sh libgfortran: Skip integer-kind=16 check for amdgcn 2020-07-26 07:20:24 +02:00
mk-srk-inc.sh libgfortran: Skip integer-kind=16 check for amdgcn 2020-07-26 07:20:24 +02:00