This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Replace calls via (*targetm.foo) () with targetm.foo ().(part 2)


Hi,

Bootstrapped on i686-pc-linux-gnu.  Committed as preapproved.

Kazu Hirata

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 ().

Index: bb-reorder.c
===================================================================
RCS file: /home/kazu/nobackup/gcc-cvs/gcc/gcc/bb-reorder.c,v
retrieving revision 1.65
diff -u -r1.65 bb-reorder.c
--- bb-reorder.c	27 Feb 2004 14:50:41 -0000	1.65
+++ bb-reorder.c	20 Mar 2004 15:11:17 -0000
@@ -1075,7 +1075,7 @@
   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: bt-load.c
===================================================================
RCS file: /home/kazu/nobackup/gcc-cvs/gcc/gcc/bt-load.c,v
retrieving revision 2.17
diff -u -r2.17 bt-load.c
--- bt-load.c	20 Mar 2004 04:52:49 -0000	2.17
+++ bt-load.c	20 Mar 2004 15:13:12 -0000
@@ -1435,7 +1435,7 @@
       /* 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: c-decl.c
===================================================================
RCS file: /home/kazu/nobackup/gcc-cvs/gcc/gcc/c-decl.c,v
retrieving revision 1.486
diff -u -r1.486 c-decl.c
--- c-decl.c	20 Mar 2004 04:52:50 -0000	1.486
+++ c-decl.c	20 Mar 2004 15:17:51 -0000
@@ -6137,8 +6137,8 @@
   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 @@
   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: cfgcleanup.c
===================================================================
RCS file: /home/kazu/nobackup/gcc-cvs/gcc/gcc/cfgcleanup.c,v
retrieving revision 1.110
diff -u -r1.110 cfgcleanup.c
--- cfgcleanup.c	20 Mar 2004 05:21:41 -0000	1.110
+++ cfgcleanup.c	20 Mar 2004 15:11:17 -0000
@@ -1751,7 +1751,7 @@
   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: coverage.c
===================================================================
RCS file: /home/kazu/nobackup/gcc-cvs/gcc/gcc/coverage.c,v
retrieving revision 1.31
diff -u -r1.31 coverage.c
--- coverage.c	14 Mar 2004 22:26:01 -0000	1.31
+++ coverage.c	20 Mar 2004 15:17:22 -0000
@@ -926,8 +926,8 @@
   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
Index: dwarf2asm.c
===================================================================
RCS file: /home/kazu/nobackup/gcc-cvs/gcc/gcc/dwarf2asm.c,v
retrieving revision 1.36
diff -u -r1.36 dwarf2asm.c
--- dwarf2asm.c	16 Sep 2003 18:32:36 -0000	1.36
+++ dwarf2asm.c	20 Mar 2004 15:11:19 -0000
@@ -707,7 +707,7 @@
   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: ifcvt.c
===================================================================
RCS file: /home/kazu/nobackup/gcc-cvs/gcc/gcc/ifcvt.c,v
retrieving revision 1.141
diff -u -r1.141 ifcvt.c
--- ifcvt.c	9 Mar 2004 23:15:12 -0000	1.141
+++ ifcvt.c	20 Mar 2004 15:11:21 -0000
@@ -3263,7 +3263,7 @@
   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: stor-layout.c
===================================================================
RCS file: /home/kazu/nobackup/gcc-cvs/gcc/gcc/stor-layout.c,v
retrieving revision 1.182
diff -u -r1.182 stor-layout.c
--- stor-layout.c	20 Mar 2004 04:52:58 -0000	1.182
+++ stor-layout.c	20 Mar 2004 15:11:23 -0000
@@ -694,7 +694,7 @@
   /* 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 @@
      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 @@
 
 #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 @@
      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: varasm.c
===================================================================
RCS file: /home/kazu/nobackup/gcc-cvs/gcc/gcc/varasm.c,v
retrieving revision 1.416
diff -u -r1.416 varasm.c
--- varasm.c	20 Mar 2004 04:52:58 -0000	1.416
+++ varasm.c	20 Mar 2004 15:11:24 -0000
@@ -375,7 +375,7 @@
   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 @@
       /* 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 @@
      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 @@
       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 @@
   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 @@
   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 @@
   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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]