aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/check.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/fortran/check.c')
-rw-r--r--gcc/fortran/check.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/gcc/fortran/check.c b/gcc/fortran/check.c
index 1971db037b1..23b1964c39b 100644
--- a/gcc/fortran/check.c
+++ b/gcc/fortran/check.c
@@ -2783,20 +2783,13 @@ gfc_check_kill_sub (gfc_expr *pid, gfc_expr *sig, gfc_expr *status)
if (!scalar_check (sig, 1))
return false;
- if (status == NULL)
- return true;
-
- if (!type_check (status, 2, BT_INTEGER))
- return false;
-
- if (!scalar_check (status, 2))
- return false;
-
- if (status->ts.kind != 4 && status->ts.kind != 8)
+ if (status)
{
- gfc_error ("Invalid kind type parameter for STATUS at %L",
- &status->where);
- return false;
+ if (!type_check (status, 2, BT_INTEGER))
+ return false;
+
+ if (!scalar_check (status, 2))
+ return false;
}
return true;