]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
bb-reorder.c, [...]: Replace calls via (*targetm.foo) () with targetm.foo ().
authorKazu Hirata <kazu@cs.umass.edu>
Sat, 20 Mar 2004 16:50:36 +0000 (16:50 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Sat, 20 Mar 2004 16:50:36 +0000 (16:50 +0000)
* 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
gcc/bb-reorder.c
gcc/bt-load.c
gcc/c-decl.c
gcc/cfgcleanup.c
gcc/coverage.c
gcc/dwarf2asm.c
gcc/ifcvt.c
gcc/stor-layout.c
gcc/varasm.c

index 5fe5290d19ad2ed57097609dbe5dd1a97eac196a..dc9178444dab3ab76467868c02a2e9c450836bc5 100644 (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
index a090e45fe3adb8effc08d05f4eb50a12a5d495cb..74f93203f23c6fdadbd1257f9635cb0a4e361ccb 100644 (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);
index 4aa60667dfd072a948f9b4951746f87d9e79b676..1a81c456e3a72784bbdb1e8fd7da87d7ba1375bc 100644 (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);
index 50ea380e3f27cdf9d9ef289386dbf0dfaab3151c..46f352b3a62637c75dba2b6181bd86bd1432e86d 100644 (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);
     }
index 3cde9b27ab8781bd5a720e064d73332073bbacff..f40d2c1525bff2c49910eaad0c6c419df9c17bff 100644 (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
index 27643fa6c500f912205118ae730fb0c0799dc59b..88d677c78b84d2b8acb55725bbb4573bbb707e48 100644 (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);
 }
 \f
 /* Perform file-level initialization. Read in data file, generate name
index 5b5056cc9eb6304f9311afa1c8638dca6b3e89e3..73aaabe2c165b4ef7e2e8f84cf80d2566dbe9413 100644 (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;
index bb0aab3777e3db1507b5185d7ddb1a16ab4353a4..651f2a691a5d55ca3d196b3793be73bacc1e4b54 100644 (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
index 2b039db4d4bc6a2c48423b69b01cb9ffafb4802d..ab5345cf0d1b9f9e48ea0c28d1fe8dd54f64bd45 100644 (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))))
     {
index 6256421455b3a2fe8d3f07ded7ba0e0d9dab7dfc..a518dd765ae48baa313755a8cd9e7d457fc08129 100644 (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);