From 245f1bfacf4af13a28da3700f110090c20139b4d Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 20 Mar 2004 16:50:36 +0000 Subject: bb-reorder.c, [...]: Replace calls via (*targetm.foo) () with targetm.foo (). * bb-reorder.c, bt-load.c, c-decl.c, cfgcleanup.c, coverage.c, dwarf2asm.c, ifcvt.c, stor-layout.c, varasm.c: Replace calls via (*targetm.foo) () with targetm.foo (). From-SVN: r79750 --- gcc/ChangeLog | 6 ++++++ gcc/bb-reorder.c | 2 +- gcc/bt-load.c | 2 +- gcc/c-decl.c | 8 ++++---- gcc/cfgcleanup.c | 2 +- gcc/coverage.c | 4 ++-- gcc/dwarf2asm.c | 2 +- gcc/ifcvt.c | 2 +- gcc/stor-layout.c | 8 ++++---- gcc/varasm.c | 14 +++++++------- 10 files changed, 28 insertions(+), 22 deletions(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5fe5290..dc91784 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-03-20 Kazu Hirata + + * bb-reorder.c, bt-load.c, c-decl.c, cfgcleanup.c, coverage.c, + dwarf2asm.c, ifcvt.c, stor-layout.c, varasm.c: Replace calls + via (*targetm.foo) () with targetm.foo (). + 2004-03-20 Joseph S. Myers PR other/14630 diff --git a/gcc/bb-reorder.c b/gcc/bb-reorder.c index a090e45..74f9320 100644 --- a/gcc/bb-reorder.c +++ b/gcc/bb-reorder.c @@ -1075,7 +1075,7 @@ reorder_basic_blocks (void) if (n_basic_blocks <= 1) return; - if ((* targetm.cannot_modify_jumps_p) ()) + if (targetm.cannot_modify_jumps_p ()) return; timevar_push (TV_REORDER_BLOCKS); diff --git a/gcc/bt-load.c b/gcc/bt-load.c index 4aa6066..1a81c45 100644 --- a/gcc/bt-load.c +++ b/gcc/bt-load.c @@ -1435,7 +1435,7 @@ branch_target_load_optimize (rtx insns, bool after_prologue_epilogue_gen) /* Dominator info is also needed for migrate_btr_def. */ calculate_dominance_info (CDI_DOMINATORS); migrate_btr_defs (class, - ((*targetm.branch_target_register_callee_saved) + (targetm.branch_target_register_callee_saved (after_prologue_epilogue_gen))); free_dominance_info (CDI_DOMINATORS); diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 50ea380..46f352b 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -6137,8 +6137,8 @@ c_expand_body_1 (tree fndecl, int nested_p) if (DECL_STATIC_CONSTRUCTOR (fndecl)) { if (targetm.have_ctors_dtors) - (* targetm.asm_out.constructor) (XEXP (DECL_RTL (fndecl), 0), - DEFAULT_INIT_PRIORITY); + targetm.asm_out.constructor (XEXP (DECL_RTL (fndecl), 0), + DEFAULT_INIT_PRIORITY); else static_ctors = tree_cons (NULL_TREE, fndecl, static_ctors); } @@ -6146,8 +6146,8 @@ c_expand_body_1 (tree fndecl, int nested_p) if (DECL_STATIC_DESTRUCTOR (fndecl)) { if (targetm.have_ctors_dtors) - (* targetm.asm_out.destructor) (XEXP (DECL_RTL (fndecl), 0), - DEFAULT_INIT_PRIORITY); + targetm.asm_out.destructor (XEXP (DECL_RTL (fndecl), 0), + DEFAULT_INIT_PRIORITY); else static_dtors = tree_cons (NULL_TREE, fndecl, static_dtors); } diff --git a/gcc/cfgcleanup.c b/gcc/cfgcleanup.c index 3cde9b2..f40d2c1 100644 --- a/gcc/cfgcleanup.c +++ b/gcc/cfgcleanup.c @@ -1751,7 +1751,7 @@ try_optimize_cfg (int mode) if (mode & (CLEANUP_UPDATE_LIFE | CLEANUP_CROSSJUMP | CLEANUP_THREADING)) clear_bb_flags (); - if (! (* targetm.cannot_modify_jumps_p) ()) + if (! targetm.cannot_modify_jumps_p ()) { first_pass = true; /* Attempt to merge blocks as made possible by edge removal. If diff --git a/gcc/coverage.c b/gcc/coverage.c index 27643fa..88d677c 100644 --- a/gcc/coverage.c +++ b/gcc/coverage.c @@ -926,8 +926,8 @@ create_coverage (void) current_function_decl = NULL_TREE; if (targetm.have_ctors_dtors) - (* targetm.asm_out.constructor) (XEXP (DECL_RTL (ctor), 0), - DEFAULT_INIT_PRIORITY); + targetm.asm_out.constructor (XEXP (DECL_RTL (ctor), 0), + DEFAULT_INIT_PRIORITY); } /* Perform file-level initialization. Read in data file, generate name diff --git a/gcc/dwarf2asm.c b/gcc/dwarf2asm.c index 5b5056c..73aaabe 100644 --- a/gcc/dwarf2asm.c +++ b/gcc/dwarf2asm.c @@ -707,7 +707,7 @@ dw2_force_const_mem (rtx x) if (GET_CODE (x) != SYMBOL_REF) abort (); - str = (* targetm.strip_name_encoding) (XSTR (x, 0)); + str = targetm.strip_name_encoding (XSTR (x, 0)); node = splay_tree_lookup (indirect_pool, (splay_tree_key) str); if (node) decl = (tree) node->value; diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index bb0aab3..651f2a6 100644 --- a/gcc/ifcvt.c +++ b/gcc/ifcvt.c @@ -3263,7 +3263,7 @@ if_convert (int x_life_data_ok) num_true_changes = 0; life_data_ok = (x_life_data_ok != 0); - if (! (* targetm.cannot_modify_jumps_p) ()) + if (! targetm.cannot_modify_jumps_p ()) mark_loop_exit_edges (); /* Free up basic_block_for_insn so that we don't have to keep it diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 2b039db..ab5345c 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -694,7 +694,7 @@ update_alignment_for_field (record_layout_info rli, tree field, /* Record must have at least as much alignment as any field. Otherwise, the alignment of the field within the record is meaningless. */ - if (is_bitfield && (* targetm.ms_bitfield_layout_p) (rli->t)) + if (is_bitfield && targetm.ms_bitfield_layout_p (rli->t)) { /* Here, the alignment of the underlying type of a bitfield can affect the alignment of a record; even a zero-sized field @@ -914,7 +914,7 @@ place_field (record_layout_info rli, tree field) variable-sized fields, we need not worry about compatibility. */ #ifdef PCC_BITFIELD_TYPE_MATTERS if (PCC_BITFIELD_TYPE_MATTERS - && ! (* targetm.ms_bitfield_layout_p) (rli->t) + && ! targetm.ms_bitfield_layout_p (rli->t) && TREE_CODE (field) == FIELD_DECL && type != error_mark_node && DECL_BIT_FIELD (field) @@ -947,7 +947,7 @@ place_field (record_layout_info rli, tree field) #ifdef BITFIELD_NBYTES_LIMITED if (BITFIELD_NBYTES_LIMITED - && ! (* targetm.ms_bitfield_layout_p) (rli->t) + && ! targetm.ms_bitfield_layout_p (rli->t) && TREE_CODE (field) == FIELD_DECL && type != error_mark_node && DECL_BIT_FIELD_TYPE (field) @@ -998,7 +998,7 @@ place_field (record_layout_info rli, tree field) Note: for compatibility, we use the type size, not the type alignment to determine alignment, since that matches the documentation */ - if ((* targetm.ms_bitfield_layout_p) (rli->t) + if (targetm.ms_bitfield_layout_p (rli->t) && ((DECL_BIT_FIELD_TYPE (field) && ! DECL_PACKED (field)) || (rli->prev_field && ! DECL_PACKED (rli->prev_field)))) { diff --git a/gcc/varasm.c b/gcc/varasm.c index 6256421..a518dd7 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -375,7 +375,7 @@ named_section (tree decl, const char *name, int reloc) if (name == NULL) name = TREE_STRING_POINTER (DECL_SECTION_NAME (decl)); - flags = (* targetm.section_type_flags) (decl, name, reloc); + flags = targetm.section_type_flags (decl, name, reloc); /* Sanity check user variables for flag changes. Non-user section flag changes will abort in named_section_flags. @@ -727,7 +727,7 @@ make_decl_rtl (tree decl, const char *asmspec) /* Let the target reassign the RTL if it wants. This is necessary, for example, when one machine specific decl attribute overrides another. */ - (* targetm.encode_section_info) (decl, DECL_RTL (decl), false); + targetm.encode_section_info (decl, DECL_RTL (decl), false); return; } @@ -827,7 +827,7 @@ make_decl_rtl (tree decl, const char *asmspec) such as that it is a function name. If the name is changed, the macro ASM_OUTPUT_LABELREF will have to know how to strip this information. */ - (* targetm.encode_section_info) (decl, DECL_RTL (decl), true); + targetm.encode_section_info (decl, DECL_RTL (decl), true); } /* Make the rtl for variable VAR be volatile. @@ -1013,7 +1013,7 @@ notice_global_symbol (tree decl) char *name; rtx decl_rtl = DECL_RTL (decl); - p = (* targetm.strip_name_encoding) (XSTR (XEXP (decl_rtl, 0), 0)); + p = targetm.strip_name_encoding (XSTR (XEXP (decl_rtl, 0), 0)); name = xstrdup (p); *type = name; @@ -1657,7 +1657,7 @@ assemble_name (FILE *file, const char *name) const char *real_name; tree id; - real_name = (* targetm.strip_name_encoding) (name); + real_name = targetm.strip_name_encoding (name); id = maybe_get_identifier (real_name); if (id) @@ -4204,7 +4204,7 @@ maybe_assemble_visibility (tree decl) enum symbol_visibility vis = DECL_VISIBILITY (decl); if (vis != VISIBILITY_DEFAULT) - (* targetm.asm_out.visibility) (decl, vis); + targetm.asm_out.visibility (decl, vis); } /* Returns 1 if the target configuration supports defining public symbols @@ -4754,7 +4754,7 @@ default_unique_section_1 (tree decl, int reloc, int shlib) plen = strlen (prefix); name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl)); - name = (* targetm.strip_name_encoding) (name); + name = targetm.strip_name_encoding (name); nlen = strlen (name); string = alloca (nlen + plen + 1); -- cgit v1.1