diff options
author | Jim Meyering <meyering@redhat.com> | 2011-04-18 19:20:53 +0000 |
---|---|---|
committer | Jim Meyering <meyering@gcc.gnu.org> | 2011-04-18 19:20:53 +0000 |
commit | cede9502322f2707ea29212fb115116be3c7d5a8 (patch) | |
tree | 0f2ea5a4a2af7b9e975f9465ef49db548807aa8c /gcc/fortran/symbol.c | |
parent | 5cc124fe7db7ef72ecf8be72c23c2a78dce7f9e8 (diff) | |
download | gcc-cede9502322f2707ea29212fb115116be3c7d5a8.zip gcc-cede9502322f2707ea29212fb115116be3c7d5a8.tar.gz gcc-cede9502322f2707ea29212fb115116be3c7d5a8.tar.bz2 |
convert each use of gfc_free (p) to free (p)
Do that by running this command:
perl -pi -e 's/\bgfc_free ?\(/free (/' \
$(git grep -El '\bgfc_free ?\(')
which also corrects the few uses that lacked a space between
the function name and the open parenthesis.
Manually undo the change to the function definition itself
and its prototype. They'll be removed next.
* array.c (gfc_free_array_spec, gfc_set_array_spec): s/gfc_free/free/
* constructor.c (node_free): Likewise.
* cpp.c (dump_queued_macros): Likewise.
* data.c (gfc_assign_data_value): Likewise.
* decl.c (free_variable, free_value, gfc_free_data): Likewise.
(gfc_free_data_all, match_old_style_init): Likewise.
(gfc_set_constant_character_len, gfc_free_enum_history, NUM_DECL):
Likewise.
(gfc_match_modproc): Likewise.
* dependency.c (check_section_vs_section): Likewise.
* error.c (gfc_pop_error, gfc_free_error): Likewise.
* expr.c (free_expr0, gfc_free_expr, gfc_free_actual_arglist): Likewise.
(gfc_free_ref_list, gfc_replace_expr, gfc_copy_ref): Likewise.
(find_substring_ref, gfc_simplify_expr, gfc_check_assign_symbol):
Likewise.
* frontend-passes.c (gfc_run_passes, cfe_expr_0): Likewise.
(strip_function_call, optimize_comparison): Likewise.
* interface.c (gfc_free_interface, arginfo, check_interface0): Likewise.
(CHECK_OS_COMPARISON, gfc_extend_assign, gfc_free_formal_arglist):
Likewise.
* intrinsic.c (gfc_intrinsic_done_1, gfc_convert_type_warn): Likewise.
(gfc_convert_chartype): Likewise.
* io.c (gfc_free_open, compare_to_allowed_values, gfc_free_close):
Likewise.
(gfc_free_filepos, gfc_free_dt, gfc_free_inquire): Likewise.
* match.c (gfc_free_iterator, gfc_match_associate): Likewise.
(gfc_free_alloc_list, gfc_free_namelist, gfc_free_equiv_until):
Likewise.
(free_case, gfc_free_forall_iterator): Likewise.
* misc.c: Likewise.
* module.c (free_pi_tree, resolve_fixups, free_rename): Likewise.
(free_true_name, peek_atom, mio_allocated_wide_string): Likewise.
(mio_pool_string, mio_internal_string, mio_gmp_integer): Likewise.
(mio_gmp_real, mio_expr, mio_typebound_proc): Likewise.
(mio_full_typebound_tree, skip_list, load_equiv): Likewise.
(free_written_common, gfc_use_module, gfc_free_use_stmts): Likewise.
* openmp.c (gfc_free_omp_clauses): Likewise.
* options.c (gfc_post_options): Likewise.
* parse.c (select_type_pop, parse_omp_structured_block): Likewise.
* primary.c (gfc_free_structure_ctor_component): Likewise.
* resolve.c (resolve_structure_cons, check_host_association): Likewise.
(gfc_resolve_forall, resolve_equivalence): Likewise.
* scanner.c (gfc_scanner_done_1, gfc_release_include_path): Likewise.
(gfc_define_undef_line, preprocessor_line, include_line): Likewise.
(load_file, gfc_read_orig_filename): Likewise.
* simplify.c (simplify_transformation_to_array): Likewise.
(gfc_simplify_ibits, simplify_shift, gfc_simplify_ishftc, STRING):
Likewise.
(gfc_simplify_compiler_options): Likewise.
* st.c (gfc_free_statement, gfc_free_statements): Likewise.
(gfc_free_association_list): Likewise.
* symbol.c (free_components, gfc_free_st_label, free_st_labels):
Likewise.
(gfc_delete_symtree, gfc_free_symbol, gfc_undo_symbols): Likewise.
(free_old_symbol, gfc_commit_symbols, free_tb_tree): Likewise.
(free_common_tree, free_uop_tree, free_sym_tree): Likewise.
(gfc_free_dt_list, gfc_free_equiv_infos, gfc_free_equiv_lists):
Likewise.
(gfc_free_finalizer, gfc_free_charlen, free_entry_list): Likewise.
(gfc_free_namespace): Likewise.
* trans-array.c (gfc_free_ss, gfc_trans_array_bound_check): Likewise.
(gfc_conv_array_ref, gfc_conv_ss_startstride): Likewise.
(gfc_trans_dummy_array_bias, gfc_conv_array_parameter): Likewise.
* trans-common.c (get_init_field, create_common): Likewise.
* trans-const.c (gfc_build_wide_string_const): Likewise.
(gfc_conv_string_init): Likewise.
* trans-decl.c (gfc_generate_function_code): Likewise.
* trans-expr.c (gfc_conv_substring, gfc_free_interface_mapping):
Likewise.
(SCALAR_POINTER, gfc_conv_statement_function): Likewise.
(gfc_trans_subarray_assign): Likewise.
* trans-intrinsic.c (conv_generic_with_optional_char_arg): Likewise.
* trans-io.c (gfc_trans_io_runtime_check, set_string): Likewise.
(transfer_namelist_element, transfer_array_component): Likewise.
* trans-openmp.c (gfc_trans_omp_array_reduction): Likewise.
* trans-stmt.c (cleanup_forall_symtrees, gfc_trans_forall_1): Likewise.
* trans.c (trans_runtime_error_vararg, gfc_restore_backend_locus):
Likewise.
From-SVN: r172666
Diffstat (limited to 'gcc/fortran/symbol.c')
-rw-r--r-- | gcc/fortran/symbol.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/gcc/fortran/symbol.c b/gcc/fortran/symbol.c index 71aa518..4b4f75f 100644 --- a/gcc/fortran/symbol.c +++ b/gcc/fortran/symbol.c @@ -2060,7 +2060,7 @@ free_components (gfc_component *p) gfc_free_formal_arglist (p->formal); gfc_free_namespace (p->formal_ns); - gfc_free (p); + free (p); } } @@ -2096,7 +2096,7 @@ gfc_free_st_label (gfc_st_label *label) if (label->format != NULL) gfc_free_expr (label->format); - gfc_free (label); + free (label); } @@ -2114,7 +2114,7 @@ free_st_labels (gfc_st_label *label) if (label->format != NULL) gfc_free_expr (label->format); - gfc_free (label); + free (label); } @@ -2375,7 +2375,7 @@ gfc_delete_symtree (gfc_symtree **root, const char *name) st.name = gfc_get_string (name); gfc_delete_bbt (root, &st, compare_symtree); - gfc_free (st0); + free (st0); } @@ -2481,7 +2481,7 @@ gfc_free_symbol (gfc_symbol *sym) gfc_free_namespace (sym->f2k_derived); - gfc_free (sym); + free (sym); } @@ -2918,7 +2918,7 @@ gfc_undo_symbols (void) p->formal = old->formal; } - gfc_free (p->old_symbol); + free (p->old_symbol); p->old_symbol = NULL; p->tlink = NULL; } @@ -2929,7 +2929,7 @@ gfc_undo_symbols (void) { tbq = tbp->next; /* Procedure is already marked `error' by default. */ - gfc_free (tbp); + free (tbp); } tentative_tbp_list = NULL; } @@ -2957,7 +2957,7 @@ free_old_symbol (gfc_symbol *sym) if (sym->old_symbol->formal != sym->formal) gfc_free_formal_arglist (sym->old_symbol->formal); - gfc_free (sym->old_symbol); + free (sym->old_symbol); sym->old_symbol = NULL; } @@ -2985,7 +2985,7 @@ gfc_commit_symbols (void) { tbq = tbp->next; tbp->proc->error = 0; - gfc_free (tbp); + free (tbp); } tentative_tbp_list = NULL; } @@ -3033,7 +3033,7 @@ free_tb_tree (gfc_symtree *t) /* TODO: Free type-bound procedure structs themselves; probably needs some sort of ref-counting mechanism. */ - gfc_free (t); + free (t); } @@ -3049,7 +3049,7 @@ free_common_tree (gfc_symtree * common_tree) free_common_tree (common_tree->left); free_common_tree (common_tree->right); - gfc_free (common_tree); + free (common_tree); } @@ -3066,8 +3066,8 @@ free_uop_tree (gfc_symtree *uop_tree) free_uop_tree (uop_tree->right); gfc_free_interface (uop_tree->n.uop->op); - gfc_free (uop_tree->n.uop); - gfc_free (uop_tree); + free (uop_tree->n.uop); + free (uop_tree); } @@ -3084,7 +3084,7 @@ free_sym_tree (gfc_symtree *sym_tree) free_sym_tree (sym_tree->right); gfc_release_symbol (sym_tree->n.sym); - gfc_free (sym_tree); + free (sym_tree); } @@ -3098,7 +3098,7 @@ gfc_free_dt_list (void) for (dt = gfc_derived_types; dt; dt = n) { n = dt->next; - gfc_free (dt); + free (dt); } gfc_derived_types = NULL; @@ -3113,7 +3113,7 @@ gfc_free_equiv_infos (gfc_equiv_info *s) if (s == NULL) return; gfc_free_equiv_infos (s->next); - gfc_free (s); + free (s); } @@ -3126,7 +3126,7 @@ gfc_free_equiv_lists (gfc_equiv_list *l) return; gfc_free_equiv_lists (l->next); gfc_free_equiv_infos (l->equiv); - gfc_free (l); + free (l); } @@ -3138,7 +3138,7 @@ gfc_free_finalizer (gfc_finalizer* el) if (el) { gfc_release_symbol (el->proc_sym); - gfc_free (el); + free (el); } } @@ -3204,7 +3204,7 @@ void gfc_free_charlen (gfc_charlen *cl, gfc_charlen *end) cl2 = cl->next; gfc_free_expr (cl->length); - gfc_free (cl); + free (cl); } } @@ -3220,7 +3220,7 @@ free_entry_list (gfc_entry_list *el) return; next = el->next; - gfc_free (el); + free (el); free_entry_list (next); } @@ -3264,7 +3264,7 @@ gfc_free_namespace (gfc_namespace *ns) gfc_free_data (ns->data); p = ns->contained; - gfc_free (ns); + free (ns); /* Recursively free any contained namespaces. */ while (p != NULL) |