Commit 245f1bfa by Kazu Hirata Committed by Kazu Hirata

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
parent 09b844e3
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> 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
PR other/14630 PR other/14630
......
...@@ -1075,7 +1075,7 @@ reorder_basic_blocks (void) ...@@ -1075,7 +1075,7 @@ reorder_basic_blocks (void)
if (n_basic_blocks <= 1) if (n_basic_blocks <= 1)
return; return;
if ((* targetm.cannot_modify_jumps_p) ()) if (targetm.cannot_modify_jumps_p ())
return; return;
timevar_push (TV_REORDER_BLOCKS); timevar_push (TV_REORDER_BLOCKS);
......
...@@ -1435,7 +1435,7 @@ branch_target_load_optimize (rtx insns, bool after_prologue_epilogue_gen) ...@@ -1435,7 +1435,7 @@ branch_target_load_optimize (rtx insns, bool after_prologue_epilogue_gen)
/* Dominator info is also needed for migrate_btr_def. */ /* Dominator info is also needed for migrate_btr_def. */
calculate_dominance_info (CDI_DOMINATORS); calculate_dominance_info (CDI_DOMINATORS);
migrate_btr_defs (class, migrate_btr_defs (class,
((*targetm.branch_target_register_callee_saved) (targetm.branch_target_register_callee_saved
(after_prologue_epilogue_gen))); (after_prologue_epilogue_gen)));
free_dominance_info (CDI_DOMINATORS); free_dominance_info (CDI_DOMINATORS);
......
...@@ -6137,8 +6137,8 @@ c_expand_body_1 (tree fndecl, int nested_p) ...@@ -6137,8 +6137,8 @@ c_expand_body_1 (tree fndecl, int nested_p)
if (DECL_STATIC_CONSTRUCTOR (fndecl)) if (DECL_STATIC_CONSTRUCTOR (fndecl))
{ {
if (targetm.have_ctors_dtors) if (targetm.have_ctors_dtors)
(* targetm.asm_out.constructor) (XEXP (DECL_RTL (fndecl), 0), targetm.asm_out.constructor (XEXP (DECL_RTL (fndecl), 0),
DEFAULT_INIT_PRIORITY); DEFAULT_INIT_PRIORITY);
else else
static_ctors = tree_cons (NULL_TREE, fndecl, static_ctors); static_ctors = tree_cons (NULL_TREE, fndecl, static_ctors);
} }
...@@ -6146,8 +6146,8 @@ c_expand_body_1 (tree fndecl, int nested_p) ...@@ -6146,8 +6146,8 @@ c_expand_body_1 (tree fndecl, int nested_p)
if (DECL_STATIC_DESTRUCTOR (fndecl)) if (DECL_STATIC_DESTRUCTOR (fndecl))
{ {
if (targetm.have_ctors_dtors) if (targetm.have_ctors_dtors)
(* targetm.asm_out.destructor) (XEXP (DECL_RTL (fndecl), 0), targetm.asm_out.destructor (XEXP (DECL_RTL (fndecl), 0),
DEFAULT_INIT_PRIORITY); DEFAULT_INIT_PRIORITY);
else else
static_dtors = tree_cons (NULL_TREE, fndecl, static_dtors); static_dtors = tree_cons (NULL_TREE, fndecl, static_dtors);
} }
......
...@@ -1751,7 +1751,7 @@ try_optimize_cfg (int mode) ...@@ -1751,7 +1751,7 @@ try_optimize_cfg (int mode)
if (mode & (CLEANUP_UPDATE_LIFE | CLEANUP_CROSSJUMP | CLEANUP_THREADING)) if (mode & (CLEANUP_UPDATE_LIFE | CLEANUP_CROSSJUMP | CLEANUP_THREADING))
clear_bb_flags (); clear_bb_flags ();
if (! (* targetm.cannot_modify_jumps_p) ()) if (! targetm.cannot_modify_jumps_p ())
{ {
first_pass = true; first_pass = true;
/* Attempt to merge blocks as made possible by edge removal. If /* Attempt to merge blocks as made possible by edge removal. If
......
...@@ -926,8 +926,8 @@ create_coverage (void) ...@@ -926,8 +926,8 @@ create_coverage (void)
current_function_decl = NULL_TREE; current_function_decl = NULL_TREE;
if (targetm.have_ctors_dtors) if (targetm.have_ctors_dtors)
(* targetm.asm_out.constructor) (XEXP (DECL_RTL (ctor), 0), targetm.asm_out.constructor (XEXP (DECL_RTL (ctor), 0),
DEFAULT_INIT_PRIORITY); DEFAULT_INIT_PRIORITY);
} }
/* Perform file-level initialization. Read in data file, generate name /* Perform file-level initialization. Read in data file, generate name
......
...@@ -707,7 +707,7 @@ dw2_force_const_mem (rtx x) ...@@ -707,7 +707,7 @@ dw2_force_const_mem (rtx x)
if (GET_CODE (x) != SYMBOL_REF) if (GET_CODE (x) != SYMBOL_REF)
abort (); 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); node = splay_tree_lookup (indirect_pool, (splay_tree_key) str);
if (node) if (node)
decl = (tree) node->value; decl = (tree) node->value;
......
...@@ -3263,7 +3263,7 @@ if_convert (int x_life_data_ok) ...@@ -3263,7 +3263,7 @@ if_convert (int x_life_data_ok)
num_true_changes = 0; num_true_changes = 0;
life_data_ok = (x_life_data_ok != 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 (); mark_loop_exit_edges ();
/* Free up basic_block_for_insn so that we don't have to keep it /* Free up basic_block_for_insn so that we don't have to keep it
......
...@@ -694,7 +694,7 @@ update_alignment_for_field (record_layout_info rli, tree field, ...@@ -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. /* Record must have at least as much alignment as any field.
Otherwise, the alignment of the field within the record is Otherwise, the alignment of the field within the record is
meaningless. */ 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 /* Here, the alignment of the underlying type of a bitfield can
affect the alignment of a record; even a zero-sized field affect the alignment of a record; even a zero-sized field
...@@ -914,7 +914,7 @@ place_field (record_layout_info rli, tree field) ...@@ -914,7 +914,7 @@ place_field (record_layout_info rli, tree field)
variable-sized fields, we need not worry about compatibility. */ variable-sized fields, we need not worry about compatibility. */
#ifdef PCC_BITFIELD_TYPE_MATTERS #ifdef PCC_BITFIELD_TYPE_MATTERS
if (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 && TREE_CODE (field) == FIELD_DECL
&& type != error_mark_node && type != error_mark_node
&& DECL_BIT_FIELD (field) && DECL_BIT_FIELD (field)
...@@ -947,7 +947,7 @@ place_field (record_layout_info rli, tree field) ...@@ -947,7 +947,7 @@ place_field (record_layout_info rli, tree field)
#ifdef BITFIELD_NBYTES_LIMITED #ifdef BITFIELD_NBYTES_LIMITED
if (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 && TREE_CODE (field) == FIELD_DECL
&& type != error_mark_node && type != error_mark_node
&& DECL_BIT_FIELD_TYPE (field) && DECL_BIT_FIELD_TYPE (field)
...@@ -998,7 +998,7 @@ place_field (record_layout_info rli, tree 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 Note: for compatibility, we use the type size, not the type alignment
to determine alignment, since that matches the documentation */ 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)) && ((DECL_BIT_FIELD_TYPE (field) && ! DECL_PACKED (field))
|| (rli->prev_field && ! DECL_PACKED (rli->prev_field)))) || (rli->prev_field && ! DECL_PACKED (rli->prev_field))))
{ {
......
...@@ -375,7 +375,7 @@ named_section (tree decl, const char *name, int reloc) ...@@ -375,7 +375,7 @@ named_section (tree decl, const char *name, int reloc)
if (name == NULL) if (name == NULL)
name = TREE_STRING_POINTER (DECL_SECTION_NAME (decl)); 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 /* Sanity check user variables for flag changes. Non-user
section flag changes will abort in named_section_flags. section flag changes will abort in named_section_flags.
...@@ -727,7 +727,7 @@ make_decl_rtl (tree decl, const char *asmspec) ...@@ -727,7 +727,7 @@ make_decl_rtl (tree decl, const char *asmspec)
/* Let the target reassign the RTL if it wants. /* Let the target reassign the RTL if it wants.
This is necessary, for example, when one machine specific This is necessary, for example, when one machine specific
decl attribute overrides another. */ decl attribute overrides another. */
(* targetm.encode_section_info) (decl, DECL_RTL (decl), false); targetm.encode_section_info (decl, DECL_RTL (decl), false);
return; return;
} }
...@@ -827,7 +827,7 @@ make_decl_rtl (tree decl, const char *asmspec) ...@@ -827,7 +827,7 @@ make_decl_rtl (tree decl, const char *asmspec)
such as that it is a function name. such as that it is a function name.
If the name is changed, the macro ASM_OUTPUT_LABELREF If the name is changed, the macro ASM_OUTPUT_LABELREF
will have to know how to strip this information. */ 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. /* Make the rtl for variable VAR be volatile.
...@@ -1013,7 +1013,7 @@ notice_global_symbol (tree decl) ...@@ -1013,7 +1013,7 @@ notice_global_symbol (tree decl)
char *name; char *name;
rtx decl_rtl = DECL_RTL (decl); 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); name = xstrdup (p);
*type = name; *type = name;
...@@ -1657,7 +1657,7 @@ assemble_name (FILE *file, const char *name) ...@@ -1657,7 +1657,7 @@ assemble_name (FILE *file, const char *name)
const char *real_name; const char *real_name;
tree id; tree id;
real_name = (* targetm.strip_name_encoding) (name); real_name = targetm.strip_name_encoding (name);
id = maybe_get_identifier (real_name); id = maybe_get_identifier (real_name);
if (id) if (id)
...@@ -4204,7 +4204,7 @@ maybe_assemble_visibility (tree decl) ...@@ -4204,7 +4204,7 @@ maybe_assemble_visibility (tree decl)
enum symbol_visibility vis = DECL_VISIBILITY (decl); enum symbol_visibility vis = DECL_VISIBILITY (decl);
if (vis != VISIBILITY_DEFAULT) 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 /* Returns 1 if the target configuration supports defining public symbols
...@@ -4754,7 +4754,7 @@ default_unique_section_1 (tree decl, int reloc, int shlib) ...@@ -4754,7 +4754,7 @@ default_unique_section_1 (tree decl, int reloc, int shlib)
plen = strlen (prefix); plen = strlen (prefix);
name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl)); name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl));
name = (* targetm.strip_name_encoding) (name); name = targetm.strip_name_encoding (name);
nlen = strlen (name); nlen = strlen (name);
string = alloca (nlen + plen + 1); string = alloca (nlen + plen + 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment