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
This commit is contained in:
Kazu Hirata 2004-03-20 16:50:36 +00:00 committed by Kazu Hirata
parent 09b844e33c
commit 245f1bfacf
10 changed files with 28 additions and 22 deletions

View File

@ -1,3 +1,9 @@
2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
* 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 <jsm@polyomino.org.uk>
PR other/14630

View File

@ -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);

View File

@ -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);

View File

@ -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);
}

View File

@ -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

View File

@ -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

View File

@ -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;

View File

@ -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

View File

@ -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))))
{

View File

@ -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);