aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans.h
diff options
context:
space:
mode:
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>2010-09-01 08:40:53 +0000
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>2010-09-01 08:40:53 +0000
commit166d08bddeffca222328dfb9806418910fe83729 (patch)
treecec56c33ee5ba903a41efda3b893888b045f87ea /gcc/fortran/trans.h
parente14ca1cef69e39dd2a2ffffffdab47a51b803579 (diff)
downloadgcc-166d08bddeffca222328dfb9806418910fe83729.zip
gcc-166d08bddeffca222328dfb9806418910fe83729.tar.gz
gcc-166d08bddeffca222328dfb9806418910fe83729.tar.bz2
trans-expr.c (gfc_conv_power_op): Handle floating-point types other than long double.
* trans-expr.c (gfc_conv_power_op): Handle floating-point types other than long double. * mathbuiltins.def: Add builtins from the POW and CPOW family. * trans.h (gfc_builtin_decl_for_float_kind): New prototype. * trans-intrinsic.c (gfc_builtin_decl_for_float_kind): Add gfc_ prefix to function name. (gfc_build_intrinsic_lib_fndecls): Add cpow prototype. (gfc_conv_intrinsic_aint): Use gfc_builtin_decl_for_float_kind function name. (gfc_conv_intrinsic_exponent): Likewise. (gfc_conv_intrinsic_abs): Likewise. (gfc_conv_intrinsic_mod): Likewise. (gfc_conv_intrinsic_sign): Likewise. (gfc_conv_intrinsic_arith): Likewise. (gfc_conv_intrinsic_fraction): Likewise. (gfc_conv_intrinsic_nearest): Likewise. (gfc_conv_intrinsic_spacing): Likewise. (gfc_conv_intrinsic_rrspacing): Likewise. (gfc_conv_intrinsic_scale): Likewise. (gfc_conv_intrinsic_set_exponent): Likewise. From-SVN: r163721
Diffstat (limited to 'gcc/fortran/trans.h')
-rw-r--r--gcc/fortran/trans.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/fortran/trans.h b/gcc/fortran/trans.h
index ff91413..970ae02 100644
--- a/gcc/fortran/trans.h
+++ b/gcc/fortran/trans.h
@@ -339,6 +339,9 @@ void gfc_conv_label_variable (gfc_se * se, gfc_expr * expr);
/* If the value is not constant, Create a temporary and copy the value. */
tree gfc_evaluate_now (tree, stmtblock_t *);
+/* Find the appropriate variant of a math intrinsic. */
+tree gfc_builtin_decl_for_float_kind (enum built_in_function, int);
+
/* Intrinsic function handling. */
void gfc_conv_intrinsic_function (gfc_se *, gfc_expr *);