diff options
author | Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de> | 2004-08-27 16:49:35 +0200 |
---|---|---|
committer | Tobias Schlüter <tobi@gcc.gnu.org> | 2004-08-27 16:49:35 +0200 |
commit | 9d64df18fd9175749aea2742096b172f59a5ebeb (patch) | |
tree | 55ec01c924dd426981ff9999706252413e684560 /gcc/fortran/decl.c | |
parent | 0be27b59bcfdf82ce4193647111f331677cab237 (diff) | |
download | gcc-9d64df18fd9175749aea2742096b172f59a5ebeb.zip gcc-9d64df18fd9175749aea2742096b172f59a5ebeb.tar.gz gcc-9d64df18fd9175749aea2742096b172f59a5ebeb.tar.bz2 |
gfortran.h (gfc_default_*_kind): Remove prototypes, add extern variable declaration of same name.
* gfortran.h (gfc_default_*_kind): Remove prototypes, add extern
variable declaration of same name.
* arith.c, check.c, decl.c, dump_parse_tree.c, expr.c,
intrinsic.c, io.c, iresolve.c, match.c, options.c, primary.c,
resolve.c, simplify.c, symbol.c, trans-const.c, trans-io.c:
Replace all calls to gfc_default_*_kind with variable accesses.
* trans-types.c: Same as above.
(gfc_default_*_kind_1): Rename to gfc_default_*_kind, remove
static qualifier. Replace all occurences.
(gfc_default_*_kind): Remove functions.
From-SVN: r86662
Diffstat (limited to 'gcc/fortran/decl.c')
-rw-r--r-- | gcc/fortran/decl.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c index 3a61fda..4ab5839 100644 --- a/gcc/fortran/decl.c +++ b/gcc/fortran/decl.c @@ -727,7 +727,7 @@ match_char_spec (gfc_typespec * ts) gfc_expr *len; match m; - kind = gfc_default_character_kind (); + kind = gfc_default_character_kind; len = NULL; seen_length = 0; @@ -891,7 +891,7 @@ match_type_spec (gfc_typespec * ts, int implicit_flag) if (gfc_match (" integer") == MATCH_YES) { ts->type = BT_INTEGER; - ts->kind = gfc_default_integer_kind (); + ts->kind = gfc_default_integer_kind; goto get_kind; } @@ -907,35 +907,35 @@ match_type_spec (gfc_typespec * ts, int implicit_flag) if (gfc_match (" real") == MATCH_YES) { ts->type = BT_REAL; - ts->kind = gfc_default_real_kind (); + ts->kind = gfc_default_real_kind; goto get_kind; } if (gfc_match (" double precision") == MATCH_YES) { ts->type = BT_REAL; - ts->kind = gfc_default_double_kind (); + ts->kind = gfc_default_double_kind; return MATCH_YES; } if (gfc_match (" complex") == MATCH_YES) { ts->type = BT_COMPLEX; - ts->kind = gfc_default_complex_kind (); + ts->kind = gfc_default_complex_kind; goto get_kind; } if (gfc_match (" double complex") == MATCH_YES) { ts->type = BT_COMPLEX; - ts->kind = gfc_default_double_kind (); + ts->kind = gfc_default_double_kind; return MATCH_YES; } if (gfc_match (" logical") == MATCH_YES) { ts->type = BT_LOGICAL; - ts->kind = gfc_default_logical_kind (); + ts->kind = gfc_default_logical_kind; goto get_kind; } @@ -1141,7 +1141,7 @@ gfc_match_implicit (void) /* Check for CHARACTER with no length parameter. */ if (ts.type == BT_CHARACTER && !ts.cl) { - ts.kind = gfc_default_character_kind (); + ts.kind = gfc_default_character_kind; ts.cl = gfc_get_charlen (); ts.cl->next = gfc_current_ns->cl_list; gfc_current_ns->cl_list = ts.cl; |