summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2004-03-31 08:41:26 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2004-03-31 08:41:26 +0000
commitc40bf9e452697458ef9db03bbf8ba1640da82deb (patch)
treeea138007ebd7dd3c31803d1353cd6e3b50098cbf
parent7693853f6bdc3e1d605ded854648d3dca2f72c76 (diff)
downloadgcc-c40bf9e452697458ef9db03bbf8ba1640da82deb.tar.gz
* tree.h (optimize_function): Kill prototype.
* optimize.c (dump_function, optimize_function, dump_finction): Kill. * semantics.c (expand_body): Kill. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80246 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/cp/ChangeLog6
-rw-r--r--gcc/cp/cp-tree.h1
-rw-r--r--gcc/cp/optimize.c45
-rw-r--r--gcc/cp/semantics.c4
4 files changed, 6 insertions, 50 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 6fba6057b3f..dc05a91798d 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,9 @@
+2004-03-31 Jan Hubicka <jh@suse.cz>
+
+ * tree.h (optimize_function): Kill prototype.
+ * optimize.c (dump_function, optimize_function, dump_finction): Kill.
+ * semantics.c (expand_body): Kill.
+
2004-03-30 Mark Mitchell <mark@codesourcery.com>
PR c++/14724
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index 839445cd2b6..fcd1db39cad 100644
--- a/gcc/cp/cp-tree.h
+++ b/gcc/cp/cp-tree.h
@@ -3842,7 +3842,6 @@ extern tree implicitly_declare_fn (special_function_kind, tree, bool);
extern tree skip_artificial_parms_for (tree, tree);
/* In optimize.c */
-extern void optimize_function (tree);
extern bool calls_setjmp_p (tree);
extern bool maybe_clone_body (tree);
diff --git a/gcc/cp/optimize.c b/gcc/cp/optimize.c
index 5ada1312e59..2fd10599151 100644
--- a/gcc/cp/optimize.c
+++ b/gcc/cp/optimize.c
@@ -41,28 +41,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
static tree calls_setjmp_r (tree *, int *, void *);
static void update_cloned_parm (tree, tree);
-static void dump_function (enum tree_dump_index, tree);
-
-/* Optimize the body of FN. */
-
-void
-optimize_function (tree fn)
-{
- dump_function (TDI_original, fn);
-
- if (flag_inline_trees
- /* We do not inline thunks, as (a) the backend tries to optimize
- the call to the thunkee, (b) tree based inlining breaks that
- optimization, (c) virtual functions are rarely inlineable,
- and (d) TARGET_ASM_OUTPUT_MI_THUNK is there to DTRT anyway. */
- && !DECL_THUNK_P (fn))
- {
- optimize_inline_calls (fn);
- dump_function (TDI_inlined, fn);
- }
-
- dump_function (TDI_optimized, fn);
-}
/* Called from calls_setjmp_p via walk_tree. */
@@ -248,26 +226,3 @@ maybe_clone_body (tree fn)
/* We don't need to process the original function any further. */
return 1;
}
-
-/* Dump FUNCTION_DECL FN as tree dump PHASE. */
-
-static void
-dump_function (enum tree_dump_index phase, tree fn)
-{
- FILE *stream;
- int flags;
-
- stream = dump_begin (phase, &flags);
- if (stream)
- {
- fprintf (stream, "\n;; Function %s",
- decl_as_string (fn, TFF_DECL_SPECIFIERS));
- fprintf (stream, " (%s)\n",
- decl_as_string (DECL_ASSEMBLER_NAME (fn), 0));
- fprintf (stream, ";; enabled by -fdump-%s\n", dump_flag_name (phase));
- fprintf (stream, "\n");
-
- dump_node (fn, TDF_SLIM | flags, stream);
- dump_end (phase, stream);
- }
-}
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c
index 78896cce386..3a1fcb48a96 100644
--- a/gcc/cp/semantics.c
+++ b/gcc/cp/semantics.c
@@ -2925,10 +2925,6 @@ expand_body (tree fn)
/* Emit any thunks that should be emitted at the same time as FN. */
emit_associated_thunks (fn);
- timevar_push (TV_INTEGRATION);
- optimize_function (fn);
- timevar_pop (TV_INTEGRATION);
-
tree_rest_of_compilation (fn, function_depth > 1);
current_function_decl = saved_function;