mirror of
https://gcc.gnu.org/git/gcc.git
synced 2026-02-22 03:46:53 -05:00
check.c (gfc_check_kill_sub): Add checks for non-scalar arguments.
* check.c (gfc_check_kill_sub): Add checks for non-scalar arguments. From-SVN: r122569
This commit is contained in:
committed by
Brooks Moses
parent
dc89902b42
commit
aceec9f74c
@@ -1,3 +1,8 @@
|
||||
2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
|
||||
|
||||
* check.c (gfc_check_kill_sub): Add checks for non-scalar
|
||||
arguments.
|
||||
|
||||
2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
|
||||
|
||||
* lang.opt (-fmodule-private): Remove option.
|
||||
|
||||
@@ -1327,9 +1327,15 @@ gfc_check_kill_sub (gfc_expr * pid, gfc_expr * sig, gfc_expr * status)
|
||||
if (type_check (pid, 0, BT_INTEGER) == FAILURE)
|
||||
return FAILURE;
|
||||
|
||||
if (scalar_check (pid, 0) == FAILURE)
|
||||
return FAILURE;
|
||||
|
||||
if (type_check (sig, 1, BT_INTEGER) == FAILURE)
|
||||
return FAILURE;
|
||||
|
||||
if (scalar_check (sig, 1) == FAILURE)
|
||||
return FAILURE;
|
||||
|
||||
if (status == NULL)
|
||||
return SUCCESS;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user