diff options
author | fxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-24 21:45:36 +0000 |
---|---|---|
committer | fxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-24 21:45:36 +0000 |
commit | fc5212f328b4002c83b4437bae5446d465fd69a6 (patch) | |
tree | e1cbdc1778fa66c881bd9fcfcaee531c042b2114 /gcc/fortran/intrinsic.c | |
parent | 96faf93e05be4e1f76b025b799ec899d14a17be7 (diff) | |
download | ppe42-gcc-fc5212f328b4002c83b4437bae5446d465fd69a6.tar.gz ppe42-gcc-fc5212f328b4002c83b4437bae5446d465fd69a6.zip |
* resolve.c (resolve_actual_arglist): Remove the special case for
CHAR.
* intrinsic.c (add_functions): Remove the special case for CHAR.
* gfortran.dg/specifics_1.f90: Remove check for CHAR.
* gfortran.dg/specifics_2.f90: Remove check for CHAR.
* gfortran.dg/specifics_3.f90: Remove.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119170 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/intrinsic.c')
-rw-r--r-- | gcc/fortran/intrinsic.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/fortran/intrinsic.c b/gcc/fortran/intrinsic.c index d284f3cd8bc..ea68d69e6c6 100644 --- a/gcc/fortran/intrinsic.c +++ b/gcc/fortran/intrinsic.c @@ -200,7 +200,7 @@ do_check (gfc_intrinsic_sym * specific, gfc_actual_arglist * arg) Argument list: char * name of function int whether function is elemental - int If the function can be used as an actual argument [1] [2] + int If the function can be used as an actual argument [1] bt return type of function int kind of return type of function int Fortran standard version @@ -221,10 +221,7 @@ do_check (gfc_intrinsic_sym * specific, gfc_actual_arglist * arg) determined by its presence on the 13.6 list in Fortran 2003. The following intrinsics, which are GNU extensions, are considered allowed as actual arguments: ACOSH ATANH DACOSH DASINH DATANH DCONJG DIMAG - ZABS ZCOS ZEXP ZLOG ZSIN ZSQRT. - [2] The value 2 is used in this field for CHAR, which is allowed as an - actual argument in F2003, but not in F95. It is the only such - intrinsic function. */ + ZABS ZCOS ZEXP ZLOG ZSIN ZSQRT. */ static void add_sym (const char *name, int elemental, int actual_ok, bt type, int kind, @@ -1180,7 +1177,7 @@ add_functions (void) make_generic ("ceiling", GFC_ISYM_CEILING, GFC_STD_F95); - add_sym_2 ("char", 1, 2, BT_CHARACTER, dc, GFC_STD_F77, + add_sym_2 ("char", ELEMENTAL, ACTUAL_NO, BT_CHARACTER, dc, GFC_STD_F77, gfc_check_char, gfc_simplify_char, gfc_resolve_char, i, BT_INTEGER, di, REQUIRED, kind, BT_INTEGER, di, OPTIONAL); |