diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-03-11 15:19:27 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-03-11 15:19:27 +0000 |
commit | 84e39114ef36f4f202028695936e3725b9a08474 (patch) | |
tree | 1b76344540036a57ec23806ad0e4e22b62c916c3 /gcc/fortran/check.c | |
parent | f778423557464b07c76cbf36e2032cccb94c02bc (diff) | |
download | gcc-84e39114ef36f4f202028695936e3725b9a08474.tar.gz |
2008-03-11 Basile Starynkevitch <basile@starynkevitch.net>
merged with trunk r133107
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@133113 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/check.c')
-rw-r--r-- | gcc/fortran/check.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/fortran/check.c b/gcc/fortran/check.c index 5c7353d1168..c02656ce669 100644 --- a/gcc/fortran/check.c +++ b/gcc/fortran/check.c @@ -1111,6 +1111,18 @@ gfc_check_huge (gfc_expr *x) } +try +gfc_check_hypot (gfc_expr *x, gfc_expr *y) +{ + if (type_check (x, 0, BT_REAL) == FAILURE) + return FAILURE; + if (same_type_check (x, 0, y, 1) == FAILURE) + return FAILURE; + + return SUCCESS; +} + + /* Check that the single argument is an integer. */ try |