aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/check.c
diff options
context:
space:
mode:
authorTobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>2004-08-26 19:11:27 +0200
committerTobias Schlüter <tobi@gcc.gnu.org>2004-08-26 19:11:27 +0200
commita1bab9ea96f0a1a2e0b6030237fa4434eab78972 (patch)
treebdf9652020a5d0a53ec041237b2420d91b40ebe4 /gcc/fortran/check.c
parent36d59cf798c2bf339594ca6917851b9689f84b5d (diff)
downloadgcc-a1bab9ea96f0a1a2e0b6030237fa4434eab78972.zip
gcc-a1bab9ea96f0a1a2e0b6030237fa4434eab78972.tar.gz
gcc-a1bab9ea96f0a1a2e0b6030237fa4434eab78972.tar.bz2
check.c (gfc_check_atan2): New function.
* check.c (gfc_check_atan2): New function. * intrinsic.c (add_functions): Use gfc_check_atan2 for ATAN2 * intrinsic.h (gfc_check_atan2): Add prototype. From-SVN: r86628
Diffstat (limited to 'gcc/fortran/check.c')
-rw-r--r--gcc/fortran/check.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/fortran/check.c b/gcc/fortran/check.c
index acf16c5..32de055 100644
--- a/gcc/fortran/check.c
+++ b/gcc/fortran/check.c
@@ -514,6 +514,18 @@ gfc_check_associated (gfc_expr * pointer, gfc_expr * target)
try
+gfc_check_atan2 (gfc_expr * y, gfc_expr * x)
+{
+ if (type_check (y, 0, BT_REAL) == FAILURE)
+ return FAILURE;
+ if (same_type_check (y, 0, x, 1) == FAILURE)
+ return FAILURE;
+
+ return SUCCESS;
+}
+
+
+try
gfc_check_btest (gfc_expr * i, gfc_expr * pos)
{