diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-07-22 13:19:06 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-07-22 13:19:06 +0000 |
commit | aee081df0f4394566a5d68879502634d6900e311 (patch) | |
tree | 1edd1d72e20a2228a6757315146395eae0926b90 /gcc/fortran/decl.c | |
parent | 5f468e52abd922b178b97070738ae8e9185bd3d9 (diff) | |
download | gcc-aee081df0f4394566a5d68879502634d6900e311.tar.gz |
2008-07-22 Basile Starynkevitch <basile@starynkevitch.net>
MERGED WITH TRUNK rev138050
* gcc/compiler-probe.c: more C++ friendly.
* gcc/passes.c: merged with trunk.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@138056 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/decl.c')
-rw-r--r-- | gcc/fortran/decl.c | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c index d23a32946ef..aff1ebbaeb5 100644 --- a/gcc/fortran/decl.c +++ b/gcc/fortran/decl.c @@ -231,21 +231,21 @@ syntax: variable-iterator list. */ static match -var_element (gfc_data_variable *new) +var_element (gfc_data_variable *new_var) { match m; gfc_symbol *sym; - memset (new, 0, sizeof (gfc_data_variable)); + memset (new_var, 0, sizeof (gfc_data_variable)); if (gfc_match_char ('(') == MATCH_YES) - return var_list (new); + return var_list (new_var); - m = gfc_match_variable (&new->expr, 0); + m = gfc_match_variable (&new_var->expr, 0); if (m != MATCH_YES) return m; - sym = new->expr->symtree->n.sym; + sym = new_var->expr->symtree->n.sym; if (!sym->attr.function && gfc_current_ns->parent && gfc_current_ns->parent == sym->ns) @@ -262,7 +262,7 @@ var_element (gfc_data_variable *new) sym->name) == FAILURE) return MATCH_ERROR; - if (gfc_add_data (&sym->attr, sym->name, &new->expr->where) == FAILURE) + if (gfc_add_data (&sym->attr, sym->name, &new_var->expr->where) == FAILURE) return MATCH_ERROR; return MATCH_YES; @@ -274,7 +274,7 @@ var_element (gfc_data_variable *new) static match top_var_list (gfc_data *d) { - gfc_data_variable var, *tail, *new; + gfc_data_variable var, *tail, *new_var; match m; tail = NULL; @@ -287,15 +287,15 @@ top_var_list (gfc_data *d) if (m == MATCH_ERROR) return MATCH_ERROR; - new = gfc_get_data_variable (); - *new = var; + new_var = gfc_get_data_variable (); + *new_var = var; if (tail == NULL) - d->var = new; + d->var = new_var; else - tail->next = new; + tail->next = new_var; - tail = new; + tail = new_var; if (gfc_match_char ('/') == MATCH_YES) break; @@ -404,7 +404,7 @@ match_data_constant (gfc_expr **result) static match top_val_list (gfc_data *data) { - gfc_data_value *new, *tail; + gfc_data_value *new_val, *tail; gfc_expr *expr; match m; @@ -418,15 +418,15 @@ top_val_list (gfc_data *data) if (m == MATCH_ERROR) return MATCH_ERROR; - new = gfc_get_data_value (); - mpz_init (new->repeat); + new_val = gfc_get_data_value (); + mpz_init (new_val->repeat); if (tail == NULL) - data->value = new; + data->value = new_val; else - tail->next = new; + tail->next = new_val; - tail = new; + tail = new_val; if (expr->ts.type != BT_INTEGER || gfc_match_char ('*') != MATCH_YES) { @@ -518,26 +518,26 @@ match_old_style_init (const char *name) match gfc_match_data (void) { - gfc_data *new; + gfc_data *new_data; match m; set_in_match_data (true); for (;;) { - new = gfc_get_data (); - new->where = gfc_current_locus; + new_data = gfc_get_data (); + new_data->where = gfc_current_locus; - m = top_var_list (new); + m = top_var_list (new_data); if (m != MATCH_YES) goto cleanup; - m = top_val_list (new); + m = top_val_list (new_data); if (m != MATCH_YES) goto cleanup; - new->next = gfc_current_ns->data; - gfc_current_ns->data = new; + new_data->next = gfc_current_ns->data; + gfc_current_ns->data = new_data; if (gfc_match_eos () == MATCH_YES) break; @@ -557,7 +557,7 @@ gfc_match_data (void) cleanup: set_in_match_data (false); - gfc_free_data (new); + gfc_free_data (new_data); return MATCH_ERROR; } @@ -762,7 +762,7 @@ get_proc_name (const char *name, gfc_symbol **result, bool module_fcn_entry) (*result)->ts = sym->ts; /* Put the symbol in the procedure namespace so that, should - the ENTRY preceed its specification, the specification + the ENTRY precede its specification, the specification can be applied. */ (*result)->ns = gfc_current_ns; @@ -781,7 +781,7 @@ get_proc_name (const char *name, gfc_symbol **result, bool module_fcn_entry) sym = *result; gfc_current_ns->refs++; - if (sym && !sym->new && gfc_current_state () != COMP_INTERFACE) + if (sym && !sym->gfc_new && gfc_current_state () != COMP_INTERFACE) { /* Trap another encompassed procedure with the same name. All these conditions are necessary to avoid picking up an entry @@ -5630,7 +5630,7 @@ access_attr_decl (gfc_statement st) interface_type type; gfc_user_op *uop; gfc_symbol *sym; - gfc_intrinsic_op operator; + gfc_intrinsic_op op; match m; if (gfc_match (" ::") == MATCH_NO && gfc_match_space () == MATCH_NO) @@ -5638,7 +5638,7 @@ access_attr_decl (gfc_statement st) for (;;) { - m = gfc_match_generic_spec (&type, name, &operator); + m = gfc_match_generic_spec (&type, name, &op); if (m == MATCH_NO) goto syntax; if (m == MATCH_ERROR) @@ -5662,15 +5662,15 @@ access_attr_decl (gfc_statement st) break; case INTERFACE_INTRINSIC_OP: - if (gfc_current_ns->operator_access[operator] == ACCESS_UNKNOWN) + if (gfc_current_ns->operator_access[op] == ACCESS_UNKNOWN) { - gfc_current_ns->operator_access[operator] = + gfc_current_ns->operator_access[op] = (st == ST_PUBLIC) ? ACCESS_PUBLIC : ACCESS_PRIVATE; } else { gfc_error ("Access specification of the %s operator at %C has " - "already been specified", gfc_op2string (operator)); + "already been specified", gfc_op2string (op)); goto done; } @@ -5770,7 +5770,7 @@ syntax: /* The PRIVATE statement is a bit weird in that it can be an attribute - declaration, but also works as a standlone statement inside of a + declaration, but also works as a standalone statement inside of a type declaration or a module. */ match @@ -6341,7 +6341,7 @@ gfc_match_derived_decl (void) components. The ways this can happen is via a function definition, an INTRINSIC statement or a subtype in another derived type that is a pointer. The first part of the AND clause - is true if a the symbol is not the return value of a function. */ + is true if the symbol is not the return value of a function. */ if (sym->attr.flavor != FL_DERIVED && gfc_add_flavor (&sym->attr, FL_DERIVED, sym->name, NULL) == FAILURE) return MATCH_ERROR; |