[PATCH] Remove redundant code
MURAKAMI Kiyoshi
murakami@za.bb-east.ne.jp
Tue Nov 6 14:50:00 GMT 2007
Hello,
The following patch removes some redundant code.
Booted and tested on i386-unknown-freebsd4.9.
MURAKAMI Kiyoshi
2007-11-06 MURAKAMI Kiyoshi <murakami@za.bb-east.ne.jp>
* c-decl.c (store_parm_decls_from): Remove unused function.
* c-tree.h: Remove prototype for store_parm_decls_from.
* cfg.c (init_flow): Remove redundant code.
* cgraphunit.c (cgraph_expand_all_functions): Remove always
true conditional.
Index: c-decl.c
===================================================================
--- c-decl.c (revision 129717)
+++ c-decl.c (working copy)
@@ -6579,16 +6579,6 @@ store_parm_decls_oldstyle (tree fndecl,
}
}
-/* Store parameter declarations passed in ARG_INFO into the current
- function declaration. */
-
-void
-store_parm_decls_from (struct c_arg_info *arg_info)
-{
- current_function_arg_info = arg_info;
- store_parm_decls ();
-}
-
/* Store the parameter declarations into the current function declaration.
This is called after parsing the parameter declarations, before
digesting the body of the function.
Index: c-tree.h
===================================================================
--- c-tree.h (revision 129717)
+++ c-tree.h (working copy)
@@ -498,7 +498,6 @@ extern tree start_decl (struct c_declara
tree);
extern tree start_struct (enum tree_code, tree);
extern void store_parm_decls (void);
-extern void store_parm_decls_from (struct c_arg_info *);
extern tree xref_tag (enum tree_code, tree);
extern struct c_typespec parser_xref_tag (enum tree_code, tree);
extern int c_expand_decl (tree);
Index: cfg.c
===================================================================
--- cfg.c (revision 129717)
+++ cfg.c (working copy)
@@ -89,8 +89,6 @@ init_flow (void)
ENTRY_BLOCK_PTR->index = ENTRY_BLOCK;
EXIT_BLOCK_PTR = GGC_CNEW (struct basic_block_def);
EXIT_BLOCK_PTR->index = EXIT_BLOCK;
- ENTRY_BLOCK_PTR->next_bb = EXIT_BLOCK_PTR;
- EXIT_BLOCK_PTR->prev_bb = ENTRY_BLOCK_PTR;
}
/* Helper function for remove_edge and clear_edges. Frees edge structure
Index: cgraphunit.c
===================================================================
--- cgraphunit.c (revision 129717)
+++ cgraphunit.c (working copy)
@@ -1116,12 +1116,9 @@ cgraph_expand_all_functions (void)
for (i = new_order_pos - 1; i >= 0; i--)
{
node = order[i];
- if (node->output)
- {
- gcc_assert (node->reachable);
- node->output = 0;
- cgraph_expand_function (node);
- }
+ gcc_assert (node->reachable);
+ node->output = 0;
+ cgraph_expand_function (node);
}
cgraph_process_new_functions ();
More information about the Gcc-patches
mailing list