gcc/libgfortran/m4
Steven G. Kargl cc6d3bde5a re PR fortran/15441 (RRSPACING broken for denormals)
2006-10-06  Steven G. Kargl  <kargl@gcc.gnu.org>
 
	* gfortran.h: Define GFC_MPFR_TOO_OLD via mpfr version info.
	* arith.c (arctangent, gfc_check_real_range): Use it.	
	* simplify.c (gfc_simplify_atan2, gfc_simplify_exponent,
	gfc_simplify_log, gfc_simplify_nearest): Use it.

	PR fortran/15441
	PR fortran/29312
	* iresolve.c (gfc_resolve_rrspacing): Give rrspacing library
	routine hidden precision argument.
	(gfc_resolve_spacing): Give spacing library routine hidden
	precision, emin - 1, and tiny(x) arguments.
	* simplify.c (gfc_simplify_nearest): Remove explicit subnormalization.
	(gfc_simplify_rrspacing): Implement formula from Fortran 95 standard.
	(gfc_simplify_spacing): Implement formula from Fortran 2003 standard.
	* trans-intrinsic.c (gfc_intrinsic_map_t) Declare rrspacing and
	spacing via LIBF_FUNCTION
	(prepare_arg_info, call_builtin_clz, gfc_conv_intrinsic_spacing,
	gfc_conv_intrinsic_rrspacing): Remove functions.
	(gfc_conv_intrinsic_function): Remove calls to
	gfc_conv_intrinsic_spacing and gfc_conv_intrinsic_rrspacing.
	* f95-lang.c (gfc_init_builtin_functions): Remove __builtin_clz,
	__builtin_clzl and __builtin_clzll


2006-10-06  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/15441
	PR fortran/29312
	* configure.ac: Add HAVE_LDEXPF, HAVE_LDEXP, and HAVE_LDEXPL
	* m4/spacing.m4: New file.  Use new HAVE_* defines.
	* m4/rrspacing.m4: Ditto.
	* Makefile.am: Handle new files.
	* configure: Regenerated.
	* Makefile.in: Ditto.
	* config.h.in: Ditto.
	* generated/spacing_r4.c: Generated.
	* generated/spacing_r8.c: Ditto.
	* generated/spacing_r10.c: Ditto.
	* generated/spacing_r16.c: Ditto.
	* generated/rrspacing_r4.c: Ditto.
	* generated/rrspacing_r8.c: Ditto.
	* generated/rrspacing_r10.c: Ditto.
	* generated/rrspacing_r16.c: Ditto.

From-SVN: r117584
2006-10-09 20:55:29 +00:00
..
all.m4 re PR libfortran/19308 (I/O library should support more real and integer kinds) 2005-10-03 07:22:20 +00:00
any.m4 re PR libfortran/19308 (I/O library should support more real and integer kinds) 2005-10-03 07:22:20 +00:00
count.m4 re PR libfortran/19308 (I/O library should support more real and integer kinds) 2005-10-03 07:22:20 +00:00
cshift1.m4 libgfortran ChangeLog: 2005-11-27 23:03:33 +02:00
eoshift1.m4 libgfortran ChangeLog: 2005-11-27 23:03:33 +02:00
eoshift3.m4 libgfortran ChangeLog: 2005-11-27 23:03:33 +02:00
exponent.m4 re PR libfortran/19308 (I/O library should support more real and integer kinds) 2005-10-03 07:22:20 +00:00
fraction.m4 re PR libfortran/19308 (I/O library should support more real and integer kinds) 2005-10-03 07:22:20 +00:00
head.m4 All files: Update FSF address. 2005-08-17 02:49:08 +00:00
iforeach.m4 in_pack.m4: Add TODO comment about detecting temporaries... 2006-06-06 11:10:09 +03:00
ifunction.m4 in_pack.m4: Add TODO comment about detecting temporaries... 2006-06-06 11:10:09 +03:00
in_pack.m4 in_pack.m4: Add TODO comment about detecting temporaries... 2006-06-06 11:10:09 +03:00
in_unpack.m4 in_pack.m4: Add TODO comment about detecting temporaries... 2006-06-06 11:10:09 +03:00
iparm.m4 re PR fortran/26769 (Implement transpose() and reshape() for real instead of using integer) 2006-03-25 21:15:48 +00:00
matmul.m4 re PR fortran/28947 (Double MATMUL() uses wrong array elements) 2006-09-10 17:21:44 +00:00
matmull.m4 in_pack.m4: Add TODO comment about detecting temporaries... 2006-06-06 11:10:09 +03:00
maxloc0.m4 re PR fortran/20935 (failed assertion for maxloc(n, mask=.true.)) 2006-03-20 21:56:00 +00:00
maxloc1.m4 re PR fortran/20935 (failed assertion for maxloc(n, mask=.true.)) 2006-03-20 21:56:00 +00:00
maxval.m4 re PR fortran/20935 (failed assertion for maxloc(n, mask=.true.)) 2006-03-20 21:56:00 +00:00
minloc0.m4 re PR fortran/20935 (failed assertion for maxloc(n, mask=.true.)) 2006-03-20 21:56:00 +00:00
minloc1.m4 re PR fortran/20935 (failed assertion for maxloc(n, mask=.true.)) 2006-03-20 21:56:00 +00:00
minval.m4 re PR fortran/20935 (failed assertion for maxloc(n, mask=.true.)) 2006-03-20 21:56:00 +00:00
misc_specifics.m4 re PR fortran/16580 ([4.1 only] gfortran ICE on test g77.f-torture/execute/intrinsic77.f) 2006-10-07 13:34:16 +00:00
mtype.m4 re PR libfortran/19308 (I/O library should support more real and integer kinds) 2005-10-03 07:22:20 +00:00
nearest.m4 re PR libfortran/19308 (I/O library should support more real and integer kinds) 2005-10-03 07:22:20 +00:00
pow.m4 re PR libfortran/19308 (I/O library should support more real and integer kinds) 2005-10-03 07:22:20 +00:00
product.m4 re PR fortran/20935 (failed assertion for maxloc(n, mask=.true.)) 2006-03-20 21:56:00 +00:00
reshape.m4 in_pack.m4: Add TODO comment about detecting temporaries... 2006-06-06 11:10:09 +03:00
rrspacing.m4 re PR fortran/15441 (RRSPACING broken for denormals) 2006-10-09 20:55:29 +00:00
set_exponent.m4 re PR libfortran/19308 (I/O library should support more real and integer kinds) 2005-10-03 07:22:20 +00:00
shape.m4 in_pack.m4: Add TODO comment about detecting temporaries... 2006-06-06 11:10:09 +03:00
spacing.m4 re PR fortran/15441 (RRSPACING broken for denormals) 2006-10-09 20:55:29 +00:00
specific.m4 re PR fortran/16580 ([4.1 only] gfortran ICE on test g77.f-torture/execute/intrinsic77.f) 2006-10-07 13:34:16 +00:00
specific2.m4 re PR libfortran/19308 (I/O library should support more real and integer kinds) 2005-10-03 07:22:20 +00:00
sum.m4 re PR fortran/20935 (failed assertion for maxloc(n, mask=.true.)) 2006-03-20 21:56:00 +00:00
transpose.m4 in_pack.m4: Add TODO comment about detecting temporaries... 2006-06-06 11:10:09 +03:00
types.m4 Merge tree-ssa-20020619-branch into mainline. 2004-05-13 02:41:07 -04:00