aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/optimize.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2004-03-31 10:41:26 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2004-03-31 08:41:26 +0000
commit0ba13880d1d6fd88391591b05ac33273ef182e79 (patch)
treeea138007ebd7dd3c31803d1353cd6e3b50098cbf /gcc/cp/optimize.c
parentb150f4f320ed62f4b5d42466948644a8e3ed9d0d (diff)
downloadgcc-0ba13880d1d6fd88391591b05ac33273ef182e79.zip
gcc-0ba13880d1d6fd88391591b05ac33273ef182e79.tar.gz
gcc-0ba13880d1d6fd88391591b05ac33273ef182e79.tar.bz2
tree.h (optimize_function): Kill prototype.
* tree.h (optimize_function): Kill prototype. * optimize.c (dump_function, optimize_function, dump_finction): Kill. * semantics.c (expand_body): Kill. From-SVN: r80246
Diffstat (limited to 'gcc/cp/optimize.c')
-rw-r--r--gcc/cp/optimize.c45
1 files changed, 0 insertions, 45 deletions
diff --git a/gcc/cp/optimize.c b/gcc/cp/optimize.c
index 5ada131..2fd1059 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);
- }
-}