This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
gcc/gcc fortran/ChangeLog fortran/mathbuiltins ...
- From: rth at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: 27 Nov 2003 00:26:20 -0000
- Subject: gcc/gcc fortran/ChangeLog fortran/mathbuiltins ...
CVSROOT: /cvs/gcc
Module name: gcc
Branch: tree-ssa-20020619-branch
Changes by: rth@gcc.gnu.org 2003-11-27 00:26:20
Modified files:
gcc/fortran : ChangeLog mathbuiltins.def trans-decl.c
trans-intrinsic.c trans.h
gcc/testsuite : ChangeLog.tree-ssa
gcc/testsuite/gfortran.fortran-torture/execute:
intrinsic_nearest.f90
Log message:
* mathbuiltins.def: Move acos, asin, cosh, log10, sinh, tanh from ...
* trans-intrinsic.c (gfc_intrinsic_map): ... here. Add SCALE,
FRACTION, NEAREST, SET_EXPONENT.
(gfc_intrinsic_map_t): Add libm_name, complex_available, is_constant.
Fix GTY marking. Remove unnecessary const's.
(LIBM_FUNCTION): Rename from I_LIB.
(LIBF_FUNCTION): New.
(gfc_get_intrinsic_lib_fndecl): Handle libm and libgfortran naming
conventions. Assume the expr signature is correct. Mark const.
(gfc_conv_intrinsic_exponent): Use library functions.
(gfc_conv_intrinsic_set_exponent): Remove.
(gfc_conv_intrinsic_scale): Remove.
(gfc_conv_intrinsic_nearest): Remove.
(gfc_conv_intrinsic_fraction): Remove.
(gfc_conv_intrinsic_function): Update.
* trans-decl.c (gfor_fndecl_math_exponent4): New.
(gfor_fndecl_math_exponent8): New.
(gfc_build_intrinsic_function_decls): Set them.
* trans.h: Declare them.
* gfortran.fortran-torture/execute/intrinsic_nearest.f90: Correctly
test behaviour at infinity.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.82&r2=1.1.2.83
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/mathbuiltins.def.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.3&r2=1.1.2.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-decl.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.20&r2=1.1.2.21
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-intrinsic.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.20&r2=1.1.2.21
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans.h.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.6&r2=1.1.2.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.tree-ssa.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.120&r2=1.1.2.121
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.fortran-torture/execute/intrinsic_nearest.f90.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.1&r2=1.1.2.2