This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[tuples] Silence all build warnings and force -Werror
- From: "Diego Novillo" <dnovillo at google dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: "Aldy Hernandez" <aldyh at redhat dot com>, "Christopher Matthews" <chrismatthews at google dot com>, "Ben Elliston" <bje at au1 dot ibm dot com>
- Date: Thu, 30 Aug 2007 06:18:12 -0400
- Subject: [tuples] Silence all build warnings and force -Werror
This is a very brute force patch to quell all the warnings that we
have in code that used to expect 'tree' and is now being given
'gimple' objects. As we convert code, all these if0s will start
disappearing.
The idea is to bracket disabled code with
#if 0
[ ... existing 'tree' code ... ]
#else
gcc_unreachable ()
#endif
or simply #if 0/#endif to disable groups of functions or whole files.
This in turn will produce link errors, as we will also disable global
functions. So, I added a new file gimple-dummy.c where we can add
dummy versions of the disabled functions that simply call
gcc_unreachable().
The point to all this hackery is to be able to use -Werror while
building stage 1. Since we cannot bootstrap yet, we don't get the
benefit of -Werror. And we were having such a huge number of warnings
that we were missing real warnings in new code (I've got another patch
in this sequence that fixes a couple of those).
So, as you enable more code to use tuples, you will find the spots
that need fixing by getting new warnings or ICEs at runtime at the
gcc_unreachable spots.
2007-08-30 Diego Novillo <dnovillo@google.com>
* tree-vrp.c: Disable.
* tree-loop-linear.c: Disable.
* tree-into-ssa.c: Disable.
* tree-ssa-loop-im.c: Disable.
* tree-complex.c: Disable.
* cgraphbuild.c: Disable most functions.
* tree-ssa-threadupdate.c: Disable.
* tree-ssa-loop-niter.c: Disable.
* tree-pretty-print.c: Disable.
* tree-ssa-loop-unswitch.c: Disable.
* tree-ssa-loop-manip.c: Disable.
* value-prof.c: Disable.
* tree-tailcall.c: Disable.
* tree-ssa-loop-ch.c: Disable.
* tree-scalar-evolution.c: Disable.
* tree-phinodes.c: Disable.
* omp-low.c: Disable.
* tree-ssa-dse.c: Disable.
* ipa-reference.c: Disable.
* tree-ssa-uncprop.c: Disable.
* tree-ssa-sccvn.c: Disable.
* cgraphunit.c (verify_cgraph_node): Disable basic block traversal.
* tree-ssa-copyrename.c: Disable.
* tree-ssa-ccp.c: Disable most functions.
* tree-ssa-loop-ivopts.c: Disable.
* tree-stdarg.c: Disable.
* tree-ssa-math-opts.c: Disable.
* tree-ssa-dom.c: Disable most functions.
* tree-nrv.c: Disable.
* tree-ssa-propagate.c: Disable.
* gimple-dummy.c: New file.
* tree-ssa-alias.c: Disable most functions.
* tree-ssa-sink.c: Disable.
* expr.c (expand_expr_real): Disable call to
lookup_stmt_eh_region.
* tree-ssa-loop-ivcanon.c: Disable.
* predict.c (strip_builtin_expect): Disable.
(tree_predict_by_opcode): Disable.
(return_prediction): Disable.
(apply_return_prediction): Disable.
(tree_bb_level_predictions): Disable.
(tree_estimate_probability): Disable.
(predict_paths_leading_to): Disable.
* gimple-iterator.c (gsi_replace): Mark unused arguments with
ATTRIBUTE_UNUSED.
* tree-ssa-ifcombine.c: Disable.
* matrix-reorg.c: Disable.
* c-decl.c (c_gimple_diagnostics_recursively): Disable call to
diagnose_omp_structured_block_errors.
* tree-eh.c: Disable most functions.
* tree-vectorizer.c: Disable.
* tree-vectorizer.h (nested_in_vect_loop_p): Disable.
* ipa-type-escape.c: Disable.
* tree-if-conv.c: Disable.
* profile.c: Disable.
* tree-data-ref.c: Disable.
* tree-flow-inline.h (bsi_start): Set bsi.gsi to NULL if the
block is invalid.
(bsi_last): Likewise.
(op_iter_next_use): Disable call to PHI_ARG_DEF_PTR.
* tree-vect-analyze.c: Disable.
* gimplify.c (gimple_conditional_context): Disable.
(gimple_push_cleanup): Disable.
(gimplify_omp_parallel): Disable calls to
push_gimplify_context and pop_gimplify_context.
* tree-ssa-phiopt.c: Disable.
* calls.c (emit_call_1): Disable calls to lookup_stmt_eh_region.
(expand_call): Likewise.
(emit_library_call_value_1): Initialize low_to_save and
high_to_save.
* tree-ssa-coalesce.c: Disable.
* tree-dfa.c (make_rename_temp): Disable call to
mark_sym_for_renaming.
(find_new_referenced_vars_1): Likewise.
(collect_dfa_stats): Disable CFG iteration.
(collect_dfa_stats_r): Disable.
(mark_symbols_for_renaming): Disable.
* cfgexpand.c (maybe_dump_rtl_for_tree_stmt): Disable.
(label_rtx_for_bb): Disable.
(expand_gimple_cond_expr): Disable.
(expand_gimple_tailcall): Disable.
(expand_gimple_basic_block): Disable.
* tree-cfgcleanup.c: Disable.
* tree-ssa-pre.c: Disable.
* tree-ssa-live.c: Disable.
* tree-sra.c: Disable most functions..
* tree-predcom.c: Disable.
* tree-mudflap.c: Disable.
* ipa-prop.c: Disable.
* tree-ssa-copy.c (may_propagate_copy): Disable.
(propagate_value): Disable.
(execute_copy_prop): Disable.
(do_copy_prop): Disable.
(store_copy_prop): Disable.
* tree-ssa-forwprop.c: Disable.
* tree-ssa-dce.c: Disable.
* tree-vect-patterns.c: Disable.
* tree-ssa-ter.c: Disable.
* tree-ssa.c: Disable.
* lambda-code.c: Disable.
* tree-ssa-loop-prefetch.c: Disable.
* tree-inline.c: Disable most functions.
* tree-optimize.c (execute_fixup_cfg_pre_ipa): Disable.
(execute_fixup_cfg): Disable.
(execute_cleanup_cfg_post_optimizing): Disable.
(execute_fixup_cfg): Disable.
* tree-vect-transform.c: Disable.
* tree-object-size.c: Disable.
* tree-outof-ssa.c: Disable.
* cfgloop.c (find_subloop_latch_edge_by_profile): Disable.
(find_subloop_latch_edge_by_ivs): Disable.
* tree-profile.c: Disable most functions.
* c-gimplify.c (add_block_to_enclosing): Disable.
* tree-vect-generic.c: Disable.
* tree-flow.h (struct function_ann_d): Disable field
reference_vars_info.
* Makefile.in: Force -Werror even during stage 1.
(OBJS-common): Add gimple-dummy.o.
(GTFILES): Remove tree-scalar-evolution.c,
tree-ssa-propagate.c, tree-vect-generic.c,
tree-ssa-structalias.h, tree-ssa-structalias.c,
ipa-reference.h, omp-low.c, tree-phinodes.c, ipa-reference.c
* tree-ssa-structalias.c: Disable.
* tree-cfg.c: Disable most functions.
* passes.c (finish_optimization_passes): Disable call to
end_branch_prob.
(init_optimization_passes): Disable the registration of
several passes.
(execute_function_todo): Disable calls to update_ssa and
need_ssa_update_p.
* tree-ssa-reassoc.c: Disable.
* tree-ssanames.c: Disable.
* tree-ssa-threadedge.c: Disable.
* tree-ssa-operands.c: Disable.
Index: tree-vrp.c
===================================================================
--- tree-vrp.c (revision 127911)
+++ tree-vrp.c (working copy)
@@ -38,6 +38,8 @@ along with GCC; see the file COPYING3.
#include "tree-ssa-propagate.h"
#include "tree-chrec.h"
+/* FIXME tuples. */
+#if 0
/* Set of SSA names found during the dominator traversal of a
sub-graph in find_assert_locations. */
static sbitmap found_in_subgraph;
@@ -6145,3 +6147,4 @@ struct tree_opt_pass pass_vrp =
0 /* letter */
,0 /* works_with_tuples_p */
};
+#endif
Index: tree-loop-linear.c
===================================================================
--- tree-loop-linear.c (revision 127911)
+++ tree-loop-linear.c (working copy)
@@ -88,14 +88,16 @@ along with GCC; see the file COPYING3.
*/
static void
-gather_interchange_stats (VEC (ddr_p, heap) *dependence_relations,
- VEC (data_reference_p, heap) *datarefs,
- struct loop *loop,
- struct loop *first_loop,
- unsigned int *dependence_steps,
- unsigned int *nb_deps_not_carried_by_loop,
- double_int *access_strides)
+gather_interchange_stats (VEC (ddr_p, heap) *dependence_relations ATTRIBUTE_UNUSED,
+ VEC (data_reference_p, heap) *datarefs ATTRIBUTE_UNUSED,
+ struct loop *loop ATTRIBUTE_UNUSED,
+ struct loop *first_loop ATTRIBUTE_UNUSED,
+ unsigned int *dependence_steps ATTRIBUTE_UNUSED,
+ unsigned int *nb_deps_not_carried_by_loop ATTRIBUTE_UNUSED,
+ double_int *access_strides ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
unsigned int i, j;
struct data_dependence_relation *ddr;
struct data_reference *dr;
@@ -161,6 +163,9 @@ gather_interchange_stats (VEC (ddr_p, he
(*access_strides) = double_int_add (*access_strides, dstride);
}
}
+#else
+ gcc_unreachable ();
+#endif
}
/* Attempt to apply interchange transformations to TRANS to maximize the
Index: tree-into-ssa.c
===================================================================
--- tree-into-ssa.c (revision 127911)
+++ tree-into-ssa.c (working copy)
@@ -49,6 +49,9 @@ along with GCC; see the file COPYING3.
#include "params.h"
#include "vecprim.h"
+/* FIXME tuples. */
+#if 0
+
/* This file builds the SSA form for a function as described in:
R. Cytron, J. Ferrante, B. Rosen, M. Wegman, and K. Zadeck. Efficiently
Computing Static Single Assignment Form and the Control Dependence
@@ -102,6 +105,8 @@ static htab_t def_blocks;
associated with the current block. */
static VEC(tree,heap) *block_defs_stack;
+#endif
+
/* Set of existing SSA names being replaced by update_ssa. */
static sbitmap old_ssa_names;
@@ -110,10 +115,13 @@ static sbitmap old_ssa_names;
the operations done on them are presence tests. */
static sbitmap new_ssa_names;
+
/* Symbols whose SSA form needs to be updated or created for the first
time. */
static bitmap syms_to_rename;
+/* FIXME tuples. */
+#if 0
/* Subset of SYMS_TO_RENAME. Contains all the GIMPLE register symbols
that have been marked for renaming. */
static bitmap regs_to_rename;
@@ -121,12 +129,15 @@ static bitmap regs_to_rename;
/* Subset of SYMS_TO_RENAME. Contains all the memory symbols
that have been marked for renaming. */
static bitmap mem_syms_to_rename;
+#endif
/* Set of SSA names that have been marked to be released after they
were registered in the replacement table. They will be finally
released after we finish updating the SSA web. */
static bitmap names_to_release;
+/* FIXME tuples. */
+#if 0
/* For each block, the PHI nodes that need to be rewritten are stored into
these vectors. */
typedef VEC(tree, heap) *tree_vec;
@@ -152,6 +163,8 @@ struct repl_map_d
bitmap set;
};
+#endif
+
/* NEW -> OLD_SET replacement table. If we are replacing several
existing SSA names O_1, O_2, ..., O_j with a new name N_i,
then REPL_TBL[N_i] = { O_1, O_2, ..., O_j }. */
@@ -164,6 +177,8 @@ static bool need_to_initialize_update_ss
/* true if update_ssa needs to update virtual operands. */
static bool need_to_update_vops_p = false;
+/* FIXME tuples. */
+#if 0
/* Statistics kept by update_ssa to use in the virtual mapping
heuristic. If the number of virtual mappings is beyond certain
threshold, the updater will switch from using the mappings into
@@ -360,6 +375,7 @@ set_current_def (tree var, tree def)
else
var_ann (var)->current_def = def;
}
+#endif
/* Compute global livein information given the set of blockx where
@@ -371,8 +387,10 @@ set_current_def (tree var, tree def)
for LIVEIN). */
void
-compute_global_livein (bitmap livein, bitmap def_blocks)
+compute_global_livein (bitmap livein ATTRIBUTE_UNUSED, bitmap def_blocks ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
basic_block bb, *worklist, *tos;
unsigned i;
bitmap_iterator bi;
@@ -410,9 +428,14 @@ compute_global_livein (bitmap livein, bi
}
free (worklist);
+#else
+ gcc_unreachable ();
+#endif
}
+/* FIXME tuples. */
+#if 0
/* Cleans up the REWRITE_THIS_STMT and REGISTER_DEFS_IN_THIS_STMT flags for
all statements in basic block BB. */
@@ -1455,6 +1478,7 @@ rewrite_finalize_block (struct dom_walk_
}
}
+#endif
/* Dump bitmap SET (assumed to contain VAR_DECLs) to FILE. */
@@ -1489,6 +1513,8 @@ debug_decl_set (bitmap set)
dump_decl_set (stderr, set);
}
+/* FIXME tuples */
+#if 0
/* Dump the renaming stack (block_defs_stack) to FILE. Traverse the
stack up to a maximum of N levels. If N is -1, the whole stack is
@@ -2227,7 +2253,7 @@ fini_ssa_renamer (void)
cfun->gimple_df->in_ssa_p = true;
}
-
+#endif
/* Main entry point into the SSA builder. The renaming process
proceeds in four main phases:
@@ -2249,6 +2275,8 @@ fini_ssa_renamer (void)
static unsigned int
rewrite_into_ssa (void)
{
+ /* FIXME tuples */
+#if 0
bitmap *dfs;
basic_block bb;
sbitmap interesting_blocks;
@@ -2295,6 +2323,9 @@ rewrite_into_ssa (void)
timevar_pop (TV_TREE_SSA_OTHER);
return 0;
+#else
+ gcc_unreachable ();
+#endif
}
@@ -2319,6 +2350,8 @@ struct tree_opt_pass pass_build_ssa =
};
+/* FIXME tuples */
+#if 0
/* Mark the definition of VAR at STMT and BB as interesting for the
renamer. BLOCKS is the set of blocks that need updating. */
@@ -2728,6 +2761,7 @@ delete_update_ssa (void)
BITMAP_FREE (blocks_to_update);
}
+#endif
/* Create a new name for OLD_NAME in statement STMT and replace the
operand pointed to by DEF_P with the newly created name. Return
@@ -2735,8 +2769,10 @@ delete_update_ssa (void)
update_ssa's tables. */
tree
-create_new_def_for (tree old_name, tree stmt, def_operand_p def)
+create_new_def_for (tree old_name ATTRIBUTE_UNUSED, tree stmt ATTRIBUTE_UNUSED, def_operand_p def ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
tree new_name = duplicate_ssa_name (old_name, stmt);
SET_DEF (def, new_name);
@@ -2764,6 +2800,9 @@ create_new_def_for (tree old_name, tree
set_current_def (old_name, new_name);
return new_name;
+#else
+ gcc_unreachable ();
+#endif
}
@@ -2772,12 +2811,17 @@ create_new_def_for (tree old_name, tree
update_ssa. */
void
-register_new_name_mapping (tree new, tree old)
+register_new_name_mapping (tree new ATTRIBUTE_UNUSED, tree old ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
if (need_to_initialize_update_ssa_p)
init_update_ssa ();
add_new_name_mapping (new, old);
+#else
+ gcc_unreachable ();
+#endif
}
@@ -2786,8 +2830,13 @@ register_new_name_mapping (tree new, tre
void
mark_sym_for_renaming (tree sym)
{
+ /* FIXME tuples. */
+#if 0
if (need_to_initialize_update_ssa_p)
init_update_ssa ();
+#else
+ gcc_unreachable ();
+#endif
/* FIXME. Why do we need this? */
{
@@ -2822,8 +2871,13 @@ mark_set_for_renaming (bitmap set)
if (set == NULL || bitmap_empty_p (set))
return;
+ /* FIXME tuples. */
+#if 0
if (need_to_initialize_update_ssa_p)
init_update_ssa ();
+#else
+ gcc_unreachable ();
+#endif
EXECUTE_IF_SET_IN_BITMAP (set, 0, i, bi)
mark_sym_for_renaming (referenced_var (i));
@@ -2849,14 +2903,19 @@ name_mappings_registered_p (void)
/* Return true if name N has been registered in the replacement table. */
bool
-name_registered_for_update_p (tree n)
+name_registered_for_update_p (tree n ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
if (!need_ssa_update_p ())
return false;
return is_new_name (n)
|| is_old_name (n)
|| symbol_marked_for_renaming (SSA_NAME_VAR (n));
+#else
+ gcc_unreachable ();
+#endif
}
@@ -2890,6 +2949,8 @@ release_ssa_name_after_update_ssa (tree
bitmap_set_bit (names_to_release, SSA_NAME_VERSION (name));
}
+/* FIXME tuples. */
+#if 0
/* Insert new PHI nodes to replace VAR. DFS contains dominance
frontier information. BLOCKS is the set of blocks to be updated.
@@ -3066,6 +3127,7 @@ switch_virtuals_to_full_rewrite (void)
mark_set_for_renaming (update_ssa_stats.virtual_symbols);
}
+#endif
/* Given a set of newly created SSA names (NEW_SSA_NAMES) and a set of
@@ -3133,8 +3195,10 @@ switch_virtuals_to_full_rewrite (void)
TODO_update_ssa*. */
void
-update_ssa (unsigned update_flags)
+update_ssa (unsigned update_flags ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
basic_block bb, start_bb;
bitmap_iterator bi;
unsigned i = 0;
@@ -3362,4 +3426,7 @@ done:
delete_update_ssa ();
timevar_pop (TV_TREE_SSA_INCREMENTAL);
+#else
+ gcc_unreachable ();
+#endif
}
Index: tree-ssa-loop-im.c
===================================================================
--- tree-ssa-loop-im.c (revision 127911)
+++ tree-ssa-loop-im.c (working copy)
@@ -39,6 +39,8 @@ along with GCC; see the file COPYING3.
#include "real.h"
#include "hashtab.h"
+/* FIXME tuples. */
+#if 0
/* TODO: Support for predicated code motion. I.e.
while (1)
@@ -1641,3 +1643,4 @@ tree_ssa_lim (void)
tree_ssa_lim_finalize ();
}
+#endif
Index: tree-complex.c
===================================================================
--- tree-complex.c (revision 127911)
+++ tree-complex.c (working copy)
@@ -17,6 +17,7 @@ You should have received a copy of the G
along with GCC; see the file COPYING3. If not see
<http://www.gnu.org/licenses/>. */
+
#include "config.h"
#include "system.h"
#include "coretypes.h"
@@ -33,6 +34,8 @@ along with GCC; see the file COPYING3.
#include "diagnostic.h"
+/* FIXME tuples. */
+#if 0
/* For each complex ssa name, a lattice value. We're interested in finding
out whether a complex number is degenerate in some way, having only real
or only complex parts. */
@@ -1475,12 +1478,15 @@ expand_complex_operations_1 (block_stmt_
}
}
+#endif
/* Entry point for complex operation lowering during optimization. */
static unsigned int
tree_lower_complex (void)
{
+ /* FIXME tuples */
+#if 0
int old_last_basic_block;
block_stmt_iterator bsi;
basic_block bb;
@@ -1521,6 +1527,9 @@ tree_lower_complex (void)
VEC_free (tree, heap, complex_ssa_name_components);
VEC_free (complex_lattice_t, heap, complex_lattice_values);
return 0;
+#else
+ gcc_unreachable ();
+#endif
}
struct tree_opt_pass pass_lower_complex =
@@ -1550,6 +1559,8 @@ struct tree_opt_pass pass_lower_complex
static unsigned int
tree_lower_complex_O0 (void)
{
+ /* FIXME tuples */
+#if 0
int old_last_basic_block = last_basic_block;
block_stmt_iterator bsi;
basic_block bb;
@@ -1562,6 +1573,9 @@ tree_lower_complex_O0 (void)
expand_complex_operations_1 (&bsi);
}
return 0;
+#else
+ gcc_unreachable ();
+#endif
}
static bool
Index: cgraphbuild.c
===================================================================
--- cgraphbuild.c (revision 127911)
+++ cgraphbuild.c (working copy)
@@ -84,6 +84,8 @@ record_reference (tree *tp, int *walk_su
NODE. Those get either nullified or usually overwritten by more precise
reason later. */
+/* FIXME tuples. */
+#if 0
static void
initialize_inline_failed (struct cgraph_node *node)
{
@@ -104,6 +106,7 @@ initialize_inline_failed (struct cgraph_
e->inline_failed = N_("function not considered for inlining");
}
}
+#endif
/* Create cgraph edges for function calls.
Also look for functions and variables having addresses taken. */
@@ -111,6 +114,8 @@ initialize_inline_failed (struct cgraph_
static unsigned int
build_cgraph_edges (void)
{
+ /* FIXME tuples. */
+#if 0
basic_block bb;
struct cgraph_node *node = cgraph_node (current_function_decl);
struct pointer_set_t *visited_nodes = pointer_set_create ();
@@ -169,6 +174,9 @@ build_cgraph_edges (void)
pointer_set_destroy (visited_nodes);
initialize_inline_failed (node);
return 0;
+#else
+ gcc_unreachable ();
+#endif
}
struct tree_opt_pass pass_build_cgraph_edges =
@@ -206,6 +214,8 @@ record_references_in_initializer (tree d
static unsigned int
rebuild_cgraph_edges (void)
{
+ /* FIXME tuples. */
+#if 0
basic_block bb;
struct cgraph_node *node = cgraph_node (current_function_decl);
block_stmt_iterator bsi;
@@ -238,6 +248,9 @@ rebuild_cgraph_edges (void)
initialize_inline_failed (node);
gcc_assert (!node->global.inlined_to);
return 0;
+#else
+ gcc_unreachable ();
+#endif
}
struct tree_opt_pass pass_rebuild_cgraph_edges =
Index: tree-ssa-threadupdate.c
===================================================================
--- tree-ssa-threadupdate.c (revision 127911)
+++ tree-ssa-threadupdate.c (working copy)
@@ -36,6 +36,8 @@ along with GCC; see the file COPYING3.
#include "tree-pass.h"
#include "cfgloop.h"
+/* FIXME tuples. */
+#if 0
/* Given a block B, update the CFG and SSA graph to reflect redirecting
one or more in-edges to B to instead reach the destination of an
out-edge from B while preserving any side effects in B.
@@ -1099,3 +1101,4 @@ register_jump_thread (edge e, edge e2)
VEC_safe_push (edge, heap, threaded_edges, e);
VEC_safe_push (edge, heap, threaded_edges, e2);
}
+#endif
Index: tree-ssa-loop-niter.c
===================================================================
--- tree-ssa-loop-niter.c (revision 127911)
+++ tree-ssa-loop-niter.c (working copy)
@@ -43,6 +43,8 @@ along with GCC; see the file COPYING3.
#include "tree-inline.h"
#include "gmp.h"
+/* FIXME tuples. */
+#if 0
#define SWAP(X, Y) do { affine_iv *tmp = (X); (X) = (Y); (Y) = tmp; } while (0)
/* The maximum number of dominator BBs we search for conditions
@@ -3075,3 +3077,4 @@ substitute_in_loop_info (struct loop *lo
{
loop->nb_iterations = simplify_replace_tree (loop->nb_iterations, name, val);
}
+#endif
Index: tree-pretty-print.c
===================================================================
--- tree-pretty-print.c (revision 127911)
+++ tree-pretty-print.c (working copy)
@@ -410,6 +410,8 @@ dump_omp_clauses (pretty_printer *buffer
/* Dump the set of decls SYMS. BUFFER, SPC and FLAGS are as in
dump_generic_node. */
+/* FIXME tuples. */
+#if 0
static void
dump_symbols (pretty_printer *buffer, bitmap syms, int flags)
{
@@ -432,6 +434,7 @@ dump_symbols (pretty_printer *buffer, bi
pp_string (buffer, "}");
}
}
+#endif
/* Dump the node NODE on the pretty_printer BUFFER, SPC spaces of indent.
@@ -1714,8 +1717,13 @@ dump_generic_node (pretty_printer *buffe
}
pp_string (buffer, ">");
+ /* FIXME tuples. */
+#if 0
if (stmt_references_memory_p (node) && (flags & TDF_MEMSYMS))
dump_symbols (buffer, gimple_stored_syms (node), flags);
+#else
+ gcc_unreachable ();
+#endif
}
break;
@@ -2795,8 +2803,10 @@ newline_and_indent (pretty_printer *buff
static void
-dump_vops (pretty_printer *buffer, tree stmt, int spc, int flags)
+dump_vops (pretty_printer *buffer ATTRIBUTE_UNUSED, tree stmt ATTRIBUTE_UNUSED, int spc ATTRIBUTE_UNUSED, int flags ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
struct voptype_d *vdefs;
struct voptype_d *vuses;
int i, n;
@@ -2873,6 +2883,9 @@ dump_vops (pretty_printer *buffer, tree
newline_and_indent (buffer, spc);
vdefs = vdefs->next;
}
+#else
+ gcc_unreachable ();
+#endif
}
@@ -2890,6 +2903,8 @@ dump_generic_bb (FILE *file, basic_block
/* Dumps header of basic block BB to buffer BUFFER indented by INDENT
spaces and details described by flags. */
+/* FIXME tuples. */
+#if 0
static void
dump_bb_header (pretty_printer *buffer, basic_block bb, int indent, int flags)
{
@@ -2957,10 +2972,13 @@ dump_bb_header (pretty_printer *buffer,
pp_write_text_to_stream (buffer);
check_bb_profile (bb, buffer->buffer->stream);
}
+#endif
/* Dumps end of basic block BB to buffer BUFFER indented by INDENT
spaces. */
+/* FIXME tuples. */
+#if 0
static void
dump_bb_end (pretty_printer *buffer, basic_block bb, int indent, int flags)
{
@@ -2983,10 +3001,13 @@ dump_bb_end (pretty_printer *buffer, bas
dump_edge_info (buffer->buffer->stream, e, 1);
pp_newline (buffer);
}
+#endif
/* Dump PHI nodes of basic block BB to BUFFER with details described
by FLAGS and indented by INDENT spaces. */
+ /* FIXME tuples. */
+#if 0
static void
dump_phi_nodes (pretty_printer *buffer, basic_block bb, int indent, int flags)
{
@@ -3005,11 +3026,14 @@ dump_phi_nodes (pretty_printer *buffer,
}
}
}
+#endif
/* Dump jump to basic block BB that is represented implicitly in the cfg
to BUFFER. */
+ /* FIXME tuples. */
+#if 0
static void
pp_cfg_jump (pretty_printer *buffer, basic_block bb)
{
@@ -3028,10 +3052,13 @@ pp_cfg_jump (pretty_printer *buffer, bas
}
pp_semicolon (buffer);
}
+#endif
/* Dump edges represented implicitly in basic block BB to BUFFER, indented
by INDENT spaces, with details given by FLAGS. */
+ /* FIXME tuples. */
+#if 0
static void
dump_implicit_edges (pretty_printer *buffer, basic_block bb, int indent,
int flags)
@@ -3099,14 +3126,17 @@ dump_implicit_edges (pretty_printer *buf
pp_newline (buffer);
}
}
+#endif
/* Dumps basic block BB to buffer BUFFER with details described by FLAGS and
indented by INDENT spaces. */
static void
-dump_generic_bb_buff (pretty_printer *buffer, basic_block bb,
- int indent, int flags)
+dump_generic_bb_buff (pretty_printer *buffer ATTRIBUTE_UNUSED, basic_block bb ATTRIBUTE_UNUSED,
+ int indent ATTRIBUTE_UNUSED, int flags ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
block_stmt_iterator bsi;
tree stmt;
int label_indent = indent - 2;
@@ -3136,4 +3166,7 @@ dump_generic_bb_buff (pretty_printer *bu
if (flags & TDF_BLOCKS)
dump_bb_end (buffer, bb, indent, flags);
+#else
+ gcc_unreachable ();
+#endif
}
Index: tree-ssa-loop-unswitch.c
===================================================================
--- tree-ssa-loop-unswitch.c (revision 127911)
+++ tree-ssa-loop-unswitch.c (working copy)
@@ -37,6 +37,8 @@ along with GCC; see the file COPYING3.
#include "tree-pass.h"
#include "tree-inline.h"
+/* FIXME tuples. */
+#if 0
/* This file implements the loop unswitching, i.e. transformation of loops like
while (A)
@@ -283,3 +285,4 @@ tree_unswitch_loop (struct loop *loop,
NULL, prob_true, prob_true,
REG_BR_PROB_BASE - prob_true, false);
}
+#endif
Index: tree-ssa-loop-manip.c
===================================================================
--- tree-ssa-loop-manip.c (revision 127911)
+++ tree-ssa-loop-manip.c (working copy)
@@ -38,6 +38,8 @@ along with GCC; see the file COPYING3.
#include "params.h"
#include "tree-inline.h"
+/* FIXME tuples. */
+#if 0
/* Creates an induction variable with value BASE + STEP * iteration in LOOP.
It is expected that neither BASE nor STEP are shared with other expressions
(unless the sharing rules allow this). Use VAR as a base var_decl for it
@@ -1068,3 +1070,4 @@ tree_unroll_loop (struct loop *loop, uns
tree_transform_and_unroll_loop (loop, factor, exit, desc,
NULL, NULL);
}
+#endif
Index: value-prof.c
===================================================================
--- value-prof.c (revision 127911)
+++ value-prof.c (working copy)
@@ -45,6 +45,8 @@ along with GCC; see the file COPYING3.
#include "toplev.h"
#include "pointer-set.h"
+/* FIXME tuples. */
+#if 0
static struct value_prof_hooks *value_prof_hooks;
/* In this file value profile based optimizations are placed. Currently the
@@ -1707,3 +1709,4 @@ value_profile_transformations (void)
}
+#endif
Index: tree-tailcall.c
===================================================================
--- tree-tailcall.c (revision 127911)
+++ tree-tailcall.c (working copy)
@@ -36,6 +36,8 @@ along with GCC; see the file COPYING3.
#include "langhooks.h"
#include "dbgcnt.h"
+/* FIXME tuples. */
+#if 0
/* The file implements the tail recursion elimination. It is also used to
analyze the tail calls in general, passing the results to the rtl level
where they are used for sibcall optimization.
@@ -1051,3 +1053,4 @@ struct tree_opt_pass pass_tail_calls =
0 /* letter */
,0 /* works_with_tuples_p */
};
+#endif
Index: tree-ssa-loop-ch.c
===================================================================
--- tree-ssa-loop-ch.c (revision 127911)
+++ tree-ssa-loop-ch.c (working copy)
@@ -37,6 +37,8 @@ along with GCC; see the file COPYING3.
#include "flags.h"
#include "tree-inline.h"
+/* FIXME tuples. */
+#if 0
/* Duplicates headers of loops if they are small enough, so that the statements
in the loop body are always executed when the loop is entered. This
increases effectiveness of code motion optimizations, and reduces the need
@@ -260,3 +262,4 @@ struct tree_opt_pass pass_ch =
0 /* letter */
,0 /* works_with_tuples_p */
};
+#endif
Index: tree-scalar-evolution.c
===================================================================
--- tree-scalar-evolution.c (revision 127911)
+++ tree-scalar-evolution.c (working copy)
@@ -252,6 +252,8 @@ along with GCC; see the file COPYING3.
#include "flags.h"
#include "params.h"
+/* FIXME tuples. */
+#if 0
static tree analyze_scalar_evolution_1 (struct loop *, tree, tree);
/* The cached information about a ssa name VAR, claiming that inside LOOP,
@@ -2726,6 +2728,8 @@ scev_finalize (void)
unsigned int
scev_const_prop (void)
{
+ /* FIXME tuples. */
+#if 0
basic_block bb;
tree name, phi, next_phi, type, ev;
struct loop *loop, *ex_loop;
@@ -2859,6 +2863,10 @@ scev_const_prop (void)
}
}
return 0;
+#else
+ gcc_unreachable ();
+#endif
}
#include "gt-tree-scalar-evolution.h"
+#endif
Index: tree-phinodes.c
===================================================================
--- tree-phinodes.c (revision 127911)
+++ tree-phinodes.c (working copy)
@@ -29,6 +29,8 @@ along with GCC; see the file COPYING3.
#include "tree-flow.h"
#include "toplev.h"
+/* FIXME tuples. */
+#if 0
/* Rewriting a function into SSA form can create a huge number of PHIs
many of which may be thrown away shortly after their creation if jumps
were threaded through PHI nodes.
@@ -503,3 +505,4 @@ phi_reverse (tree phi)
}
#include "gt-tree-phinodes.h"
+#endif
Index: omp-low.c
===================================================================
--- omp-low.c (revision 127911)
+++ omp-low.c (working copy)
@@ -43,6 +43,9 @@ along with GCC; see the file COPYING3.
#include "splay-tree.h"
+/* FIXME tuples. */
+#if 0
+
/* Lowering of OpenMP parallel and workshare constructs proceeds in two
phases. The first phase scans the function looking for OMP statements
and then for variables that must be replaced to satisfy data sharing
@@ -1334,15 +1337,14 @@ check_omp_nesting_restrictions (tree t,
/* Callback for walk_stmts used to scan for OpenMP directives at TP. */
-static tree
-scan_omp_1 (tree *tp, int *walk_subtrees, void *data)
-{
/* FIXME tuples. This routine needs to be split up into two. One
dealing with statements, to be used as a CALLBACK_STMT and the
other dealing with operands, to be used as a CALLBACK_OP. Since
statements and operands are now of different types, we need the
two different callbacks. */
-#if 0
+static tree
+scan_omp_1 (tree *tp, int *walk_subtrees, void *data)
+{
struct walk_stmt_info *wi = data;
omp_context *ctx = wi->info;
tree t = *tp;
@@ -1410,7 +1412,6 @@ scan_omp_1 (tree *tp, int *walk_subtrees
}
return NULL_TREE;
-#endif
}
@@ -1418,15 +1419,14 @@ scan_omp_1 (tree *tp, int *walk_subtrees
information about the OpenMP directives and clauses found during
the scan. */
+ /* FIXME tuples. Convert to use the new walk_gimple_seq/walk_gimple_stmt
+ routines. */
static void
scan_omp (tree *stmt_p, omp_context *ctx)
{
location_t saved_location;
struct walk_stmt_info wi;
- /* FIXME tuples. Convert to use the new walk_gimple_seq/walk_gimple_stmt
- routines. */
-#if 0
memset (&wi, 0, sizeof (wi));
wi.callback = scan_omp_1;
wi.info = ctx;
@@ -1436,7 +1436,6 @@ scan_omp (tree *stmt_p, omp_context *ctx
saved_location = input_location;
walk_stmts (&wi, stmt_p);
input_location = saved_location;
-#endif
}
/* Re-gimplification and code generation routines. */
@@ -1615,6 +1614,7 @@ omp_reduction_init (tree clause, tree ty
private variables. Initialization statements go in ILIST, while calls
to destructors go in DLIST. */
+/* FIXME tuples. */
static void
lower_rec_input_clauses (tree clauses, tree *ilist, tree *dlist,
omp_context *ctx)
@@ -1781,10 +1781,7 @@ lower_rec_input_clauses (tree clauses, t
if (x)
{
dtor = x;
-#if 0
- /* FIXME tuples */
gimplify_stmt (&dtor);
-#endif
tsi_link_before (&diter, dtor, TSI_SAME_STMT);
}
break;
@@ -3492,13 +3489,15 @@ build_omp_regions (void)
calculate_dominance_info (CDI_DOMINATORS);
build_omp_regions_1 (ENTRY_BLOCK_PTR, NULL);
}
-
+#endif
/* Main entry point for expanding OMP-GIMPLE into runtime calls. */
static unsigned int
execute_expand_omp (void)
{
+/* FIXME tuples */
+#if 0
build_omp_regions ();
if (!root_omp_region)
@@ -3522,6 +3521,9 @@ execute_expand_omp (void)
free_omp_regions ();
return 0;
+#else
+ gcc_unreachable ();
+#endif
}
static bool
@@ -3547,6 +3549,9 @@ struct tree_opt_pass pass_expand_omp =
0 /* letter */
,0 /* works_with_tuples_p */
};
+
+/* FIXME tuples. */
+#if 0
/* Routines to lower OpenMP directives into OMP-GIMPLE. */
@@ -4092,7 +4097,6 @@ check_combined_parallel (tree *tp, int *
other dealing with operands, to be used as a CALLBACK_OP. Since
statements and operands are now of different types, we need the
two different callbacks. */
-#if 0
struct walk_stmt_info *wi = data;
int *info = wi->info;
@@ -4108,7 +4112,6 @@ check_combined_parallel (tree *tp, int *
break;
}
return NULL;
-#endif
}
/* Lower the OpenMP parallel directive in *STMT_P. CTX holds context
@@ -4134,13 +4137,11 @@ lower_omp_parallel (tree *stmt_p, omp_co
/* FIXME tuples. This needs to be changed to use the new
walk_gimple_stmt routine. */
-#if 0
memset (&wi, 0, sizeof (wi));
wi.callback = check_combined_parallel;
wi.info = &ws_num;
wi.val_only = true;
walk_stmts (&wi, &par_bind);
-#endif
if (ws_num == 1)
OMP_PARALLEL_COMBINED (stmt) = 1;
}
@@ -4224,10 +4225,8 @@ lower_regimplify (tree *tp, struct walk_
/* FIXME tuples. Need a gimple_seq_insert_before. WI->TSI must be
a GS_SEQ. */
-#if 0
if (!gimple_seq_empty_p (&pre))
tsi_link_before (&wi->tsi, pre, TSI_SAME_STMT);
-#endif
}
/* Copy EXP into a temporary. Insert the initialization statement
@@ -4274,7 +4273,6 @@ lower_omp_1 (tree *tp, int *walk_subtree
other dealing with operands, to be used as a CALLBACK_OP. Since
statements and operands are now of different types, we need the
two different callbacks. */
-#if 0
struct walk_stmt_info *wi = data;
omp_context *ctx = wi->info;
tree t = *tp;
@@ -4378,14 +4376,12 @@ lower_omp_1 (tree *tp, int *walk_subtree
}
return NULL_TREE;
-#endif
}
static void
lower_omp (tree *stmt_p, omp_context *ctx)
{
/* FIXME tuples. This needs to use the new walk_gimple_seq routine. */
-#if 0
struct walk_stmt_info wi;
memset (&wi, 0, sizeof (wi));
@@ -4395,14 +4391,16 @@ lower_omp (tree *stmt_p, omp_context *ct
wi.want_locations = true;
walk_stmts (&wi, stmt_p);
-#endif
}
+#endif
/* Main entry point. */
static unsigned int
execute_lower_omp (void)
{
+ /* FIXME tuples */
+#if 0
all_contexts = splay_tree_new (splay_tree_compare_pointers, 0,
delete_omp_context);
@@ -4418,6 +4416,9 @@ execute_lower_omp (void)
all_contexts = NULL;
}
return 0;
+#else
+ gcc_unreachable ();
+#endif
}
static bool
@@ -4443,6 +4444,8 @@ struct tree_opt_pass pass_lower_omp =
0 /* letter */
,0 /* works_with_tuples_p */
};
+/* FIXME tuples */
+#if 0
/* The following is a utility to diagnose OpenMP structured block violations.
It is not part of the "omplower" pass, as that's invoked too late. It
@@ -4499,7 +4502,6 @@ diagnose_sb_1 (tree *tp, int *walk_subtr
other dealing with operands, to be used as a CALLBACK_OP. Since
statements and operands are now of different types, we need the
two different callbacks. */
-#if 0
struct walk_stmt_info *wi = data;
tree context = (tree) wi->info;
tree inner_context;
@@ -4546,7 +4548,6 @@ diagnose_sb_1 (tree *tp, int *walk_subtr
}
return NULL_TREE;
-#endif
}
/* Pass 2: Check each branch and see if its context differs from that of
@@ -4560,7 +4561,6 @@ diagnose_sb_2 (tree *tp, int *walk_subtr
other dealing with operands, to be used as a CALLBACK_OP. Since
statements and operands are now of different types, we need the
two different callbacks. */
-#if 0
struct walk_stmt_info *wi = data;
tree context = (tree) wi->info;
splay_tree_node n;
@@ -4628,7 +4628,6 @@ diagnose_sb_2 (tree *tp, int *walk_subtr
}
return NULL_TREE;
-#endif
}
void
@@ -4643,7 +4642,6 @@ diagnose_omp_structured_block_errors (tr
/* FIXME tuples. Convert to use the new walk_gimple_seq/walk_gimple_stmt
routines. */
-#if 0
memset (&wi, 0, sizeof (wi));
wi.callback = diagnose_sb_1;
walk_stmts (&wi, &DECL_SAVED_TREE (fndecl));
@@ -4653,7 +4651,6 @@ diagnose_omp_structured_block_errors (tr
wi.want_locations = true;
wi.want_return_expr = true;
walk_stmts (&wi, &DECL_SAVED_TREE (fndecl));
-#endif
splay_tree_delete (all_labels);
all_labels = NULL;
@@ -4662,3 +4659,4 @@ diagnose_omp_structured_block_errors (tr
}
#include "gt-omp-low.h"
+#endif
Index: tree-ssa-dse.c
===================================================================
--- tree-ssa-dse.c (revision 127911)
+++ tree-ssa-dse.c (working copy)
@@ -36,6 +36,8 @@ along with GCC; see the file COPYING3.
#include "hashtab.h"
#include "sbitmap.h"
+/* FIXME tuples. */
+#if 0
/* This file implements dead store elimination.
A dead store is a store into a memory location which will later be
@@ -919,3 +921,4 @@ struct tree_opt_pass pass_dse = {
0 /* letter */
,0 /* works_with_tuples_p */
};
+#endif
Index: ipa-reference.c
===================================================================
--- ipa-reference.c (revision 127911)
+++ ipa-reference.c (working copy)
@@ -45,8 +45,7 @@ along with GCC; see the file COPYING3.
Currently must be run after inlining decisions have been made since
otherwise, the local sets will not contain information that is
consistent with post inlined state. The global sets are not prone
- to this problem since they are by definition transitive.
-*/
+ to this problem since they are by definition transitive. */
#include "config.h"
#include "system.h"
@@ -70,6 +69,8 @@ along with GCC; see the file COPYING3.
#include "diagnostic.h"
#include "langhooks.h"
+/* FIXME tuples. */
+#if 0
/* This splay tree contains all of the static variables that are
being considered by the compilation level alias analysis. For
module_at_a_time compilation, this is the set of static but not
@@ -1348,4 +1349,4 @@ struct tree_opt_pass pass_ipa_reference
};
#include "gt-ipa-reference.h"
-
+#endif
Index: tree-ssa-uncprop.c
===================================================================
--- tree-ssa-uncprop.c (revision 127911)
+++ tree-ssa-uncprop.c (working copy)
@@ -40,6 +40,8 @@ along with GCC; see the file COPYING3.
#include "tree-ssa-propagate.h"
#include "langhooks.h"
+/* FIXME tuples. */
+#if 0
/* The basic structure describing an equivalency created by traversing
an edge. Traversing the edge effectively means that we can assume
that we've seen an assignment LHS = RHS. */
@@ -623,3 +625,4 @@ struct tree_opt_pass pass_uncprop =
0 /* letter */
,0 /* works_with_tuples_p */
};
+#endif
Index: tree-ssa-sccvn.c
===================================================================
--- tree-ssa-sccvn.c (revision 127911)
+++ tree-ssa-sccvn.c (working copy)
@@ -45,6 +45,8 @@ along with GCC; see the file COPYING3.
#include "tree-ssa-propagate.h"
#include "tree-ssa-sccvn.h"
+/* FIXME tuples. */
+#if 0
/* This algorithm is based on the SCC algorithm presented by Keith
Cooper and L. Taylor Simpson in "SCC-Based Value numbering"
(http://citeseer.ist.psu.edu/41805.html). In
@@ -2052,3 +2054,4 @@ run_scc_vn (void)
}
}
}
+#endif
Index: cgraphunit.c
===================================================================
--- cgraphunit.c (revision 127911)
+++ cgraphunit.c (working copy)
@@ -668,6 +668,8 @@ verify_cgraph_node (struct cgraph_node *
FOR_EACH_BB_FN (this_block, this_cfun)
for (bsi = bsi_start (this_block); !bsi_end_p (bsi); bsi_next (&bsi))
{
+ /* FIXME tuples. */
+#if 0
tree stmt = bsi_stmt (bsi);
tree call = get_call_expr_in (stmt);
tree decl;
@@ -699,6 +701,9 @@ verify_cgraph_node (struct cgraph_node *
error_found = true;
}
}
+#else
+ gcc_unreachable ();
+#endif
}
pointer_set_destroy (visited_nodes);
}
Index: tree-ssa-copyrename.c
===================================================================
--- tree-ssa-copyrename.c (revision 127911)
+++ tree-ssa-copyrename.c (working copy)
@@ -38,6 +38,8 @@ along with GCC; see the file COPYING3.
#include "tree-pass.h"
#include "langhooks.h"
+/* FIXME tuples. */
+#if 0
/* The following routines implement the SSA copy renaming phase.
This optimization looks for copies between 2 SSA_NAMES, either through a
@@ -403,4 +405,4 @@ struct tree_opt_pass pass_rename_ssa_cop
0 /* letter */
,0 /* works_with_tuples_p */
};
-
+#endif
Index: tree-ssa-ccp.c
===================================================================
--- tree-ssa-ccp.c (revision 127911)
+++ tree-ssa-ccp.c (working copy)
@@ -209,6 +209,8 @@ along with GCC; see the file COPYING3.
#include "toplev.h"
+ /* FIXME tuples. */
+#if 0
/* Possible lattice values. */
typedef enum
{
@@ -1542,6 +1544,7 @@ widen_bitfield (tree val, tree field, tr
return wide_val;
}
+#endif
/* A subroutine of fold_stmt_r. Attempts to fold *(A+O) to A[X].
@@ -1834,6 +1837,8 @@ maybe_fold_offset_to_reference (tree bas
return ret;
}
+/* FIXME tuples. */
+#if 0
/* A subroutine of fold_stmt_r. Attempt to simplify *(BASE+OFFSET).
Return the simplified expression, or NULL if nothing could be done. */
@@ -2766,3 +2771,4 @@ struct tree_opt_pass pass_fold_builtins
0 /* letter */
,0 /* works_with_tuples_p */
};
+#endif
Index: tree-ssa-loop-ivopts.c
===================================================================
--- tree-ssa-loop-ivopts.c (revision 127911)
+++ tree-ssa-loop-ivopts.c (working copy)
@@ -92,6 +92,8 @@ along with GCC; see the file COPYING3.
#include "tree-affine.h"
#include "target.h"
+/* FIXME tuples. */
+#if 0
/* The infinite cost. */
#define INFTY 10000000
@@ -5383,3 +5385,4 @@ tree_ssa_iv_optimize (void)
tree_ssa_iv_optimize_finalize (&data);
}
+#endif
Index: tree-stdarg.c
===================================================================
--- tree-stdarg.c (revision 127911)
+++ tree-stdarg.c (working copy)
@@ -31,6 +31,8 @@ along with GCC; see the file COPYING3.
#include "tree-pass.h"
#include "tree-stdarg.h"
+/* FIXME tuples. */
+#if 0
/* A simple pass that attempts to optimize stdarg functions on architectures
that need to save register arguments to stack on entry to stdarg functions.
If the function doesn't use any va_start macros, no registers need to
@@ -926,3 +928,4 @@ struct tree_opt_pass pass_stdarg =
0 /* letter */
,0 /* works_with_tuples_p */
};
+#endif
Index: tree-ssa-math-opts.c
===================================================================
--- tree-ssa-math-opts.c (revision 127911)
+++ tree-ssa-math-opts.c (working copy)
@@ -99,6 +99,8 @@ along with GCC; see the file COPYING3.
#include "target.h"
+/* FIXME tuples. */
+#if 0
/* This structure represents one basic block that either computes a
division, or is a common dominator for basic block that compute a
division. */
@@ -868,3 +870,4 @@ struct tree_opt_pass pass_convert_to_rsq
0 /* letter */
,0 /* works_with_tuples_p */
};
+#endif
Index: tree-ssa-dom.c
===================================================================
--- tree-ssa-dom.c (revision 127911)
+++ tree-ssa-dom.c (working copy)
@@ -44,6 +44,8 @@ along with GCC; see the file COPYING3.
#include "langhooks.h"
#include "params.h"
+/* FIXME tuples. */
+#if 0
/* This file implements optimizations on the dominator tree. */
@@ -231,6 +233,7 @@ free_all_edge_infos (void)
}
}
}
+#endif
/* Jump threading, redundancy elimination and const/copy propagation.
@@ -241,6 +244,8 @@ free_all_edge_infos (void)
static unsigned int
tree_ssa_dominator_optimize (void)
{
+ /* FIXME tuples. */
+#if 0
struct dom_walk_data walk_data;
unsigned int i;
@@ -359,6 +364,9 @@ tree_ssa_dominator_optimize (void)
VEC_free (tree, heap, const_and_copies_stack);
VEC_free (tree_p, heap, stmts_to_rescan);
return 0;
+#else
+ gcc_unreachable ();
+#endif
}
static bool
@@ -389,6 +397,8 @@ struct tree_opt_pass pass_dominator =
};
+/* FIXME tuples. */
+#if 0
/* Given a stmt CONDSTMT containing a COND_EXPR, canonicalize the
COND_EXPR into a canonical form. */
@@ -2428,6 +2438,7 @@ eliminate_degenerate_phis_1 (basic_block
son = next_dom_son (CDI_DOMINATORS, son))
eliminate_degenerate_phis_1 (son, interesting_names);
}
+#endif
/* A very simple pass to eliminate degenerate PHI nodes from the
@@ -2459,6 +2470,8 @@ eliminate_degenerate_phis_1 (basic_block
static unsigned int
eliminate_degenerate_phis (void)
{
+ /* FIXME tuples. */
+#if 0
bitmap interesting_names;
bitmap interesting_names1;
@@ -2532,6 +2545,9 @@ eliminate_degenerate_phis (void)
BITMAP_FREE (interesting_names);
BITMAP_FREE (interesting_names1);
return 0;
+#else
+ gcc_unreachable ();
+#endif
}
struct tree_opt_pass pass_phi_only_cprop =
Index: tree-nrv.c
===================================================================
--- tree-nrv.c (revision 127911)
+++ tree-nrv.c (working copy)
@@ -58,6 +58,8 @@ struct nrv_data
tree result;
};
+/* FIXME tuples. */
+#if 0
static tree finalize_nrv_r (tree *, int *, void *);
/* Callback for the tree walker.
@@ -87,6 +89,7 @@ finalize_nrv_r (tree *tp, int *walk_subt
/* Keep iterating. */
return NULL_TREE;
}
+#endif
/* Main entry point for return value optimizations.
@@ -103,6 +106,8 @@ finalize_nrv_r (tree *tp, int *walk_subt
static unsigned int
tree_nrv (void)
{
+ /* FIXME tuples. */
+#if 0
tree result = DECL_RESULT (current_function_decl);
tree result_type = TREE_TYPE (result);
tree found = NULL;
@@ -219,6 +224,9 @@ tree_nrv (void)
/* FOUND is no longer used. Ensure it gets removed. */
var_ann (found)->used = 0;
return 0;
+#else
+ gcc_unreachable ();
+#endif
}
struct tree_opt_pass pass_nrv =
@@ -247,6 +255,8 @@ struct tree_opt_pass pass_nrv =
subvars are clobbered. Note that we could do better, for example, by
attempting to doing points-to analysis on INDIRECT_REFs. */
+/* FIXME tuples. */
+#if 0
static bool
dest_safe_for_nrv_p (tree dest)
{
@@ -268,6 +278,7 @@ dest_safe_for_nrv_p (tree dest)
return false;
return true;
}
+#endif
/* Walk through the function looking for GIMPLE_MODIFY_STMTs with calls that
return in memory on the RHS. For each of these, determine whether it is
@@ -284,6 +295,8 @@ dest_safe_for_nrv_p (tree dest)
static unsigned int
execute_return_slot_opt (void)
{
+ /* FIXME tuples. */
+#if 0
basic_block bb;
FOR_EACH_BB (bb)
@@ -306,6 +319,9 @@ execute_return_slot_opt (void)
}
}
return 0;
+#else
+ gcc_unreachable ();
+#endif
}
struct tree_opt_pass pass_return_slot =
Index: tree-ssa-propagate.c
===================================================================
--- tree-ssa-propagate.c (revision 127911)
+++ tree-ssa-propagate.c (working copy)
@@ -41,6 +41,9 @@
#include "varray.h"
#include "vec.h"
+/* FIXME tuples. */
+#if 0
+
/* This file implements a generic value propagation engine based on
the same propagation used by the SSA-CCP algorithm [1].
@@ -905,9 +908,11 @@ static struct prop_stats_d prop_stats;
constant was replaced. */
bool
-replace_uses_in (tree stmt, bool *replaced_addresses_p,
- prop_value_t *prop_value)
+replace_uses_in (tree stmt ATTRIBUTE_UNUSED, bool *replaced_addresses_p ATTRIBUTE_UNUSED,
+ prop_value_t *prop_value ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
bool replaced = false;
use_operand_p use;
ssa_op_iter iter;
@@ -940,6 +945,9 @@ replace_uses_in (tree stmt, bool *replac
}
return replaced;
+#else
+ gcc_unreachable ();
+#endif
}
@@ -1005,9 +1013,11 @@ replace_uses_in (tree stmt, bool *replac
replace_uses_in. */
static bool
-replace_vuses_in (tree stmt, bool *replaced_addresses_p,
- prop_value_t *prop_value)
+replace_vuses_in (tree stmt ATTRIBUTE_UNUSED, bool *replaced_addresses_p ATTRIBUTE_UNUSED,
+ prop_value_t *prop_value ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
bool replaced = false;
ssa_op_iter iter;
use_operand_p vuse;
@@ -1076,6 +1086,9 @@ replace_vuses_in (tree stmt, bool *repla
}
return replaced;
+#else
+ gcc_unreachable ();
+#endif
}
@@ -1319,3 +1332,4 @@ substitute_and_fold (prop_value_t *prop_
}
#include "gt-tree-ssa-propagate.h"
+#endif
Index: gimple-dummy.c
===================================================================
--- gimple-dummy.c (revision 0)
+++ gimple-dummy.c (revision 0)
@@ -0,0 +1,111 @@
+/* FIXME tuples. HACK. HACK. HACK.
+
+ This file defines a collection symbols that have been if0'd out
+ during the conversion to GIMPLE tuples. As the various passes get
+ re-enabled, these symbols should be removed. */
+
+#include "config.h"
+#include "system.h"
+
+#define DUMMY_VAR(X) \
+ int X
+
+#define DUMMY_FN(X) \
+ void X (void); \
+ void X (void) { gcc_unreachable (); }
+
+DUMMY_VAR (chrec_dont_know);
+DUMMY_VAR (chrec_known);
+DUMMY_VAR (chrec_not_analyzed_yet);
+DUMMY_VAR (memory_identifier_string);
+
+
+DUMMY_FN (analyze_scalar_evolution);
+DUMMY_FN (canonicalize_induction_variables);
+DUMMY_FN (chrec_contains_symbols_defined_in_loop);
+DUMMY_FN (compute_builtin_object_size);
+DUMMY_FN (compute_data_dependences_for_loop);
+DUMMY_FN (delete_tree_ssa);
+DUMMY_FN (dump_ddrs);
+DUMMY_FN (estimate_move_cost);
+DUMMY_FN (estimate_num_insns);
+DUMMY_FN (estimate_numbers_of_iterations);
+DUMMY_FN (expr_invariant_in_loop_p);
+DUMMY_FN (flush_pending_stmts);
+DUMMY_FN (fold_stmt);
+DUMMY_FN (free_data_refs);
+DUMMY_FN (free_dependence_relations);
+DUMMY_FN (free_histograms);
+DUMMY_FN (free_numbers_of_iterations_estimates);
+DUMMY_FN (free_numbers_of_iterations_estimates_loop);
+DUMMY_FN (get_loop_exit_condition);
+DUMMY_FN (get_type);
+DUMMY_FN (gimple_duplicate_stmt_histograms);
+DUMMY_FN (gimple_remove_stmt_histograms);
+DUMMY_FN (init_tree_ssa);
+DUMMY_FN (instantiate_parameters);
+DUMMY_FN (ipa_add_method);
+DUMMY_FN (ipa_callsite_callee);
+DUMMY_FN (ipa_callsite_compute_count);
+DUMMY_FN (ipa_callsite_compute_param);
+DUMMY_FN (ipa_callsite_param);
+DUMMY_FN (ipa_callsite_param_count);
+DUMMY_FN (ipa_callsite_param_count_set);
+DUMMY_FN (ipa_edges_create);
+DUMMY_FN (ipa_edges_free);
+DUMMY_FN (ipa_free);
+DUMMY_FN (ipa_jf_get_info_type);
+DUMMY_FN (ipa_method_compute_modify);
+DUMMY_FN (ipa_method_compute_tree_map);
+DUMMY_FN (ipa_method_formal_compute_count);
+DUMMY_FN (ipa_method_formal_count);
+DUMMY_FN (ipa_method_formal_count_set);
+DUMMY_FN (ipa_method_get_tree);
+DUMMY_FN (ipa_method_modify_print);
+DUMMY_FN (ipa_method_tree_print);
+DUMMY_FN (ipa_methodlist_init);
+DUMMY_FN (ipa_methodlist_not_empty);
+DUMMY_FN (ipa_node_create);
+DUMMY_FN (ipa_nodes_create);
+DUMMY_FN (ipa_nodes_free);
+DUMMY_FN (ipa_remove_method);
+DUMMY_FN (ipa_type_escape_field_does_not_clobber_p);
+DUMMY_FN (make_ssa_name);
+DUMMY_FN (multiplier_allowed_in_address_p);
+DUMMY_FN (multiply_by_cost);
+DUMMY_FN (nowrap_type_p);
+DUMMY_FN (optimize_inline_calls);
+DUMMY_FN (remove_empty_loops);
+DUMMY_FN (remove_phi_args);
+DUMMY_FN (remove_unused_locals);
+DUMMY_FN (reserve_phi_args_for_new_edge);
+DUMMY_FN (rewrite_into_loop_closed_ssa);
+DUMMY_FN (scev_const_prop);
+DUMMY_FN (scev_finalize);
+DUMMY_FN (scev_initialize);
+DUMMY_FN (scev_probably_wraps_p);
+DUMMY_FN (scev_reset);
+DUMMY_FN (ssa_name_nonnegative_p);
+DUMMY_FN (ssa_name_nonzero_p);
+DUMMY_FN (ssa_operands_active);
+DUMMY_FN (stringop_block_profile);
+DUMMY_FN (tree_duplicate_loop_to_header_edge);
+DUMMY_FN (tree_function_versioning);
+DUMMY_FN (tree_inlinable_function_p);
+DUMMY_FN (tree_int_cst_sign_bit);
+DUMMY_FN (tree_ssa_iv_optimize);
+DUMMY_FN (tree_ssa_lim);
+DUMMY_FN (tree_ssa_prefetch_arrays);
+DUMMY_FN (tree_ssa_unswitch_loops);
+DUMMY_FN (tree_unroll_loops_completely);
+DUMMY_FN (tree_versionable_function_p);
+DUMMY_FN (update_stmt_operands);
+DUMMY_FN (vec_set_verbosity_level);
+DUMMY_FN (vect_set_verbosity_level);
+DUMMY_FN (vectorize_loops);
+DUMMY_FN (verify_loop_closed_ssa);
+DUMMY_FN (verify_ssa);
+DUMMY_FN (number_of_iterations_exit);
+DUMMY_FN (loop_niter_by_eval);
+DUMMY_FN (estimated_loop_iterations_int);
+DUMMY_FN (remove_phi_node);
Index: tree-ssa-alias.c
===================================================================
--- tree-ssa-alias.c (revision 127911)
+++ tree-ssa-alias.c (working copy)
@@ -49,6 +49,8 @@ along with GCC; see the file COPYING3.
#include "pointer-set.h"
#include "alloc-pool.h"
+/* FIXME tuples. */
+#if 0
/* Broad overview of how aliasing works:
First we compute points-to sets, which is done in
@@ -1100,8 +1102,13 @@ find_partition_for (mem_sym_stats_t mp_p
mp_p->partitioned_p = true;
+ /* FIXME tuples. */
+#if 0
mark_sym_for_renaming (mp_p->var);
mark_sym_for_renaming (mpt);
+#else
+ gcc_unreachable ();
+#endif
return mpt;
}
@@ -1351,9 +1358,19 @@ build_mp_info (struct mem_ref_stats_d *m
marked for renaming. */
if ((old_mpt = memory_partition (var)) != NULL)
{
+ /* FIXME tuples. */
+#if 0
mark_sym_for_renaming (old_mpt);
+#else
+ gcc_unreachable ();
+#endif
set_memory_partition (var, NULL_TREE);
+ /* FIXME tuples. */
+#if 0
mark_sym_for_renaming (var);
+#else
+ gcc_unreachable ();
+#endif
}
sym_stats = get_mem_sym_stats_for (var);
@@ -1565,7 +1582,7 @@ done:
timevar_pop (TV_MEMORY_PARTITIONING);
}
-
+#endif
/* Compute may-alias information for every variable referenced in function
FNDECL.
@@ -1680,6 +1697,8 @@ done:
unsigned int
compute_may_aliases (void)
{
+ /* FIXME tuples. */
+#if 0
struct alias_info *ai;
timevar_push (TV_TREE_MAY_ALIAS);
@@ -1777,14 +1796,24 @@ compute_may_aliases (void)
/* Deallocate memory used by aliasing data structures. */
delete_alias_info (ai);
+ /* FIXME tuples. */
+#if 0
if (need_ssa_update_p ())
update_ssa (TODO_update_ssa);
+#else
+ gcc_unreachable ();
+#endif
timevar_pop (TV_TREE_MAY_ALIAS);
return 0;
+#else
+ gcc_unreachable ();
+#endif
}
+/* FIXME tuples. */
+#if 0
/* Data structure used to count the number of dereferences to PTR
inside an expression. */
struct count_ptr_d
@@ -3274,7 +3303,7 @@ get_ptr_info (tree t)
return pi;
}
-
+#endif
/* Dump points-to information for SSA_NAME PTR into FILE. */
@@ -3329,8 +3358,10 @@ debug_points_to_info_for (tree var)
it needs to traverse the whole CFG looking for pointer SSA_NAMEs. */
void
-dump_points_to_info (FILE *file)
+dump_points_to_info (FILE *file ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
basic_block bb;
block_stmt_iterator si;
ssa_op_iter iter;
@@ -3378,9 +3409,14 @@ dump_points_to_info (FILE *file)
}
fprintf (file, "\n");
+#else
+ gcc_unreachable ();
+#endif
}
+/* FIXME tuples. */
+#if 0
/* Dump points-to info pointed to by PTO into STDERR. */
void
@@ -3388,6 +3424,7 @@ debug_points_to_info (void)
{
dump_points_to_info (stderr);
}
+#endif
/* Dump to FILE the list of variables that may be aliasing VAR. */
@@ -3415,6 +3452,8 @@ dump_may_aliases_for (FILE *file, tree v
}
+/* FIXME tuples. */
+#if 0
/* Dump to stderr the list of variables that may be aliasing VAR. */
void
@@ -4004,12 +4043,15 @@ find_used_portions (tree *tp, int *walk_
}
return NULL_TREE;
}
+#endif
/* Create structure field variables for structures used in this function. */
static unsigned int
create_structure_vars (void)
{
+ /* FIXME tuples. */
+#if 0
basic_block bb;
safe_referenced_var_iterator rvi;
VEC (tree, heap) *varvec = NULL;
@@ -4108,6 +4150,9 @@ create_structure_vars (void)
}
return TODO_rebuild_alias;
+#else
+ gcc_unreachable ();
+#endif
}
static bool
Index: tree-ssa-sink.c
===================================================================
--- tree-ssa-sink.c (revision 127911)
+++ tree-ssa-sink.c (working copy)
@@ -42,6 +42,8 @@ along with GCC; see the file COPYING3.
#include "langhooks.h"
#include "cfgloop.h"
+/* FIXME tuples. */
+#if 0
/* TODO:
1. Sinking store only using scalar promotion (IE without moving the RHS):
@@ -574,3 +576,4 @@ struct tree_opt_pass pass_sink_code =
0 /* letter */
,0 /* works_with_tuples_p */
};
+#endif
Index: expr.c
===================================================================
--- expr.c (revision 127911)
+++ expr.c (working copy)
@@ -6935,10 +6935,15 @@ expand_expr_real (tree exp, rtx target,
if (flag_non_call_exceptions)
{
+ /* FIXME tuples. */
+#if 0
rn = lookup_stmt_eh_region (exp);
/* If rn < 0, then either (1) tree-ssa not used or (2) doesn't throw. */
if (rn >= 0)
last = get_last_insn ();
+#else
+ gcc_unreachable ();
+#endif
}
/* If this is an expression of some kind and it has an associated line
Index: tree-ssa-loop-ivcanon.c
===================================================================
--- tree-ssa-loop-ivcanon.c (revision 127911)
+++ tree-ssa-loop-ivcanon.c (working copy)
@@ -54,6 +54,8 @@ along with GCC; see the file COPYING3.
#include "flags.h"
#include "tree-inline.h"
+/* FIXME tuples. */
+#if 0
/* Specifies types of loops that may be unrolled. */
enum unroll_level
@@ -562,3 +564,4 @@ remove_empty_loops (void)
}
return 0;
}
+#endif
Index: predict.c
===================================================================
--- predict.c (revision 127911)
+++ predict.c (working copy)
@@ -74,7 +74,10 @@ static sreal real_zero, real_one, real_a
static void combine_predictions_for_insn (rtx, basic_block);
static void dump_prediction (FILE *, enum br_predictor, int, basic_block, int);
+/* FIXME tuples */
+#if 0
static void predict_paths_leading_to (basic_block, int *, enum br_predictor, enum prediction);
+#endif
static void compute_function_frequency (void);
static void choose_function_section (void);
static bool can_predict_insn_p (const_rtx);
@@ -1038,6 +1041,8 @@ expr_expected_value (tree expr, bitmap v
static void
strip_builtin_expect (void)
{
+/* FIXME tuples. */
+#if 0
basic_block bb;
FOR_EACH_BB (bb)
{
@@ -1061,12 +1066,17 @@ strip_builtin_expect (void)
}
}
}
+#else
+ gcc_unreachable ();
+#endif
}
/* Predict using opcode of the last statement in basic block. */
static void
-tree_predict_by_opcode (basic_block bb)
+tree_predict_by_opcode (basic_block bb ATTRIBUTE_UNUSED)
{
+/* FIXME tuples. */
+#if 0
tree stmt = last_stmt (bb);
edge then_edge;
tree cond;
@@ -1180,9 +1190,15 @@ tree_predict_by_opcode (basic_block bb)
default:
break;
}
+#else
+ gcc_unreachable ();
+#endif
}
/* Try to guess whether the value of return means error code. */
+
+/* FIXME tuples */
+#if 0
static enum br_predictor
return_prediction (tree val, enum prediction *prediction)
{
@@ -1221,9 +1237,12 @@ return_prediction (tree val, enum predic
}
return PRED_NO_PREDICTION;
}
+#endif
/* Find the basic block with return expression and look up for possible
return value trying to apply RETURN_PREDICTION heuristics. */
+/* FIXME tuples. */
+#if 0
static void
apply_return_prediction (int *heads)
{
@@ -1277,6 +1296,7 @@ apply_return_prediction (int *heads)
direction);
}
}
+#endif
/* Look for basic block that contains unlikely to happen events
(such as noreturn calls) and mark all paths leading to execution
@@ -1285,6 +1305,8 @@ apply_return_prediction (int *heads)
static void
tree_bb_level_predictions (void)
{
+ /* FIXME tuples. */
+#if 0
basic_block bb;
int *heads;
@@ -1329,6 +1351,9 @@ call_expr:;
}
free (heads);
+#else
+ gcc_unreachable ();
+#endif
}
#ifdef ENABLE_CHECKING
@@ -1431,6 +1456,7 @@ tree_estimate_probability (void)
for (bi = bsi_start (e->dest); !bsi_end_p (bi);
bsi_next (&bi))
{
+#if 0
tree stmt = bsi_stmt (bi);
if ((TREE_CODE (stmt) == CALL_EXPR
|| (TREE_CODE (stmt) == GIMPLE_MODIFY_STMT
@@ -1443,6 +1469,9 @@ tree_estimate_probability (void)
predict_edge_def (e, PRED_CALL, NOT_TAKEN);
break;
}
+#else
+ gcc_unreachable ();
+#endif
}
}
}
@@ -1475,6 +1504,8 @@ tree_estimate_probability (void)
such that we do not post-dominate it) (but we fill this information
on demand, so -1 may be there in case this was not needed yet). */
+/* FIXME tuples */
+#if 0
static void
predict_paths_leading_to (basic_block bb, int *heads, enum br_predictor pred,
enum prediction taken)
@@ -1522,6 +1553,7 @@ predict_paths_leading_to (basic_block bb
&& dominated_by_p (CDI_POST_DOMINATORS, e->dest, bb))
predict_edge_def (e, pred, taken);
}
+#endif
/* This is used to carry information about basic blocks. It is
attached to the AUX field of the standard CFG block. */
Index: gimple-iterator.c
===================================================================
--- gimple-iterator.c (revision 127911)
+++ gimple-iterator.c (working copy)
@@ -267,7 +267,7 @@ gsi_split_seq_before (gimple_stmt_iterat
statement is moved to the new statement. */
void
-gsi_replace (gimple_stmt_iterator *gsi, gimple stmt, bool update_eh_info)
+gsi_replace (gimple_stmt_iterator *gsi, gimple stmt, bool update_eh_info ATTRIBUTE_UNUSED)
{
#if 0
int eh_region;
Index: tree-ssa-ifcombine.c
===================================================================
--- tree-ssa-ifcombine.c (revision 127911)
+++ tree-ssa-ifcombine.c (working copy)
@@ -30,6 +30,8 @@ along with GCC; see the file COPYING3.
#include "tree-pass.h"
#include "tree-dump.h"
+/* FIXME tuples. */
+#if 0
/* This pass combines COND_EXPRs to simplify control flow. It
currently recognizes bit tests and comparisons in chains that
represent logical and or logical or of two COND_EXPRs.
@@ -621,3 +623,4 @@ struct tree_opt_pass pass_tree_ifcombine
0 /* letter */
,0 /* works_with_tuples_p */
};
+#endif
Index: matrix-reorg.c
===================================================================
--- matrix-reorg.c (revision 127911)
+++ matrix-reorg.c (working copy)
@@ -107,9 +107,7 @@ along with GCC; see the file COPYING3.
Both optimizations are described in the paper "Matrix flattening and
transposing in GCC" which was presented in GCC summit 2006.
- http://www.gccsummit.org/2006/2006-GCC-Summit-Proceedings.pdf
-
- */
+ http://www.gccsummit.org/2006/2006-GCC-Summit-Proceedings.pdf. */
#include "config.h"
#include "system.h"
@@ -145,8 +143,9 @@ along with GCC; see the file COPYING3.
#include "tree-chrec.h"
#include "tree-scalar-evolution.h"
-/*
- We need to collect a lot of data from the original malloc,
+ /* FIXME tuples. */
+#if 0
+/* We need to collect a lot of data from the original malloc,
particularly as the gimplifier has converted:
orig_var = (struct_type *) malloc (x * sizeof (struct_type *));
@@ -2333,3 +2332,4 @@ struct tree_opt_pass pass_ipa_matrix_reo
0 /* letter */
,0 /* works_with_tuples_p */
};
+#endif
Index: c-decl.c
===================================================================
--- c-decl.c (revision 127911)
+++ c-decl.c (working copy)
@@ -6666,7 +6666,12 @@ c_gimple_diagnostics_recursively (tree f
/* Notice when OpenMP structured block constraints are violated. */
if (flag_openmp)
+ /* FIXME tuples. */
+#if 0
diagnose_omp_structured_block_errors (fndecl);
+#else
+ gcc_unreachable ();
+#endif
/* Finalize all nested functions now. */
cgn = cgraph_node (fndecl);
Index: tree-eh.c
===================================================================
--- tree-eh.c (revision 127911)
+++ tree-eh.c (working copy)
@@ -47,6 +47,9 @@ using_eh_for_cleanups (void)
{
using_eh_for_cleanups_p = 1;
}
+/* FIXME tuples. */
+#if 0
+
/* Misc functions used in this file. */
@@ -1688,10 +1691,13 @@ lower_eh_constructs_1 (struct leh_state
break;
}
}
+#endif
static unsigned int
lower_eh_constructs (void)
{
+ /* FIXME tuples */
+#if 0
struct leh_state null_state;
tree *tp = &DECL_SAVED_TREE (current_function_decl);
@@ -1706,6 +1712,9 @@ lower_eh_constructs (void)
collect_eh_region_array ();
return 0;
+#else
+ gcc_unreachable ();
+#endif
}
struct tree_opt_pass pass_lower_eh =
@@ -1726,6 +1735,8 @@ struct tree_opt_pass pass_lower_eh =
,0 /* works_with_tuples_p */
};
+/* FIXME tuples */
+#if 0
/* Construct EH edges for STMT. */
@@ -1857,6 +1868,7 @@ verify_eh_edges (tree stmt)
}
return mark_eh_edge_found_error;
}
+#endif
/* Return true if the expr can trap, as in dereferencing an invalid pointer
@@ -2035,8 +2047,10 @@ tree_could_throw_p (tree t)
}
bool
-stmt_can_throw_internal (gimple stmt)
+stmt_can_throw_internal (gimple stmt ATTRIBUTE_UNUSED)
{
+/* FIXME tuples */
+#if 0
int region_nr;
bool is_resx = false;
@@ -2050,11 +2064,16 @@ stmt_can_throw_internal (gimple stmt)
if (region_nr < 0)
return false;
return can_throw_internal_1 (region_nr, is_resx);
+#else
+ gcc_unreachable ();
+#endif
}
bool
-tree_can_throw_external (tree stmt)
+tree_can_throw_external (tree stmt ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
int region_nr;
bool is_resx = false;
@@ -2066,6 +2085,9 @@ tree_can_throw_external (tree stmt)
return tree_could_throw_p (stmt);
else
return can_throw_external_1 (region_nr, is_resx);
+#else
+ gcc_unreachable ();
+#endif
}
/* Given a statement OLD_STMT and a new statement NEW_STMT that has replaced
@@ -2074,8 +2096,10 @@ tree_can_throw_external (tree stmt)
done that my require an EH edge purge. */
bool
-maybe_clean_or_replace_eh_stmt (gimple old_stmt, gimple new_stmt)
+maybe_clean_or_replace_eh_stmt (gimple old_stmt ATTRIBUTE_UNUSED, gimple new_stmt ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
int region_nr = lookup_stmt_eh_region (old_stmt);
if (region_nr >= 0)
@@ -2096,4 +2120,7 @@ maybe_clean_or_replace_eh_stmt (gimple o
}
return false;
+#else
+ gcc_unreachable ();
+#endif
}
Index: tree-vectorizer.c
===================================================================
--- tree-vectorizer.c (revision 127911)
+++ tree-vectorizer.c (working copy)
@@ -146,6 +146,8 @@ along with GCC; see the file COPYING3.
#include "tree-vectorizer.h"
#include "tree-pass.h"
+/* FIXME tuples. */
+#if 0
/*************************************************************************
Simple Loop Peeling Utilities
*************************************************************************/
@@ -2591,3 +2593,4 @@ struct tree_opt_pass pass_ipa_increase_a
0 /* letter */
,0 /* works_with_tuples_p */
};
+#endif
Index: tree-vectorizer.h
===================================================================
--- tree-vectorizer.h (revision 127911)
+++ tree-vectorizer.h (working copy)
@@ -174,10 +174,15 @@ loop_vec_info_for_loop (struct loop *loo
}
static inline bool
-nested_in_vect_loop_p (struct loop *loop, tree stmt)
+nested_in_vect_loop_p (struct loop *loop ATTRIBUTE_UNUSED, tree stmt ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
return (loop->inner
&& (loop->inner == (gimple_bb (stmt))->loop_father));
+#else
+ gcc_unreachable ();
+#endif
}
/*-----------------------------------------------------------------*/
Index: ipa-type-escape.c
===================================================================
--- ipa-type-escape.c (revision 127911)
+++ ipa-type-escape.c (working copy)
@@ -54,6 +54,8 @@ along with GCC; see the file COPYING3.
#include "diagnostic.h"
#include "langhooks.h"
+/* FIXME tuples. */
+#if 0
/* Some of the aliasing is called very early, before this phase is
called. To assure that this is not a problem, we keep track of if
this phase has been run. */
@@ -2176,3 +2178,4 @@ struct tree_opt_pass pass_ipa_type_escap
,0 /* works_with_tuples_p */
};
+#endif
Index: tree-if-conv.c
===================================================================
--- tree-if-conv.c (revision 127911)
+++ tree-if-conv.c (working copy)
@@ -100,6 +100,9 @@ along with GCC; see the file COPYING3.
#include "tree-pass.h"
#include "target.h"
+/* FIXME tuples. */
+#if 0
+
/* local function prototypes */
static unsigned int main_tree_if_conversion (void);
static tree tree_if_convert_stmt (struct loop *loop, tree, tree,
@@ -1119,12 +1122,15 @@ bb_with_exit_edge_p (struct loop *loop,
return exit_edge_found;
}
+#endif
/* Tree if-conversion pass management. */
static unsigned int
main_tree_if_conversion (void)
{
+ /* FIXME tuples */
+#if 0
loop_iterator li;
struct loop *loop;
@@ -1136,6 +1142,9 @@ main_tree_if_conversion (void)
tree_if_conversion (loop, true);
}
return 0;
+#else
+ gcc_unreachable ();
+#endif
}
static bool
Index: profile.c
===================================================================
--- profile.c (revision 127911)
+++ profile.c (working copy)
@@ -49,6 +49,9 @@ along with GCC; see the file COPYING3.
/* ??? Should calculate branch probabilities before instrumenting code, since
then we can use arc counts to help decide which arcs to instrument. */
+/* FIXME tuples. */
+#if 0
+
#include "config.h"
#include "system.h"
#include "coretypes.h"
@@ -95,10 +98,14 @@ struct bb_info {
#define EDGE_INFO(e) ((struct edge_info *) (e)->aux)
#define BB_INFO(b) ((struct bb_info *) (b)->aux)
+#endif
+
/* Counter summary from the last set of coverage counts read. */
const struct gcov_ctr_summary *profile_info;
+/* FIXME tuples */
+#if 0
/* Collect statistics on the performance of this pass for the entire source
file. */
@@ -1258,4 +1265,4 @@ tree_register_profile_hooks (void)
gcc_assert (current_ir_type () == IR_GIMPLE);
profile_hooks = &tree_profile_hooks;
}
-
+#endif
Index: tree-data-ref.c
===================================================================
--- tree-data-ref.c (revision 127911)
+++ tree-data-ref.c (working copy)
@@ -94,6 +94,9 @@ along with GCC; see the file COPYING3.
#include "tree-pass.h"
#include "langhooks.h"
+/* FIXME tuples. */
+#if 0
+
static struct datadep_stats
{
int num_dependence_tests;
@@ -4275,6 +4278,7 @@ analyze_all_data_dependences (struct loo
free_dependence_relations (dependence_relations);
free_data_refs (datarefs);
}
+#endif
/* Computes all the data dependences and check that the results of
several analyzers are the same. */
@@ -4282,13 +4286,20 @@ analyze_all_data_dependences (struct loo
void
tree_check_data_deps (void)
{
+ /* FIXME tuples. */
+#if 0
loop_iterator li;
struct loop *loop_nest;
FOR_EACH_LOOP (li, loop_nest, 0)
analyze_all_data_dependences (loop_nest);
+#else
+ gcc_unreachable ();
+#endif
}
+/* FIXME tuples. */
+#if 0
/* Free the memory used by a data dependence relation DDR. */
void
@@ -4531,3 +4542,4 @@ build_rdg (struct loop *loop)
return rdg;
}
+#endif
Index: tree-flow-inline.h
===================================================================
--- tree-flow-inline.h (revision 127911)
+++ tree-flow-inline.h (working copy)
@@ -744,10 +744,7 @@ bsi_start (basic_block bb)
{
block_stmt_iterator bsi;
if (bb->index < NUM_FIXED_BLOCKS)
- {
- bsi.gsi->stmt = NULL;
- bsi.gsi->seq = NULL;
- }
+ bsi.gsi = NULL;
else
bsi.gsi = gsi_start (bb_seq (bb));
bsi.bb = bb;
@@ -776,10 +773,7 @@ bsi_last (basic_block bb)
block_stmt_iterator bsi;
if (bb->index < NUM_FIXED_BLOCKS)
- {
- bsi.gsi->stmt = NULL;
- bsi.gsi->seq = NULL;
- }
+ bsi.gsi = NULL;
else
bsi.gsi = gsi_last (bb_seq (bb));
bsi.bb = bb;
@@ -975,7 +969,12 @@ op_iter_next_use (ssa_op_iter *ptr)
}
if (ptr->phi_i < ptr->num_phi)
{
+ /* FIXME tuples. */
+#if 0
return PHI_ARG_DEF_PTR (ptr->phi_stmt, (ptr->phi_i)++);
+#else
+ gcc_unreachable ();
+#endif
}
ptr->done = true;
return NULL_USE_OPERAND_P;
Index: tree-vect-analyze.c
===================================================================
--- tree-vect-analyze.c (revision 127911)
+++ tree-vect-analyze.c (working copy)
@@ -40,6 +40,8 @@ along with GCC; see the file COPYING3.
#include "tree-vectorizer.h"
#include "toplev.h"
+/* FIXME tuples. */
+#if 0
/* Main analysis functions. */
static loop_vec_info vect_analyze_loop_form (struct loop *);
static bool vect_analyze_data_refs (loop_vec_info);
@@ -3435,3 +3437,4 @@ vect_analyze_loop (struct loop *loop)
return loop_vinfo;
}
+#endif
Index: gimplify.c
===================================================================
--- gimplify.c (revision 127911)
+++ gimplify.c (working copy)
@@ -222,11 +222,14 @@ gimple_current_bind_expr (void)
/* Returns true iff there is a COND_EXPR between us and the innermost
CLEANUP_POINT_EXPR. This info is used by gimple_push_cleanup. */
+/* FIXME tuples. */
+#if 0
static bool
gimple_conditional_context (void)
{
return gimplify_ctxp->conditions > 0;
}
+#endif
/* Note that we've entered a COND_EXPR. */
@@ -4389,7 +4392,7 @@ gimplify_cleanup_point_expr (tree *expr_
is the cleanup action required. */
static void
-gimple_push_cleanup (tree var, tree cleanup, bool eh_only, gimple_seq pre_p)
+gimple_push_cleanup (tree var ATTRIBUTE_UNUSED, tree cleanup ATTRIBUTE_UNUSED, bool eh_only ATTRIBUTE_UNUSED, gimple_seq pre_p ATTRIBUTE_UNUSED)
{
/* FIXME tuples */
#if 0 /* FIXME tuples */
@@ -4923,10 +4926,15 @@ gimplify_scan_omp_clauses (tree *list_p,
gimplify_omp_ctxp = ctx;
push_gimplify_context ();
gimplify_stmt (&OMP_CLAUSE_REDUCTION_INIT (c), pre_p);
+ /* FIXME tuples. */
+#if 0
pop_gimplify_context (OMP_CLAUSE_REDUCTION_INIT (c));
push_gimplify_context ();
gimplify_stmt (&OMP_CLAUSE_REDUCTION_MERGE (c), pre_p);
pop_gimplify_context (OMP_CLAUSE_REDUCTION_MERGE (c));
+#else
+ gcc_unreachable ();
+#endif
gimplify_omp_ctxp = outer_ctx;
}
if (notice_outer)
@@ -5140,10 +5148,15 @@ gimplify_omp_parallel (tree *expr_p, gim
gimplify_stmt (&OMP_PARALLEL_BODY (expr), pre_p);
+ /* FIXME tuples. */
+#if 0
if (TREE_CODE (OMP_PARALLEL_BODY (expr)) == BIND_EXPR)
pop_gimplify_context (OMP_PARALLEL_BODY (expr));
else
pop_gimplify_context (NULL);
+#else
+ gcc_unreachable ();
+#endif
gimplify_adjust_omp_clauses (&OMP_PARALLEL_CLAUSES (expr));
Index: tree-ssa-phiopt.c
===================================================================
--- tree-ssa-phiopt.c (revision 127911)
+++ tree-ssa-phiopt.c (working copy)
@@ -34,6 +34,8 @@ along with GCC; see the file COPYING3.
#include "tree-dump.h"
#include "langhooks.h"
+/* FIXME tuples. */
+#if 0
static unsigned int tree_ssa_phiopt (void);
static bool conditional_replacement (basic_block, basic_block,
edge, edge, tree, tree, tree);
@@ -1031,3 +1033,4 @@ struct tree_opt_pass pass_phiopt =
0 /* letter */
,0 /* works_with_tuples_p */
};
+#endif
Index: calls.c
===================================================================
--- calls.c (revision 127911)
+++ calls.c (working copy)
@@ -236,7 +236,7 @@ prepare_call_address (rtx funexp, rtx st
denote registers used by the called function. */
static void
-emit_call_1 (rtx funexp, tree fntree, tree fndecl ATTRIBUTE_UNUSED,
+emit_call_1 (rtx funexp, tree fntree ATTRIBUTE_UNUSED, tree fndecl ATTRIBUTE_UNUSED,
tree funtype ATTRIBUTE_UNUSED,
HOST_WIDE_INT stack_size ATTRIBUTE_UNUSED,
HOST_WIDE_INT rounded_stack_size,
@@ -382,6 +382,8 @@ emit_call_1 (rtx funexp, tree fntree, tr
REG_NOTES (call_insn));
else
{
+ /* FIXME tuples */
+#if 0
int rn = lookup_stmt_eh_region (fntree);
/* If rn < 0, then either (1) tree-ssa not used or (2) doesn't
@@ -390,6 +392,9 @@ emit_call_1 (rtx funexp, tree fntree, tr
REG_NOTES (call_insn) = gen_rtx_EXPR_LIST (REG_EH_REGION, GEN_INT (rn),
REG_NOTES (call_insn));
note_current_region_may_contain_throw ();
+#else
+ gcc_unreachable ();
+#endif
}
if (ecf_flags & ECF_NORETURN)
@@ -2256,12 +2261,17 @@ expand_call (tree exp, rtx target, int i
expanding a call, as that means we're an argument. Don't try if
there's cleanups, as we know there's code to follow the call. */
+ /* FIXME tuples. */
+#if 0
if (currently_expanding_call++ != 0
|| !flag_optimize_sibling_calls
|| args_size.var
|| lookup_stmt_eh_region (exp) >= 0
|| dbg_cnt (tail_call) == false)
try_tail_call = 0;
+#else
+ gcc_unreachable ();
+#endif
/* Rest of purposes for tail call optimizations to fail. */
if (
@@ -3310,7 +3320,7 @@ emit_library_call_value_1 (int retval, r
#ifdef REG_PARM_STACK_SPACE
/* Define the boundary of the register parm stack space that needs to be
save, if any. */
- int low_to_save, high_to_save;
+ int low_to_save = 0, high_to_save = 0;
rtx save_area = 0; /* Place that it is saved. */
#endif
Index: tree-ssa-coalesce.c
===================================================================
--- tree-ssa-coalesce.c (revision 127911)
+++ tree-ssa-coalesce.c (working copy)
@@ -33,6 +33,8 @@ along with GCC; see the file COPYING3.
#include "toplev.h"
+/* FIXME tuples. */
+#if 0
/* This set of routines implements a coalesce_list. This is an object which
is used to track pairs of ssa_names which are desirable to coalesce
together to avoid copies. Costs are associated with each pair, and when
@@ -1372,4 +1374,4 @@ coalesce_ssa_name (void)
return map;
}
-
+#endif
Index: tree-dfa.c
===================================================================
--- tree-dfa.c (revision 127911)
+++ tree-dfa.c (working copy)
@@ -230,7 +230,12 @@ make_rename_temp (tree type, const char
if (gimple_referenced_vars (cfun))
{
add_referenced_var (t);
+ /* FIXME tuples */
+#if 0
mark_sym_for_renaming (t);
+#else
+ gcc_unreachable ();
+#endif
}
return t;
@@ -539,7 +544,10 @@ static void
collect_dfa_stats (struct dfa_stats_d *dfa_stats_p)
{
struct pointer_set_t *pset;
+ /* FIXME tuples */
+#if 0
basic_block bb;
+#endif
block_stmt_iterator i;
gcc_assert (dfa_stats_p);
@@ -557,6 +565,8 @@ collect_dfa_stats (struct dfa_stats_d *d
pointer_set_destroy (pset);
+ /* FIXME tuples */
+#if 0
FOR_EACH_BB (bb)
{
tree phi;
@@ -568,6 +578,7 @@ collect_dfa_stats (struct dfa_stats_d *d
dfa_stats_p->max_num_phi_args = PHI_NUM_ARGS (phi);
}
}
+#endif
}
@@ -575,9 +586,11 @@ collect_dfa_stats (struct dfa_stats_d *d
children. */
static tree
-collect_dfa_stats_r (tree *tp, int *walk_subtrees ATTRIBUTE_UNUSED,
- void *data)
+collect_dfa_stats_r (tree *tp ATTRIBUTE_UNUSED, int *walk_subtrees ATTRIBUTE_UNUSED,
+ void *data ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples */
+#if 0
tree t = *tp;
struct dfa_stats_d *dfa_stats_p = (struct dfa_stats_d *)data;
@@ -605,6 +618,9 @@ collect_dfa_stats_r (tree *tp, int *walk
}
return NULL;
+#else
+ gcc_unreachable ();
+#endif
}
@@ -823,8 +839,10 @@ get_virtual_var (tree var)
combination push_stmt_changes/pop_stmt_changes. */
void
-mark_symbols_for_renaming (gimple stmt)
+mark_symbols_for_renaming (gimple stmt ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples */
+#if 0
tree op;
ssa_op_iter iter;
@@ -834,6 +852,9 @@ mark_symbols_for_renaming (gimple stmt)
FOR_EACH_SSA_TREE_OPERAND (op, stmt, iter, SSA_OP_ALL_OPERANDS)
if (DECL_P (op))
mark_sym_for_renaming (op);
+#else
+ gcc_unreachable ();
+#endif
}
@@ -849,7 +870,12 @@ find_new_referenced_vars_1 (tree *tp, in
if (TREE_CODE (t) == VAR_DECL && !var_ann (t))
{
add_referenced_var (t);
+ /* FIXME tuples */
+#if 0
mark_sym_for_renaming (t);
+#else
+ gcc_unreachable ();
+#endif
}
if (IS_TYPE_OR_DECL_P (t))
Index: cfgexpand.c
===================================================================
--- cfgexpand.c (revision 127911)
+++ cfgexpand.c (working copy)
@@ -1222,6 +1222,8 @@ expand_used_vars (void)
for STMT to the dump file. SINCE is the last RTX after which the RTL
generated for STMT should have been appended. */
+/* FIXME tuples. */
+#if 0
static void
maybe_dump_rtl_for_tree_stmt (tree stmt, rtx since)
{
@@ -1234,6 +1236,7 @@ maybe_dump_rtl_for_tree_stmt (tree stmt,
print_rtl (dump_file, since ? NEXT_INSN (since) : since);
}
}
+#endif
/* Maps the blocks that do not contain tree labels to rtx labels. */
@@ -1241,8 +1244,10 @@ static struct pointer_map_t *lab_rtx_for
/* Returns the label_rtx expression for a label starting basic block BB. */
+/* FIXME tuples. */
+#if 0
static rtx
-label_rtx_for_bb (basic_block bb)
+label_rtx_for_bb (basic_block bb ATTRIBUTE_UNUSED)
{
tree_stmt_iterator *gsi;
tree lab;
@@ -1275,11 +1280,14 @@ label_rtx_for_bb (basic_block bb)
*elt = gen_label_rtx ();
return (rtx) *elt;
}
+#endif
/* A subroutine of expand_gimple_basic_block. Expand one COND_EXPR.
Returns a new basic block if we've terminated the current basic
block and created a new one. */
+/* FIXME tuples. */
+#if 0
static basic_block
expand_gimple_cond_expr (basic_block bb, tree stmt)
{
@@ -1312,8 +1320,13 @@ expand_gimple_cond_expr (basic_block bb,
jumpif (pred, label_rtx_for_bb (true_edge->dest));
add_reg_br_prob_note (last, true_edge->probability);
maybe_dump_rtl_for_tree_stmt (stmt, last);
+ /* FIXME tuples. */
+#if 0
if (!IS_LOCATION_EMPTY (true_edge->goto_locus))
set_curr_insn_source_location (true_edge->goto_locus);
+#else
+ gcc_unreachable ();
+#endif
false_edge->flags |= EDGE_FALLTHRU;
return NULL;
}
@@ -1322,8 +1335,13 @@ expand_gimple_cond_expr (basic_block bb,
jumpifnot (pred, label_rtx_for_bb (false_edge->dest));
add_reg_br_prob_note (last, false_edge->probability);
maybe_dump_rtl_for_tree_stmt (stmt, last);
+ /* FIXME tuples. */
+#if 0
if (!IS_LOCATION_EMPTY (false_edge->goto_locus))
set_curr_insn_source_location (false_edge->goto_locus);
+#else
+ gcc_unreachable ();
+#endif
true_edge->flags |= EDGE_FALLTHRU;
return NULL;
}
@@ -1353,11 +1371,17 @@ expand_gimple_cond_expr (basic_block bb,
maybe_dump_rtl_for_tree_stmt (stmt, last2);
+ /* FIXME tuples. */
+#if 0
if (!IS_LOCATION_EMPTY (false_edge->goto_locus))
set_curr_insn_source_location (false_edge->goto_locus);
+#else
+ gcc_unreachable ();
+#endif
return new_bb;
}
+#endif
/* A subroutine of expand_gimple_basic_block. Expand one CALL_EXPR
that has CALL_EXPR_TAILCALL set. Returns non-null if we actually
@@ -1369,6 +1393,8 @@ expand_gimple_cond_expr (basic_block bb,
where the NaN result goes through the external function (with a
tailcall) and the normal result happens via a sqrt instruction. */
+/* FIXME tuples. */
+#if 0
static basic_block
expand_gimple_tailcall (basic_block bb, tree stmt, bool *can_fallthru)
{
@@ -1465,12 +1491,15 @@ expand_gimple_tailcall (basic_block bb,
return bb;
}
+#endif
/* Expand basic block BB from GIMPLE trees to RTL. */
static basic_block
expand_gimple_basic_block (basic_block bb)
{
+ /* FIXME tuples. */
+#if 0
tree_stmt_iterator tsi;
tree stmts = bb_seq (bb);
tree stmt = NULL;
@@ -1637,6 +1666,9 @@ expand_gimple_basic_block (basic_block b
BB_END (bb) = last;
update_bb_for_insn (bb);
+#else
+ gcc_unreachable ();
+#endif
return bb;
}
Index: tree-cfgcleanup.c
===================================================================
--- tree-cfgcleanup.c (revision 127911)
+++ tree-cfgcleanup.c (working copy)
@@ -56,6 +56,9 @@ along with GCC; see the file COPYING3.
what cleanups it makes sense to try on the block. */
bitmap cfgcleanup_altered_bbs;
+/* FIXME tuples. */
+#if 0
+
/* Remove any fallthru edge from EV. Return true if an edge was removed. */
static bool
@@ -813,6 +816,7 @@ remove_forwarder_block_with_phi (basic_b
to DEST. */
delete_basic_block (bb);
}
+#endif
/* This pass merges PHI nodes if one feeds into another. For example,
suppose we have the following:
@@ -842,6 +846,8 @@ remove_forwarder_block_with_phi (basic_b
static unsigned int
merge_phi_nodes (void)
{
+ /* FIXME tuples */
+#if 0
basic_block *worklist = XNEWVEC (basic_block, n_basic_blocks);
basic_block *current = worklist;
basic_block bb;
@@ -919,6 +925,9 @@ merge_phi_nodes (void)
free (worklist);
return 0;
+#else
+ gcc_unreachable ();
+#endif
}
static bool
@@ -927,7 +936,8 @@ gate_merge_phi (void)
return 1;
}
-struct tree_opt_pass pass_merge_phi = {
+struct tree_opt_pass pass_merge_phi =
+{
"mergephi", /* name */
gate_merge_phi, /* gate */
merge_phi_nodes, /* execute */
Index: tree-ssa-pre.c
===================================================================
--- tree-ssa-pre.c (revision 127911)
+++ tree-ssa-pre.c (working copy)
@@ -46,6 +46,8 @@ along with GCC; see the file COPYING3.
#include "cfgloop.h"
#include "tree-ssa-sccvn.h"
+/* FIXME tuples. */
+#if 0
/* TODO:
1. Avail sets can be shared by making an avail_find_leader that
@@ -3192,8 +3194,6 @@ insert_fake_stores (void)
static void
realify_fake_stores (void)
{
- /* FIXME tuples */
-#if 0
unsigned int i;
tree stmt;
@@ -3224,7 +3224,6 @@ realify_fake_stores (void)
else
release_defs (stmt);
}
-#endif
}
/* Given an SSA_NAME, see if SCCVN has a value number for it, and if
@@ -3910,14 +3909,16 @@ fini_pre (void)
if (current_loops != NULL)
loop_optimizer_finalize ();
}
+#endif
/* Main entry point to the SSA-PRE pass. DO_FRE is true if the caller
only wants to do full redundancy elimination. */
static void
-execute_pre (bool do_fre)
+execute_pre (bool do_fre ATTRIBUTE_UNUSED)
{
-
+ /* FIXME tuples. */
+#if 0
do_partial_partial = optimize > 2;
init_pre (do_fre);
@@ -3976,6 +3977,7 @@ execute_pre (bool do_fre)
}
fini_pre ();
+#endif
}
/* Gate and execute functions for PRE. */
Index: tree-ssa-live.c
===================================================================
--- tree-ssa-live.c (revision 127911)
+++ tree-ssa-live.c (working copy)
@@ -32,6 +32,8 @@ along with GCC; see the file COPYING3.
#include "debug.h"
#include "flags.h"
+/* FIXME tuples. */
+#if 0
#ifdef ENABLE_CHECKING
static void verify_live_on_entry (tree_live_info_p);
#endif
@@ -1098,3 +1100,4 @@ verify_live_on_entry (tree_live_info_p l
gcc_assert (num <= 0);
}
#endif
+#endif
Index: tree-sra.c
===================================================================
--- tree-sra.c (revision 127911)
+++ tree-sra.c (working copy)
@@ -50,6 +50,8 @@ along with GCC; see the file COPYING3.
#include "params.h"
+/* FIXME tuples. */
+#if 0
/* This object of this pass is to replace a non-addressable aggregate with a
set of independent variables. Most of the time, all of these variables
will be scalars. But a secondary objective is to break up larger
@@ -1612,7 +1614,12 @@ decide_instantiations (void)
}
bitmap_clear (&done_head);
+ /* FIXME tuples. */
+#if 0
mark_set_for_renaming (sra_candidates);
+#else
+ gcc_unreachable ();
+#endif
if (dump_file)
fputc ('\n', dump_file);
@@ -1637,7 +1644,12 @@ mark_all_v_defs_1 (tree stmt)
{
if (TREE_CODE (sym) == SSA_NAME)
sym = SSA_NAME_VAR (sym);
+ /* FIXME tuples. */
+#if 0
mark_sym_for_renaming (sym);
+#else
+ gcc_unreachable ();
+#endif
}
}
@@ -2380,12 +2392,16 @@ sra_init_cache (void)
sra_type_decomp_cache = BITMAP_ALLOC (NULL);
sra_type_inst_cache = BITMAP_ALLOC (NULL);
}
+#endif
+
/* Main entry point. */
static unsigned int
tree_sra (void)
{
+ /* FIXME tuples. */
+#if 0
/* Initialize local variables. */
todoflags = 0;
gcc_obstack_init (&sra_obstack);
@@ -2413,11 +2429,16 @@ tree_sra (void)
BITMAP_FREE (sra_type_inst_cache);
obstack_free (&sra_obstack, NULL);
return todoflags;
+#else
+ gcc_unreachable ();
+#endif
}
static unsigned int
tree_sra_early (void)
{
+ /* FIXME tuples. */
+#if 0
unsigned int ret;
early_sra = true;
@@ -2425,6 +2446,9 @@ tree_sra_early (void)
early_sra = false;
return ret & ~TODO_rebuild_alias;
+#else
+ gcc_unreachable ();
+#endif
}
static bool
Index: tree-predcom.c
===================================================================
--- tree-predcom.c (revision 127911)
+++ tree-predcom.c (working copy)
@@ -202,6 +202,8 @@ along with GCC; see the file COPYING3.
#include "tree-affine.h"
#include "tree-inline.h"
+ /* FIXME tuples. */
+#if 0
/* The maximum number of iterations between the considered memory
references. */
@@ -2579,12 +2581,15 @@ end: ;
return unroll;
}
+#endif
/* Runs predictive commoning. */
unsigned
tree_predictive_commoning (void)
{
+ /* FIXME tuples. */
+#if 0
bool unrolled = false;
struct loop *loop;
loop_iterator li;
@@ -2604,4 +2609,7 @@ tree_predictive_commoning (void)
free_original_copy_tables ();
return ret;
+#else
+ gcc_unreachable ();
+#endif
}
Index: tree-mudflap.c
===================================================================
--- tree-mudflap.c (revision 127911)
+++ tree-mudflap.c (working copy)
@@ -56,7 +56,10 @@ along with GCC; see the file COPYING3.
/* Helpers. */
static tree mf_build_string (const char *string);
static tree mf_varname_tree (tree);
+/* FIXME tuples. */
+#if 0
static tree mf_file_function_line_tree (location_t);
+#endif
/* Indirection-related instrumentation. */
static void mf_decl_cache_locals (void);
@@ -197,6 +200,8 @@ mf_varname_tree (tree decl)
/* And another friend, for producing a simpler message. */
+/* FIXME tuples. */
+#if 0
static tree
mf_file_function_line_tree (location_t location)
{
@@ -243,6 +248,7 @@ mf_file_function_line_tree (location_t l
return result;
}
+#endif
/* global tree nodes */
@@ -466,11 +472,21 @@ mf_decl_cache_locals (void)
globals into the cache variables. */
g = build_gimple_assign (mf_cache_shift_decl_l, mf_cache_shift_decl);
set_gimple_locus (g, DECL_SOURCE_LOCATION (current_function_decl));
+ /* FIXME tuples. */
+#if 0
insert_edge_copies (g, ENTRY_BLOCK_PTR);
+#else
+ gcc_unreachable ();
+#endif
g = build_gimple_assign (mf_cache_mask_decl_l, mf_cache_mask_decl);
set_gimple_locus (g, DECL_SOURCE_LOCATION (current_function_decl));
+ /* FIXME tuples. */
+#if 0
insert_edge_copies (g, ENTRY_BLOCK_PTR);
+#else
+ gcc_unreachable ();
+#endif
bsi_commit_edge_inserts ();
}
@@ -484,6 +500,8 @@ mf_decl_clear_locals (void)
mf_cache_mask_decl_l = NULL_TREE;
}
+/* FIXME tuples. */
+#if 0
static void
mf_build_check_statement_for (tree base, tree limit,
block_stmt_iterator *instr_bsi,
@@ -661,7 +679,12 @@ mf_build_check_statement_for (tree base,
the statement we're instrumenting was originally in. */
bsi = bsi_last (cond_bb);
for (tsi = head; ! tsi_end_p (tsi); tsi_next (&tsi))
+ /* FIXME tuples. */
+#if 0
bsi_insert_after (&bsi, tsi_stmt (tsi), BSI_CONTINUE_LINKING);
+#else
+ gcc_unreachable ();
+#endif
/* Now build up the body of the cache-miss handling:
@@ -699,10 +722,16 @@ mf_build_check_statement_for (tree base,
/* Insert the check code in the THEN block. */
bsi = bsi_start (then_bb);
for (tsi = head; ! tsi_end_p (tsi); tsi_next (&tsi))
+ /* FIXME tuples. */
+#if 0
bsi_insert_after (&bsi, tsi_stmt (tsi), BSI_CONTINUE_LINKING);
+#else
+ gcc_unreachable ();
+#endif
*instr_bsi = bsi_start (join_bb);
}
+#endif
/* Check whether the given decl, generally a VAR_DECL or PARM_DECL, is
@@ -727,6 +756,8 @@ mf_decl_eligible_p (tree decl)
}
+/* FIXME tuples. */
+#if 0
static void
mf_xform_derefs_1 (block_stmt_iterator *iter, tree *tp,
location_t *locus, tree dirflag)
@@ -910,6 +941,7 @@ mf_xform_derefs_1 (block_stmt_iterator *
mf_build_check_statement_for (base, limit, iter, locus, dirflag);
}
+#endif
static void
mf_xform_derefs (void)
@@ -924,6 +956,8 @@ mf_xform_derefs (void)
next = bb->next_bb;
for (i = bsi_start (bb); !bsi_end_p (i); bsi_next (&i))
{
+ /* FIXME tuples. */
+#if 0
tree s = bsi_stmt (i);
/* Only a few GIMPLE statements can reference memory. */
@@ -952,6 +986,9 @@ mf_xform_derefs (void)
default:
;
}
+#else
+ gcc_unreachable ();
+#endif
}
bb = next;
}
Index: ipa-prop.c
===================================================================
--- ipa-prop.c (revision 127911)
+++ ipa-prop.c (working copy)
@@ -31,6 +31,8 @@ along with GCC; see the file COPYING3.
#include "flags.h"
#include "timevar.h"
+/* FIXME tuples. */
+#if 0
/* This file contains interfaces that can be used for various IPA
optimizations:
@@ -659,3 +661,4 @@ ipa_method_modify_print (FILE * f)
}
}
}
+#endif
Index: tree-ssa-copy.c
===================================================================
--- tree-ssa-copy.c (revision 127911)
+++ tree-ssa-copy.c (working copy)
@@ -57,8 +57,10 @@ along with GCC; see the file COPYING3.
/* Return true if we may propagate ORIG into DEST, false otherwise. */
bool
-may_propagate_copy (tree dest, tree orig)
+may_propagate_copy (tree dest ATTRIBUTE_UNUSED, tree orig ATTRIBUTE_UNUSED)
{
+/* FIXME tuples. */
+#if 0
tree type_d = TREE_TYPE (dest);
tree type_o = TREE_TYPE (orig);
@@ -179,8 +181,13 @@ may_propagate_copy (tree dest, tree orig
/* Anything else is OK. */
return true;
+#else
+ gcc_unreachable ();
+#endif
}
+/* FIXME tuples. */
+#if 0
/* Similarly, but we know that we're propagating into an ASM_EXPR. */
bool
@@ -308,6 +315,7 @@ replace_exp_1 (use_operand_p op_p, tree
else
SET_USE (op_p, unsave_expr_now (val));
}
+#endif
/* Propagate the value VAL (assumed to be a constant or another SSA_NAME)
@@ -317,12 +325,19 @@ replace_exp_1 (use_operand_p op_p, tree
checks to ensure validity of the const/copy propagation. */
void
-propagate_value (use_operand_p op_p, tree val)
+propagate_value (use_operand_p op_p ATTRIBUTE_UNUSED, tree val ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
replace_exp_1 (op_p, val, true);
+#else
+ gcc_unreachable ();
+#endif
}
+/* FIXME tuples. */
+#if 0
/* Propagate the value VAL (assumed to be a constant or another SSA_NAME)
into the tree pointed to by OP_P.
@@ -1112,6 +1127,7 @@ execute_copy_prop (bool store_copy_prop)
ssa_propagate (copy_prop_visit_stmt, copy_prop_visit_phi_node);
fini_copy_prop ();
}
+#endif
static bool
@@ -1123,8 +1139,13 @@ gate_copy_prop (void)
static unsigned int
do_copy_prop (void)
{
+ /* FIXME tuples. */
+#if 0
execute_copy_prop (false);
return 0;
+#else
+ gcc_unreachable ();
+#endif
}
struct tree_opt_pass pass_copy_prop =
@@ -1162,9 +1183,14 @@ gate_store_copy_prop (void)
static unsigned int
store_copy_prop (void)
{
+ /* FIXME tuples. */
+#if 0
/* If STORE-COPY-PROP is not enabled, we just run regular COPY-PROP. */
execute_copy_prop (flag_tree_store_copy_prop != 0);
return 0;
+#else
+ gcc_unreachable ();
+#endif
}
struct tree_opt_pass pass_store_copy_prop =
Index: tree-ssa-forwprop.c
===================================================================
--- tree-ssa-forwprop.c (revision 127911)
+++ tree-ssa-forwprop.c (working copy)
@@ -34,6 +34,8 @@ along with GCC; see the file COPYING3.
#include "langhooks.h"
#include "flags.h"
+/* FIXME tuples. */
+#if 0
/* This pass propagates the RHS of assignment statements into use
sites of the LHS of the assignment. It's basically a specialized
form of tree combination. It is hoped all of this can disappear
@@ -1369,3 +1371,4 @@ struct tree_opt_pass pass_phiprop = {
0 /* letter */
,0 /* works_with_tuples_p */
};
+#endif
Index: tree-ssa-dce.c
===================================================================
--- tree-ssa-dce.c (revision 127911)
+++ tree-ssa-dce.c (working copy)
@@ -67,6 +67,8 @@ along with GCC; see the file COPYING3.
#include "cfgloop.h"
#include "tree-scalar-evolution.h"
+/* FIXME tuples. */
+#if 0
static struct stmt_stats
{
int total;
@@ -955,3 +957,4 @@ struct tree_opt_pass pass_cd_dce =
0 /* letter */
,0 /* works_with_tuples_p */
};
+#endif
Index: tree-vect-patterns.c
===================================================================
--- tree-vect-patterns.c (revision 127911)
+++ tree-vect-patterns.c (working copy)
@@ -40,6 +40,8 @@ along with GCC; see the file COPYING3.
#include "recog.h"
#include "toplev.h"
+/* FIXME tuples. */
+#if 0
/* Function prototypes */
static void vect_pattern_recog_1
(tree (* ) (tree, tree *, tree *), block_stmt_iterator);
@@ -830,3 +832,4 @@ vect_pattern_recog (loop_vec_info loop_v
}
}
}
+#endif
Index: tree-ssa-ter.c
===================================================================
--- tree-ssa-ter.c (revision 127911)
+++ tree-ssa-ter.c (working copy)
@@ -31,6 +31,8 @@ along with GCC; see the file COPYING3.
#include "tree-ssa-live.h"
+/* FIXME tuples. */
+#if 0
/* Temporary Expression Replacement (TER)
Replace SSA version variables during out-of-ssa with their defining
@@ -733,3 +735,4 @@ debug_ter (FILE *f, temp_expr_table_p t)
fprintf (f, "\n----------\n");
}
#endif
+#endif
Index: tree-ssa.c
===================================================================
--- tree-ssa.c (revision 127911)
+++ tree-ssa.c (working copy)
@@ -45,6 +45,8 @@ along with GCC; see the file COPYING3.
#include "tree-pass.h"
#include "toplev.h"
+/* FIXME tuples. */
+#if 0
/* Remove the corresponding arguments from the PHI nodes in E's
destination block and redirect it to DEST. Return redirected edge.
The list of removed arguments is stored in PENDING_STMT (e). */
@@ -884,6 +886,7 @@ delete_tree_ssa (void)
cfun->gimple_df = NULL;
}
+#endif
/* Helper function for useless_type_conversion_p. */
@@ -1082,6 +1085,8 @@ tree_ssa_useless_type_conversion (tree e
}
+/* FIXME tuples. */
+#if 0
/* Internal helper for walk_use_def_chains. VAR, FN and DATA are as
described in walk_use_def_chains.
@@ -1380,3 +1385,4 @@ struct tree_opt_pass pass_late_warn_unin
0 /* letter */
,0 /* works_with_tuples_p */
};
+#endif
Index: lambda-code.c
===================================================================
--- lambda-code.c (revision 127911)
+++ lambda-code.c (working copy)
@@ -1250,6 +1250,8 @@ gcc_loop_to_lambda_loop (struct loop *lo
phi = SSA_NAME_DEF_STMT (inductionvar);
if (TREE_CODE (phi) != PHI_NODE)
{
+/* FIXME tuples. */
+#if 0
phi = SINGLE_SSA_TREE_OPERAND (phi, SSA_OP_USE);
if (!phi)
{
@@ -1270,7 +1272,9 @@ gcc_loop_to_lambda_loop (struct loop *lo
"Unable to convert loop: Cannot find PHI node for induction variable\n");
return NULL;
}
-
+#else
+ gcc_unreachable ();
+#endif
}
/* The induction variable name/version we want to put in the array is the
@@ -1522,10 +1526,12 @@ gcc_loopnest_to_lambda_loopnest (struct
variables for the loop this LBV is from. TYPE is the tree type to use for
the variables and trees involved. */
+/* FIXME tuples. */
+#if 0
static tree
lbv_to_gcc_expression (lambda_body_vector lbv,
tree type, VEC(tree,heap) *induction_vars,
- tree *stmts_to_insert)
+ tree *stmts_to_insert ATTRIBUTE_UNUSED)
{
int k;
tree resvar;
@@ -1540,6 +1546,7 @@ lbv_to_gcc_expression (lambda_body_vecto
add_referenced_var (resvar);
return force_gimple_operand (fold (expr), stmts_to_insert, true, resvar);
}
+#endif
/* Convert a linear expression from coefficient and constant form to a
gcc tree.
@@ -1554,6 +1561,8 @@ lbv_to_gcc_expression (lambda_body_vecto
STMTS_TO_INSERT Is a pointer to the statement list we fill in with
statements that need to be inserted for the linear expression. */
+ /* FIXME tuples. */
+#if 0
static tree
lle_to_gcc_expression (lambda_linear_expression lle,
lambda_linear_expression offset,
@@ -1614,6 +1623,7 @@ lle_to_gcc_expression (lambda_linear_exp
add_referenced_var (resvar);
return force_gimple_operand (fold (expr), stmts_to_insert, true, resvar);
}
+#endif
/* Remove the induction variable defined at IV_STMT. */
@@ -1626,17 +1636,25 @@ remove_iv (tree iv_stmt)
for (i = 0; i < PHI_NUM_ARGS (iv_stmt); i++)
{
+ /* FIXME tuples. */
+#if 0
tree stmt;
imm_use_iterator imm_iter;
+#endif
tree arg = PHI_ARG_DEF (iv_stmt, i);
bool used = false;
if (TREE_CODE (arg) != SSA_NAME)
continue;
+ /* FIXME tuples. */
+#if 0
FOR_EACH_IMM_USE_STMT (stmt, imm_iter, arg)
if (stmt != iv_stmt)
used = true;
+#else
+ gcc_unreachable ();
+#endif
if (!used)
remove_iv (SSA_NAME_DEF_STMT (arg));
@@ -1646,10 +1664,15 @@ remove_iv (tree iv_stmt)
}
else
{
+ /* FIXME tuples. */
+#if 0
block_stmt_iterator bsi = bsi_for_stmt (iv_stmt);
bsi_remove (&bsi, true);
release_defs (iv_stmt);
+#else
+ gcc_unreachable ();
+#endif
}
}
@@ -1667,12 +1690,14 @@ remove_iv (tree iv_stmt)
NEW_LOOPNEST. */
void
-lambda_loopnest_to_gcc_loopnest (struct loop *old_loopnest,
- VEC(tree,heap) *old_ivs,
- VEC(tree,heap) *invariants,
- lambda_loopnest new_loopnest,
- lambda_trans_matrix transform)
+lambda_loopnest_to_gcc_loopnest (struct loop *old_loopnest ATTRIBUTE_UNUSED,
+ VEC(tree,heap) *old_ivs ATTRIBUTE_UNUSED,
+ VEC(tree,heap) *invariants ATTRIBUTE_UNUSED,
+ lambda_loopnest new_loopnest ATTRIBUTE_UNUSED,
+ lambda_trans_matrix transform ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
struct loop *temp;
size_t i = 0;
size_t depth = 0;
@@ -1746,6 +1771,7 @@ lambda_loopnest_to_gcc_loopnest (struct
exitcond = get_loop_exit_condition (temp);
bb = gimple_bb (exitcond);
bsi = bsi_after_labels (bb);
+ /* FIXME tuples. */
if (stmts)
bsi_insert_before (&bsi, stmts, BSI_NEW_STMT);
@@ -1840,11 +1866,16 @@ lambda_loopnest_to_gcc_loopnest (struct
remove_iv (oldiv_stmt);
}
VEC_free (tree, heap, new_ivs);
+#else
+ gcc_unreachable ();
+#endif
}
/* Return TRUE if this is not interesting statement from the perspective of
determining if we have a perfect loop nest. */
+/* FIXME tuples. */
+#if 0
static bool
not_interesting_stmt (tree stmt)
{
@@ -1856,9 +1887,12 @@ not_interesting_stmt (tree stmt)
return true;
return false;
}
+#endif
/* Return TRUE if PHI uses DEF for it's in-the-loop edge for LOOP. */
+/* FIXME tuples. */
+#if 0
static bool
phi_loop_edge_uses_def (struct loop *loop, tree phi, tree def)
{
@@ -1869,9 +1903,12 @@ phi_loop_edge_uses_def (struct loop *loo
return true;
return false;
}
+#endif
/* Return TRUE if STMT is a use of PHI_RESULT. */
+ /* FIXME tuples. */
+#if 0
static bool
stmt_uses_phi_result (tree stmt, tree phi_result)
{
@@ -1881,6 +1918,7 @@ stmt_uses_phi_result (tree stmt, tree ph
of the form x +- constant for our pass. */
return (use == phi_result);
}
+#endif
/* STMT is a bumper stmt for LOOP if the version it defines is used in the
in-loop-edge in a phi node, and the operand it uses is the result of that
@@ -1888,6 +1926,8 @@ stmt_uses_phi_result (tree stmt, tree ph
I.E. i_29 = i_3 + 1
i_3 = PHI (0, i_29); */
+ /* FIXME tuples. */
+#if 0
static bool
stmt_is_bumper_for_loop (struct loop *loop, tree stmt)
{
@@ -1912,6 +1952,7 @@ stmt_is_bumper_for_loop (struct loop *lo
}
return false;
}
+#endif
/* Return true if LOOP is a perfect loop nest.
@@ -1941,8 +1982,10 @@ stmt_is_bumper_for_loop (struct loop *lo
the induction variable increment, and jump back to the top of the loop). */
bool
-perfect_nest_p (struct loop *loop)
+perfect_nest_p (struct loop *loop ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
basic_block *bbs;
size_t i;
tree exit_cond;
@@ -1973,6 +2016,9 @@ perfect_nest_p (struct loop *loop)
if (loop->inner)
return perfect_nest_p (loop->inner);
return true;
+#else
+ gcc_unreachable ();
+#endif
}
/* Replace the USES of X in STMT, or uses with the same step as X with Y.
@@ -1981,6 +2027,8 @@ perfect_nest_p (struct loop *loop)
iterator where new temporaries should be inserted at the beginning
of body basic block. */
+ /* FIXME tuples */
+#if 0
static void
replace_uses_equiv_to_x_with_y (struct loop *loop, tree stmt, tree x,
int xstep, tree y, tree yinit,
@@ -2074,13 +2122,15 @@ replace_uses_equiv_to_x_with_y (struct l
*(struct tree_map **) loc = h;
}
}
+#endif
/* Return true if STMT is an exit PHI for LOOP */
+ /* FIXME tuples. */
+#if 0
static bool
exit_phi_for_loop_p (struct loop *loop, tree stmt)
{
-
if (TREE_CODE (stmt) != PHI_NODE
|| PHI_NUM_ARGS (stmt) != 1
|| gimple_bb (stmt) != single_exit (loop)->dest)
@@ -2088,10 +2138,13 @@ exit_phi_for_loop_p (struct loop *loop,
return true;
}
+#endif
/* Return true if STMT can be put back into the loop INNER, by
copying it to the beginning of that loop and changing the uses. */
+ /* FIXME tuples. */
+#if 0
static bool
can_put_in_inner_loop (struct loop *inner, tree stmt)
{
@@ -2115,8 +2168,12 @@ can_put_in_inner_loop (struct loop *inne
}
return true;
}
+#endif
/* Return true if STMT can be put *after* the inner loop of LOOP. */
+
+ /* FIXME tuples. */
+#if 0
static bool
can_put_after_inner_loop (struct loop *loop, tree stmt)
{
@@ -2141,6 +2198,7 @@ can_put_after_inner_loop (struct loop *l
}
return true;
}
+#endif
@@ -2149,8 +2207,10 @@ can_put_after_inner_loop (struct loop *l
depth 2, where all of the statements occur after the inner loop. */
static bool
-can_convert_to_perfect_nest (struct loop *loop)
+can_convert_to_perfect_nest (struct loop *loop ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
basic_block *bbs;
tree exit_condition, phi;
size_t i;
@@ -2272,6 +2332,9 @@ can_convert_to_perfect_nest (struct loop
fail:
free (bbs);
return false;
+#else
+ gcc_unreachable ();
+#endif
}
/* Transform the loop nest into a perfect nest, if possible.
@@ -2311,12 +2374,14 @@ can_convert_to_perfect_nest (struct loop
Return FALSE if we can't make this loop into a perfect nest. */
static bool
-perfect_nestify (struct loop *loop,
- VEC(tree,heap) *lbounds,
- VEC(tree,heap) *ubounds,
- VEC(int,heap) *steps,
- VEC(tree,heap) *loopivs)
+perfect_nestify (struct loop *loop ATTRIBUTE_UNUSED,
+ VEC(tree,heap) *lbounds ATTRIBUTE_UNUSED,
+ VEC(tree,heap) *ubounds ATTRIBUTE_UNUSED,
+ VEC(int,heap) *steps ATTRIBUTE_UNUSED,
+ VEC(tree,heap) *loopivs ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
basic_block *bbs;
tree exit_condition;
tree cond_stmt;
@@ -2502,6 +2567,9 @@ perfect_nestify (struct loop *loop,
free (bbs);
htab_delete (replacements);
return perfect_nest_p (loop);
+#else
+ gcc_unreachable ();
+#endif
}
/* Return true if TRANS is a legal transformation matrix that respects
Index: tree-ssa-loop-prefetch.c
===================================================================
--- tree-ssa-loop-prefetch.c (revision 127911)
+++ tree-ssa-loop-prefetch.c (working copy)
@@ -48,6 +48,8 @@ along with GCC; see the file COPYING3.
#include "tree-data-ref.h"
#include "optabs.h"
+/* FIXME tuples. */
+#if 0
/* This pass inserts prefetch instructions to optimize cache usage during
accesses to arrays in loops. It processes loops sequentially and:
@@ -1594,3 +1596,4 @@ tree_ssa_prefetch_arrays (void)
free_original_copy_tables ();
return todo_flags;
}
+#endif
Index: tree-inline.c
===================================================================
--- tree-inline.c (revision 127911)
+++ tree-inline.c (working copy)
@@ -124,6 +124,8 @@ eni_weights eni_size_weights;
eni_weights eni_time_weights;
+/* FIXME tuples. */
+#if 0
/* Prototypes. */
static tree declare_return_variable (copy_body_data *, tree, tree, tree *);
@@ -136,12 +138,16 @@ static tree mark_local_for_remap_r (tree
static void unsave_expr_1 (tree);
static tree unsave_r (tree *, int *, void *);
static void declare_inline_vars (tree, tree);
+#endif
static void remap_save_expr (tree *, void *, int *);
+/* FIXME tuples. */
+#if 0
static void add_lexical_block (tree current_block, tree new_block);
static tree copy_decl_to_var (tree, copy_body_data *);
static tree copy_result_decl_to_var (tree, copy_body_data *);
static tree copy_decl_no_change (tree, copy_body_data *);
static tree copy_decl_maybe_to_var (tree, copy_body_data *);
+#endif
/* Insert a tree->tree mapping for ID. Despite the name suggests
that the trees should be variables, it is used for more than that. */
@@ -157,6 +163,8 @@ insert_decl_map (copy_body_data *id, tre
*pointer_map_insert (id->decl_map, value) = value;
}
+/* FIXME tuples. */
+#if 0
/* Construct new SSA name for old NAME. ID is the inline context. */
static tree
@@ -200,6 +208,7 @@ remap_ssa_name (tree name, copy_body_dat
insert_decl_map (id, name, new);
return new;
}
+#endif
/* Remap DECL during the copying of the BLOCK tree for the function. */
@@ -256,11 +265,16 @@ remap_decl (tree decl, copy_body_data *i
get_var_ann (t);
if (TREE_CODE (decl) != PARM_DECL && def)
{
+ /* FIXME tuples. */
+#if 0
tree map = remap_ssa_name (def, id);
/* Watch out RESULT_DECLs whose SSA names map directly
to them. */
if (TREE_CODE (map) == SSA_NAME)
set_default_def (t, map);
+#else
+ gcc_unreachable ();
+#endif
}
add_referenced_var (t);
}
@@ -487,6 +501,8 @@ remap_block (tree *block, copy_body_data
insert_decl_map (id, old_block, new_block);
}
+/* FIXME tuples. */
+#if 0
/* Copy the whole block tree and root it in id->block. */
static tree
remap_blocks (tree block, copy_body_data *id)
@@ -518,6 +534,7 @@ copy_statement_list (tree *tp)
for (; !tsi_end_p (oi); tsi_next (&oi))
tsi_link_after (&ni, tsi_stmt (oi), TSI_NEW_STMT);
}
+#endif
static void
copy_bind_expr (tree *tp, int *walk_subtrees, copy_body_data *id)
@@ -579,9 +596,14 @@ copy_body_r (tree *tp, int *walk_subtree
}
else if (TREE_CODE (*tp) == SSA_NAME)
{
+ /* FIXME tuples. */
+#if 0
*tp = remap_ssa_name (*tp, id);
*walk_subtrees = 0;
return NULL;
+#else
+ gcc_unreachable ();
+#endif
}
/* Local variables and labels need to be replaced by equivalent
@@ -601,7 +623,12 @@ copy_body_r (tree *tp, int *walk_subtree
*walk_subtrees = 0;
}
else if (TREE_CODE (*tp) == STATEMENT_LIST)
+ /* FIXME tuples. */
+#if 0
copy_statement_list (tp);
+#else
+ gcc_unreachable ();
+#endif
else if (TREE_CODE (*tp) == SAVE_EXPR)
remap_save_expr (tp, id->decl_map, walk_subtrees);
else if (TREE_CODE (*tp) == LABEL_DECL
@@ -763,6 +790,8 @@ copy_body_r (tree *tp, int *walk_subtree
return NULL_TREE;
}
+/* FIXME tuples. */
+#if 0
/* Copy basic block, scale profile accordingly. Edges will be taken care of
later */
@@ -802,15 +831,12 @@ copy_bb (copy_body_data *id, basic_block
gimple_duplicate_stmt_histograms (cfun, stmt, id->src_cfun, orig_stmt);
-#if 0
- /* FIXME tuples */
/* With return slot optimization we can end up with
non-gimple (foo *)&this->m, fix that here. */
if (TREE_CODE (stmt) == GIMPLE_MODIFY_STMT
&& TREE_CODE (GIMPLE_STMT_OPERAND (stmt, 1)) == NOP_EXPR
&& !is_gimple_val (TREE_OPERAND (GIMPLE_STMT_OPERAND (stmt, 1), 0)))
gimplify_stmt (&stmt);
-#endif
bsi_insert_after (©_bsi, stmt, BSI_NEW_STMT);
@@ -1428,10 +1454,7 @@ setup_one_parameter (copy_body_data *id,
tree_stmt_iterator i;
push_gimplify_context ();
-#if 0
- /* FIXME tuples */
gimplify_stmt (&init_stmt);
-#endif
if (gimple_in_ssa_p (cfun)
&& init_stmt && TREE_CODE (init_stmt) == STATEMENT_LIST)
{
@@ -1941,6 +1964,7 @@ inlinable_function_p (tree fn)
return inlinable;
}
+#endif
/* Return true if we shall disregard inlining limits for the function
FN during inlining. */
@@ -1956,6 +1980,8 @@ disregard_inline_limits_p (tree fn)
return lookup_attribute ("always_inline", DECL_ATTRIBUTES (fn)) != NULL_TREE;
}
+/* FIXME tuples. */
+#if 0
/* Estimate the cost of a memory move. Use machine dependent
word size and take possible memcpy call into account. */
@@ -2327,6 +2353,7 @@ estimate_num_insns (tree expr, eni_weigh
return data.count;
}
+#endif
/* Initializes weights used by estimate_num_insns. */
@@ -2374,6 +2401,8 @@ pop_cfun (void)
cfun = VEC_pop (function_p, cfun_stack);
}
+/* FIXME tuples. */
+#if 0
/* Install new lexical TREE_BLOCK underneath 'current_block'. */
static void
add_lexical_block (tree current_block, tree new_block)
@@ -2931,6 +2960,7 @@ clone_body (tree clone, tree fn, void *a
/* Actually copy the body. */
append_to_statement_list_force (copy_generic_body (&id), &DECL_SAVED_TREE (clone));
}
+#endif
/* Passed to walk_tree. Copies the node pointed to, if appropriate. */
@@ -3039,6 +3069,8 @@ remap_save_expr (tree *tp, void *st_, in
*tp = t;
}
+/* FIXME tuples. */
+#if 0
/* Called via walk_tree. If *TP points to a DECL_STMT for a local label,
copies the declaration and enters it in the splay_tree in DATA (which is
really an `copy_body_data *'). */
@@ -3528,6 +3560,7 @@ tree_function_versioning (tree old_decl,
|| DECL_STRUCT_FUNCTION (current_function_decl) == cfun);
return;
}
+#endif
/* Duplicate a type, fields and all. */
Index: tree-optimize.c
===================================================================
--- tree-optimize.c (revision 127911)
+++ tree-optimize.c (working copy)
@@ -150,8 +150,13 @@ struct tree_opt_pass pass_all_early_opti
static unsigned int
execute_cleanup_cfg_pre_ipa (void)
{
+ /* FIXME tuples */
+#if 0
cleanup_tree_cfg ();
return 0;
+#else
+ gcc_unreachable ();
+#endif
}
struct tree_opt_pass pass_cleanup_cfg =
@@ -182,7 +187,12 @@ static unsigned int
execute_cleanup_cfg_post_optimizing (void)
{
fold_cond_expr_cond ();
+ /* FIXME tuples */
+#if 0
cleanup_tree_cfg ();
+#else
+ gcc_unreachable ();
+#endif
cleanup_dead_labels ();
group_case_labels ();
return 0;
@@ -277,6 +287,8 @@ struct tree_opt_pass pass_free_cfg_annot
unsigned int
execute_fixup_cfg (void)
{
+ /* FIXME tuples. */
+#if 0
basic_block bb;
block_stmt_iterator bsi;
int todo = gimple_in_ssa_p (cfun) ? TODO_verify_ssa : 0;
@@ -316,6 +328,9 @@ execute_fixup_cfg (void)
dump_tree_cfg (dump_file, dump_flags);
return todo;
+#else
+ gcc_unreachable ();
+#endif
}
/* Do the actions required to initialize internal data structures used
Index: tree-vect-transform.c
===================================================================
--- tree-vect-transform.c (revision 127911)
+++ tree-vect-transform.c (working copy)
@@ -45,6 +45,8 @@ along with GCC; see the file COPYING3.
#include "toplev.h"
#include "real.h"
+/* FIXME tuples. */
+#if 0
/* Utility functions for the code transformation. */
static bool vect_transform_stmt (tree, block_stmt_iterator *, bool *);
static tree vect_create_destination_var (tree, tree);
@@ -6861,3 +6863,4 @@ vect_transform_loop (loop_vec_info loop_
if (loop->inner && vect_print_dump_info (REPORT_VECTORIZED_LOOPS))
fprintf (vect_dump, "OUTER LOOP VECTORIZED.");
}
+#endif
Index: tree-object-size.c
===================================================================
--- tree-object-size.c (revision 127911)
+++ tree-object-size.c (working copy)
@@ -29,6 +29,8 @@ along with GCC; see the file COPYING3.
#include "tree-pass.h"
#include "tree-ssa-propagate.h"
+/* FIXME tuples. */
+#if 0
struct object_size_info
{
int object_size_type;
@@ -988,13 +990,15 @@ fini_object_sizes (void)
object_sizes[object_size_type] = NULL;
}
}
-
+#endif
/* Simple pass to optimize all __builtin_object_size () builtins. */
static unsigned int
compute_object_sizes (void)
{
+ /* FIXME tuples. */
+#if 0
basic_block bb;
FOR_EACH_BB (bb)
{
@@ -1061,6 +1065,9 @@ compute_object_sizes (void)
fini_object_sizes ();
return 0;
+#else
+ gcc_unreachable ();
+#endif
}
struct tree_opt_pass pass_object_sizes =
Index: tree-outof-ssa.c
===================================================================
--- tree-outof-ssa.c (revision 127911)
+++ tree-outof-ssa.c (working copy)
@@ -35,6 +35,8 @@ along with GCC; see the file COPYING3.
#include "toplev.h"
+/* FIXME tuples. */
+#if 0
/* Used to hold all the components required to do SSA PHI elimination.
The node and pred/succ list is a simple linear list of nodes and
edges represented as pairs of nodes.
@@ -1270,6 +1272,7 @@ insert_backedge_copies (void)
}
}
}
+#endif
/* Take the current function out of SSA form, translating PHIs as described in
R. Morgan, ``Building an Optimizing Compiler'',
@@ -1278,6 +1281,8 @@ insert_backedge_copies (void)
static unsigned int
rewrite_out_of_ssa (void)
{
+ /* FIXME tuples. */
+#if 0
/* If elimination of a PHI requires inserting a copy on a backedge,
then we will have to split the backedge which has numerous
undesirable performance effects.
@@ -1298,6 +1303,9 @@ rewrite_out_of_ssa (void)
cfun->gimple_df->in_ssa_p = false;
return 0;
+#else
+ gcc_unreachable ();
+#endif
}
Index: cfgloop.c
===================================================================
--- cfgloop.c (revision 127911)
+++ cfgloop.c (working copy)
@@ -563,12 +563,15 @@ find_subloop_latch_edge_by_profile (VEC
another edge. */
static edge
-find_subloop_latch_edge_by_ivs (struct loop *loop, VEC (edge, heap) *latches)
+find_subloop_latch_edge_by_ivs (struct loop *loop ATTRIBUTE_UNUSED, VEC (edge, heap) *latches)
{
edge e, latch = VEC_index (edge, latches, 0);
unsigned i;
+ /* FIXME tuples. */
+#if 0
tree phi, lop;
basic_block bb;
+#endif
/* Find the candidate for the latch edge. */
for (i = 1; VEC_iterate (edge, latches, i, e); i++)
@@ -582,6 +585,8 @@ find_subloop_latch_edge_by_ivs (struct l
/* Check for a phi node that would deny that this is a latch edge of
a subloop. */
+ /* FIXME tuples. */
+#if 0
for (phi = phi_nodes (loop->header); phi; phi = PHI_CHAIN (phi))
{
lop = PHI_ARG_DEF_FROM_EDGE (phi, latch);
@@ -599,6 +604,9 @@ find_subloop_latch_edge_by_ivs (struct l
&& PHI_ARG_DEF_FROM_EDGE (phi, e) == lop)
return NULL;
}
+#else
+ gcc_unreachable ();
+#endif
if (dump_file)
fprintf (dump_file,
Index: tree-profile.c
===================================================================
--- tree-profile.c (revision 127911)
+++ tree-profile.c (working copy)
@@ -185,6 +185,8 @@ tree_gen_edge_profiler (int edgeno, edge
/* Emits code to get VALUE to instrument at BSI, and returns the
variable containing the value. */
+/* FIXME tuples. */
+#if 0
static tree
prepare_instrumented_value (block_stmt_iterator *bsi,
histogram_value value)
@@ -193,14 +195,17 @@ prepare_instrumented_value (block_stmt_i
return force_gimple_operand_bsi (bsi, fold_convert (gcov_type_node, val),
true, NULL_TREE, true, BSI_SAME_STMT);
}
+#endif
/* Output instructions as GIMPLE trees to increment the interval histogram
counter. VALUE is the expression whose value is profiled. TAG is the
tag of the section for counters, BASE is offset of the counter position. */
static void
-tree_gen_interval_profiler (histogram_value value, unsigned tag, unsigned base)
+tree_gen_interval_profiler (histogram_value value ATTRIBUTE_UNUSED, unsigned tag ATTRIBUTE_UNUSED, unsigned base ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
tree stmt = value->hvalue.stmt;
block_stmt_iterator bsi = bsi_for_stmt (stmt);
tree ref = tree_coverage_counter_ref (tag, base), ref_ptr;
@@ -215,6 +220,9 @@ tree_gen_interval_profiler (histogram_va
call = build_call_expr (tree_interval_profiler_fn, 4,
ref_ptr, val, start, steps);
bsi_insert_before (&bsi, call, BSI_SAME_STMT);
+#else
+ gcc_unreachable ();
+#endif
}
/* Output instructions as GIMPLE trees to increment the power of two histogram
@@ -222,8 +230,10 @@ tree_gen_interval_profiler (histogram_va
of the section for counters, BASE is offset of the counter position. */
static void
-tree_gen_pow2_profiler (histogram_value value, unsigned tag, unsigned base)
+tree_gen_pow2_profiler (histogram_value value ATTRIBUTE_UNUSED, unsigned tag ATTRIBUTE_UNUSED, unsigned base ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
tree stmt = value->hvalue.stmt;
block_stmt_iterator bsi = bsi_for_stmt (stmt);
tree ref = tree_coverage_counter_ref (tag, base), ref_ptr;
@@ -235,6 +245,9 @@ tree_gen_pow2_profiler (histogram_value
val = prepare_instrumented_value (&bsi, value);
call = build_call_expr (tree_pow2_profiler_fn, 2, ref_ptr, val);
bsi_insert_before (&bsi, call, BSI_SAME_STMT);
+#else
+ gcc_unreachable ();
+#endif
}
/* Output instructions as GIMPLE trees for code to find the most common value.
@@ -242,8 +255,10 @@ tree_gen_pow2_profiler (histogram_value
section for counters, BASE is offset of the counter position. */
static void
-tree_gen_one_value_profiler (histogram_value value, unsigned tag, unsigned base)
+tree_gen_one_value_profiler (histogram_value value ATTRIBUTE_UNUSED, unsigned tag ATTRIBUTE_UNUSED, unsigned base ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
tree stmt = value->hvalue.stmt;
block_stmt_iterator bsi = bsi_for_stmt (stmt);
tree ref = tree_coverage_counter_ref (tag, base), ref_ptr;
@@ -255,6 +270,9 @@ tree_gen_one_value_profiler (histogram_v
val = prepare_instrumented_value (&bsi, value);
call = build_call_expr (tree_one_value_profiler_fn, 2, ref_ptr, val);
bsi_insert_before (&bsi, call, BSI_SAME_STMT);
+#else
+ gcc_unreachable ();
+#endif
}
@@ -265,8 +283,10 @@ tree_gen_one_value_profiler (histogram_v
counter position. */
static void
-tree_gen_ic_profiler (histogram_value value, unsigned tag, unsigned base)
+tree_gen_ic_profiler (histogram_value value ATTRIBUTE_UNUSED, unsigned tag ATTRIBUTE_UNUSED, unsigned base ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
tree tmp1, stmt1, stmt2, stmt3;
tree stmt = value->hvalue.stmt;
block_stmt_iterator bsi = bsi_for_stmt (stmt);
@@ -290,6 +310,9 @@ tree_gen_ic_profiler (histogram_value va
bsi_insert_before (&bsi, stmt1, BSI_SAME_STMT);
bsi_insert_before (&bsi, stmt2, BSI_SAME_STMT);
bsi_insert_before (&bsi, stmt3, BSI_SAME_STMT);
+#else
+ gcc_unreachable ();
+#endif
}
@@ -301,6 +324,8 @@ tree_gen_ic_profiler (histogram_value va
static void
tree_gen_ic_func_profiler (void)
{
+ /* FIXME tuples. */
+#if 0
struct cgraph_node * c_node = cgraph_node (current_function_decl);
block_stmt_iterator bsi;
edge e;
@@ -334,6 +359,9 @@ tree_gen_ic_func_profiler (void)
ic_void_ptr_var);
bsi_insert_after (&bsi, stmt1, BSI_NEW_STMT);
}
+#else
+ gcc_unreachable ();
+#endif
}
/* Output instructions as GIMPLE trees for code to find the most common value
@@ -358,8 +386,10 @@ tree_gen_const_delta_profiler (histogram
tag of the section for counters, BASE is offset of the counter position. */
static void
-tree_gen_average_profiler (histogram_value value, unsigned tag, unsigned base)
+tree_gen_average_profiler (histogram_value value ATTRIBUTE_UNUSED, unsigned tag ATTRIBUTE_UNUSED, unsigned base ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
tree stmt = value->hvalue.stmt;
block_stmt_iterator bsi = bsi_for_stmt (stmt);
tree ref = tree_coverage_counter_ref (tag, base), ref_ptr;
@@ -372,6 +402,9 @@ tree_gen_average_profiler (histogram_val
val = prepare_instrumented_value (&bsi, value);
call = build_call_expr (tree_average_profiler_fn, 2, ref_ptr, val);
bsi_insert_before (&bsi, call, BSI_SAME_STMT);
+#else
+ gcc_unreachable ();
+#endif
}
/* Output instructions as GIMPLE trees to increment the ior histogram
@@ -379,8 +412,10 @@ tree_gen_average_profiler (histogram_val
tag of the section for counters, BASE is offset of the counter position. */
static void
-tree_gen_ior_profiler (histogram_value value, unsigned tag, unsigned base)
+tree_gen_ior_profiler (histogram_value value ATTRIBUTE_UNUSED, unsigned tag ATTRIBUTE_UNUSED, unsigned base ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
tree stmt = value->hvalue.stmt;
block_stmt_iterator bsi = bsi_for_stmt (stmt);
tree ref = tree_coverage_counter_ref (tag, base), ref_ptr;
@@ -392,6 +427,9 @@ tree_gen_ior_profiler (histogram_value v
val = prepare_instrumented_value (&bsi, value);
call = build_call_expr (tree_ior_profiler_fn, 2, ref_ptr, val);
bsi_insert_before (&bsi, call, BSI_SAME_STMT);
+#else
+ gcc_unreachable ();
+#endif
}
/* Return 1 if tree-based profiling is in effect, else 0.
@@ -403,7 +441,12 @@ do_tree_profiling (void)
{
if (profile_arc_flag || flag_test_coverage || flag_branch_probabilities)
{
+ /* FIXME tuples. */
+#if 0
tree_register_profile_hooks ();
+#else
+ gcc_unreachable ();
+#endif
tree_register_value_prof_hooks ();
return true;
}
@@ -417,7 +460,12 @@ tree_profiling (void)
the gcov datastructure initializer. */
if (cgraph_state == CGRAPH_STATE_FINISHED)
return 0;
+ /* FIXME tuples. */
+#if 0
branch_prob ();
+#else
+ gcc_unreachable ();
+#endif
if (! flag_branch_probabilities
&& flag_profile_values)
Index: c-gimplify.c
===================================================================
--- c-gimplify.c (revision 127911)
+++ c-gimplify.c (working copy)
@@ -115,8 +115,10 @@ c_genericize (tree fndecl)
}
static void
-add_block_to_enclosing (tree block)
+add_block_to_enclosing (tree block ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
tree enclosing;
for (enclosing = gimple_current_bind_expr ();
@@ -126,6 +128,9 @@ add_block_to_enclosing (tree block)
enclosing = BIND_EXPR_BLOCK (enclosing);
BLOCK_SUBBLOCKS (enclosing) = chainon (BLOCK_SUBBLOCKS (enclosing), block);
+#else
+ gcc_unreachable ();
+#endif
}
/* Genericize a scope by creating a new BIND_EXPR.
Index: tree-vect-generic.c
===================================================================
--- tree-vect-generic.c (revision 127911)
+++ tree-vect-generic.c (working copy)
@@ -37,6 +37,8 @@ along with GCC; see the file COPYING3.
#include "ggc.h"
+/* FIXME tuples. */
+#if 0
/* Build a constant of type TYPE, made of VALUE's bits replicated
every TYPE_SIZE (INNER_TYPE) bits to fit TYPE's precision. */
static tree
@@ -567,3 +569,4 @@ struct tree_opt_pass pass_lower_vector_s
};
#include "gt-tree-vect-generic.h"
+#endif
Index: tree-flow.h
===================================================================
--- tree-flow.h (revision 127911)
+++ tree-flow.h (working copy)
@@ -405,10 +405,13 @@ struct function_ann_d GTY(())
{
struct tree_ann_common_d common;
+ /* FIXME tuples. */
+#if 0
/* Pointer to the structure that contains the sets of global
variables modified by function calls. This field is only used
for FUNCTION_DECLs. */
- ipa_reference_vars_info_t GTY ((skip)) reference_vars_info;
+ /*ipa_reference_vars_info_t GTY ((skip)) reference_vars_info;*/
+#endif
};
typedef struct immediate_use_iterator_d
@@ -756,7 +759,8 @@ extern void notice_special_calls (tree);
extern void clear_special_calls (void);
extern void verify_stmts (void);
extern void verify_gimple (void);
-extern void verify_gimple_1 (tree);
+extern void verify_gimple_seq (gimple_seq);
+extern void verify_gimple_1 (gimple_seq);
extern tree tree_block_label (basic_block);
extern void extract_true_false_edges_from_block (basic_block, edge *, edge *);
extern bool tree_duplicate_sese_region (edge, edge, basic_block *, unsigned,
Index: Makefile.in
===================================================================
--- Makefile.in (revision 127911)
+++ Makefile.in (working copy)
@@ -167,7 +167,8 @@ coverageexts = .{gcda,gcno}
# with other compilers.
# CXX_COMPAT_WARN are C++ source compatibility warnings.
LOOSE_WARN = @loose_warn@
-STRICT_WARN = @strict_warn@
+# FIXME tuples. Do not merge this!
+STRICT_WARN = @strict_warn@ -Werror
CXX_COMPAT_WARN = @cxx_compat_warn@
# This is set by --enable-checking. The idea is to catch forgotten
@@ -1217,7 +1218,8 @@ OBJS-common = \
version.o \
vmsdbgout.o \
web.o \
- xcoffout.o
+ xcoffout.o \
+ gimple-dummy.o # FIXME tuples. Do not merge.
# Target object files.
OBJS-md = $(out_object_file)
@@ -2288,6 +2290,8 @@ tree-gimple.o : tree-gimple.c $(CONFIG_H
output.h $(TREE_FLOW_H)
gimple.o : gimple.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TREE_H) \
$(GGC_H) $(TREE_GIMPLE_H) $(GIMPLE_H) $(DIAGNOSTIC_H) gt-gimple.h
+# FIXME tuples. Do not merge.
+gimple-dummy.o: gimple-dummy.c $(CONFIG_H) $(SYSTEM_H)
gimple-pretty-print.o : gimple-pretty-print.c $(CONFIG_H) $(SYSTEM_H) \
$(TREE_H) $(DIAGNOSTIC_H) $(REAL_H) $(HASHTAB_H) $(TREE_FLOW_H) \
$(TM_H) coretypes.h tree-pass.h $(GIMPLE_H)
@@ -3073,6 +3077,16 @@ s-constrs-h: $(MD_DEPS) build/genpreds$(
$(SHELL) $(srcdir)/../move-if-change tmp-constrs.h tm-constrs.h
$(STAMP) s-constrs-h
+# FIXME tuples. Do not merge.
+# $(srcdir)/tree-scalar-evolution.c
+# $(srcdir)/tree-ssa-propagate.c
+# $(srcdir)/tree-vect-generic.c
+# $(srcdir)/tree-ssa-structalias.h
+# $(srcdir)/tree-ssa-structalias.c
+# $(srcdir)/ipa-reference.h
+# $(srcdir)/omp-low.c
+# $(srcdir)/tree-phinodes.c
+# $(srcdir)/ipa-reference.c
GTFILES = $(srcdir)/input.h $(srcdir)/coretypes.h \
$(CPP_ID_DATA_H) $(host_xm_file_list) \
$(tm_file_list) $(HASHTAB_H) $(SPLAY_TREE_H) $(srcdir)/bitmap.h \
@@ -3080,7 +3094,7 @@ GTFILES = $(srcdir)/input.h $(srcdir)/co
$(srcdir)/optabs.h $(srcdir)/tree.h $(srcdir)/function.h $(srcdir)/libfuncs.h $(SYMTAB_H) \
$(srcdir)/real.h $(srcdir)/varray.h $(srcdir)/insn-addr.h $(srcdir)/hwint.h \
$(srcdir)/fixed-value.h \
- $(srcdir)/ipa-reference.h $(srcdir)/output.h $(srcdir)/cfgloop.h \
+ $(srcdir)/output.h $(srcdir)/cfgloop.h \
$(srcdir)/cselib.h $(srcdir)/basic-block.h $(srcdir)/cgraph.h \
$(srcdir)/reload.h $(srcdir)/caller-save.c \
$(srcdir)/alias.c $(srcdir)/bitmap.c $(srcdir)/cselib.c $(srcdir)/cgraph.c \
@@ -3095,17 +3109,15 @@ GTFILES = $(srcdir)/input.h $(srcdir)/co
$(srcdir)/sdbout.c $(srcdir)/stor-layout.c \
$(srcdir)/stringpool.c $(srcdir)/tree.c $(srcdir)/varasm.c \
$(srcdir)/gimple.h $(srcdir)/gimple.c \
- $(srcdir)/tree-mudflap.c $(srcdir)/tree-flow.h $(srcdir)/tree-scalar-evolution.c \
+ $(srcdir)/tree-mudflap.c $(srcdir)/tree-flow.h \
$(srcdir)/tree-ssanames.c $(srcdir)/tree-eh.c $(srcdir)/tree-ssa-address.c \
- $(srcdir)/tree-phinodes.c $(srcdir)/tree-cfg.c \
- $(srcdir)/tree-dfa.c $(srcdir)/tree-ssa-propagate.c \
+ $(srcdir)/tree-cfg.c \
+ $(srcdir)/tree-dfa.c \
$(srcdir)/tree-iterator.c $(srcdir)/gimplify.c \
- $(srcdir)/tree-chrec.h $(srcdir)/tree-vect-generic.c \
+ $(srcdir)/tree-chrec.h \
$(srcdir)/tree-ssa-operands.h \
$(srcdir)/tree-profile.c $(srcdir)/tree-nested.c \
- $(srcdir)/ipa-reference.c $(srcdir)/tree-ssa-structalias.h \
- $(srcdir)/tree-ssa-structalias.c \
- $(srcdir)/omp-low.c $(srcdir)/varpool.c \
+ $(srcdir)/varpool.c \
$(srcdir)/targhooks.c $(out_file) $(srcdir)/passes.c $(srcdir)/cgraphunit.c \
@all_gtfiles@
Index: tree-ssa-structalias.c
===================================================================
--- tree-ssa-structalias.c (revision 127911)
+++ tree-ssa-structalias.c (working copy)
@@ -53,6 +53,8 @@
#include "alias.h"
#include "pointer-set.h"
+/* FIXME tuples. */
+#if 0
/* The idea behind this analyzer is to generate set constraints from the
program, then solve the resulting constraints in order to generate the
points-to sets.
@@ -5445,6 +5447,7 @@ delete_points_to_sets (void)
free_alloc_pool (constraint_pool);
have_alias_info = false;
}
+#endif
/* Return true if we should execute IPA PTA. */
static bool
@@ -5460,6 +5463,8 @@ gate_ipa_pta (void)
static unsigned int
ipa_pta_execute (void)
{
+ /* FIXME tuples. */
+#if 0
struct cgraph_node *node;
struct scc_info *si;
@@ -5563,6 +5568,9 @@ ipa_pta_execute (void)
delete_alias_heapvars ();
delete_points_to_sets ();
return 0;
+#else
+ gcc_unreachable ();
+#endif
}
struct tree_opt_pass pass_ipa_pta =
@@ -5583,6 +5591,8 @@ struct tree_opt_pass pass_ipa_pta =
,0 /* works_with_tuples_p */
};
+/* FIXME tuples. */
+#if 0
/* Initialize the heapvar for statement mapping. */
void
init_alias_heapvars (void)
@@ -5599,5 +5609,5 @@ delete_alias_heapvars (void)
heapvar_for_stmt = NULL;
}
-
#include "gt-tree-ssa-structalias.h"
+#endif
Index: tree-cfg.c
===================================================================
--- tree-cfg.c (revision 127911)
+++ tree-cfg.c (working copy)
@@ -80,10 +80,15 @@ struct cfg_stats_d
static struct cfg_stats_d cfg_stats;
/* Nonzero if we found a computed goto while building basic blocks. */
+/* FIXME tuples. */
+#if 0
static bool found_computed_goto;
+#endif
/* Basic blocks and flowgraphs. */
static basic_block create_bb (void *, void *, basic_block);
+/* FIXME tuples. */
+#if 0
static void make_blocks (gimple_seq);
static void factor_computed_gotos (void);
@@ -92,25 +97,38 @@ static void make_edges (void);
static void make_cond_expr_edges (basic_block);
static void make_switch_expr_edges (basic_block);
static void make_goto_expr_edges (basic_block);
+#endif
+/* FIXME tuples. */
+#if 0
static edge tree_redirect_edge_and_branch (edge, basic_block);
static edge tree_try_redirect_by_replacing_jump (edge, basic_block);
+#endif
static unsigned int split_critical_edges (void);
/* Various helpers. */
static inline bool stmt_starts_bb_p (gimple, gimple);
+/* FIXME tuples. */
+#if 0
static int tree_verify_flow_info (void);
static void tree_make_forwarder_block (edge);
static void tree_cfg2vcg (FILE *);
+#endif
static inline void change_bb_for_stmt (gimple, basic_block);
/* Flowgraph optimization and cleanup. */
static void tree_merge_blocks (basic_block, basic_block);
+/* FIXME tuples */
+#if 0
static bool tree_can_merge_blocks_p (basic_block, basic_block);
+#endif
static void remove_bb (basic_block);
static edge find_taken_edge_computed_goto (basic_block, tree);
static edge find_taken_edge_cond_expr (basic_block, tree);
static edge find_taken_edge_switch_expr (basic_block, tree);
+/* FIXME tuples */
+#if 0
static tree find_case_label_for_value (tree, tree);
+#endif
void
init_empty_tree_cfg (void)
@@ -142,6 +160,8 @@ init_empty_tree_cfg (void)
/* Entry point to the CFG builder for trees. SEQ is the sequence of
statements to be added to the flowgraph. */
+/* FIXME tuples. */
+#if 0
static void
build_gimple_cfg (gimple_seq seq)
{
@@ -204,6 +224,7 @@ build_gimple_cfg (gimple_seq seq)
if (dump_file)
dump_tree_cfg (dump_file, dump_flags);
}
+#endif
static unsigned int
execute_build_cfg (void)
@@ -238,6 +259,8 @@ struct tree_opt_pass pass_build_cfg =
that we can un-factor the gotos after we have converted back to
normal form. */
+/* FIXME tuples */
+#if 0
static void
factor_computed_gotos (void)
{
@@ -307,10 +330,13 @@ factor_computed_gotos (void)
}
}
}
+#endif
/* Build a flowgraph for the sequence of stmts SEQ. */
+/* FIXME tuples */
+#if 0
static void
make_blocks (gimple_seq seq)
{
@@ -354,6 +380,7 @@ make_blocks (gimple_seq seq)
first_stmt_of_seq = false;
}
}
+#endif
/* Create and return a new empty basic block after bb AFTER. */
@@ -437,6 +464,8 @@ fold_cond_expr_cond (void)
/* Join all the blocks in the flowgraph. */
+/* FIXME tuples. */
+#if 0
static void
make_edges (void)
{
@@ -596,19 +625,19 @@ make_edges (void)
make_edge (bb, bb->next_bb, EDGE_FALLTHRU);
}
-#if 0
- /* FIXME tuples */
if (root_omp_region)
free_omp_regions ();
-#endif
/* Fold COND_EXPR_COND of each COND_EXPR. */
fold_cond_expr_cond ();
}
+#endif
/* Create the edges for a GIMPLE_COND starting at block BB. */
+/* FIXME tuples. */
+#if 0
static void
make_cond_expr_edges (basic_block bb)
{
@@ -646,6 +675,7 @@ make_cond_expr_edges (basic_block bb)
gimple_cond_set_true_label (entry, NULL);
gimple_cond_set_false_label (entry, NULL);
}
+#endif
/* Called for each element in the hash table (P) as we delete the
@@ -682,11 +712,14 @@ start_recording_case_labels (void)
/* Return nonzero if we are recording information for case labels. */
+/* FIXME tuples */
+#if 0
static bool
recording_case_labels_p (void)
{
return (edge_to_cases != NULL);
}
+#endif
/* Stop recording information mapping edges to case labels and
remove any information we have recorded. */
@@ -703,6 +736,8 @@ end_recording_case_labels (void)
Otherwise return NULL. */
+/* FIXME tuples. */
+#if 0
static tree
get_cases_for_edge (edge e, tree t)
{
@@ -759,6 +794,7 @@ make_switch_expr_edges (basic_block bb)
make_edge (bb, label_bb, 0);
}
}
+#endif
/* Return the basic block holding label DEST. */
@@ -820,6 +856,8 @@ make_abnormal_goto_edges (basic_block bb
/* Create edges for a goto statement at block BB. */
+/* FIXME tuples. */
+#if 0
static void
make_goto_expr_edges (basic_block bb)
{
@@ -839,6 +877,7 @@ make_goto_expr_edges (basic_block bb)
/* A computed GOTO creates abnormal edges. */
make_abnormal_goto_edges (bb, false);
}
+#endif
/*---------------------------------------------------------------------------
@@ -1138,6 +1177,8 @@ group_case_labels (void)
/* Checks whether we can merge block B into block A. */
+/* FIXME tuples. */
+#if 0
static bool
tree_can_merge_blocks_p (basic_block a, basic_block b)
{
@@ -1211,12 +1252,15 @@ tree_can_merge_blocks_p (basic_block a,
return true;
}
+#endif
/* Replaces all uses of NAME by VAL. */
void
-replace_uses_by (tree name, tree val)
+replace_uses_by (tree name ATTRIBUTE_UNUSED, tree val ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
imm_use_iterator imm_iter;
use_operand_p use;
gimple stmt;
@@ -1277,16 +1321,21 @@ replace_uses_by (tree name, tree val)
substitute_in_loop_info (loop, name, val);
}
}
+#else
+ gcc_unreachable ();
+#endif
}
/* Merge block B into block A. */
static void
-tree_merge_blocks (basic_block a, basic_block b)
+tree_merge_blocks (basic_block a ATTRIBUTE_UNUSED, basic_block b ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
block_stmt_iterator bsi;
gimple_stmt_iterator *last, *gsi;
- gimple_seq phis;
+ gimple_seq phis = phi_nodes (b);
if (dump_file)
fprintf (dump_file, "Merging blocks %d and %d\n", a->index, b->index);
@@ -1365,11 +1414,14 @@ tree_merge_blocks (basic_block a, basic_
/* Merge the chains. */
last = gsi_last (bb_seq (a));
- gsi_link_after (last, bb_seq (b), GSI_NEW_STMT);
+ gsi_link_after (last, gimple_seq_first (bb_seq (b)), GSI_NEW_STMT);
set_bb_seq (b, NULL);
if (cfgcleanup_altered_bbs)
bitmap_set_bit (cfgcleanup_altered_bbs, a->index);
+#else
+ gcc_unreachable ();
+#endif
}
@@ -1858,8 +1910,13 @@ remove_useless_stmts_1 (tree *tp, struct
data->last_goto = NULL;
notice_special_calls (t);
update_call_expr_flags (t);
+ /* FIXME tuples. */
+#if 0
if (tree_could_throw_p (t))
data->may_throw = true;
+#else
+ gcc_unreachable ();
+#endif
break;
case MODIFY_EXPR:
@@ -1874,8 +1931,13 @@ remove_useless_stmts_1 (tree *tp, struct
update_call_expr_flags (op);
notice_special_calls (op);
}
+ /* FIXME tuples. */
+#if 0
if (tree_could_throw_p (t))
data->may_throw = true;
+#else
+ gcc_unreachable ();
+#endif
break;
case STATEMENT_LIST:
@@ -1952,8 +2014,10 @@ struct tree_opt_pass pass_remove_useless
/* Remove PHI nodes associated with basic block BB and all edges out of BB. */
static void
-remove_phi_nodes_and_edges_for_unreachable_block (basic_block bb)
+remove_phi_nodes_and_edges_for_unreachable_block (basic_block bb ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
tree phi;
/* Since this block is no longer reachable, we can just delete all
@@ -1969,6 +2033,9 @@ remove_phi_nodes_and_edges_for_unreachab
/* Remove edges to BB's successors. */
while (EDGE_COUNT (bb->succs) > 0)
remove_edge (EDGE_SUCC (bb, 0));
+#else
+ gcc_unreachable ();
+#endif
}
@@ -1978,11 +2045,14 @@ static void
remove_bb (basic_block bb)
{
block_stmt_iterator i;
+ /* FIXME tuples. */
+#if 0
#ifdef USE_MAPPED_LOCATION
source_location loc = UNKNOWN_LOCATION;
#else
source_locus loc = 0;
#endif
+#endif
if (dump_file)
{
@@ -2039,7 +2109,12 @@ remove_bb (basic_block bb)
final_cleanup calls this function via
cleanup_tree_cfg. */
if (gimple_in_ssa_p (cfun))
+ /* FIXME tuples */
+#if 0
release_defs (stmt);
+#else
+ gcc_unreachable ();
+#endif
bsi_remove (&i, true);
}
@@ -2048,6 +2123,8 @@ remove_bb (basic_block bb)
jump threading, thus resulting in bogus warnings. Not great,
since this way we lose warnings for gotos in the original
program that are indeed unreachable. */
+ /* FIXME tuples. */
+#if 0
if (TREE_CODE (stmt) != GOTO_EXPR && EXPR_HAS_LOCATION (stmt) && !loc)
{
#ifdef USE_MAPPED_LOCATION
@@ -2060,6 +2137,9 @@ remove_bb (basic_block bb)
loc = t;
#endif
}
+#else
+ gcc_unreachable ();
+#endif
}
}
@@ -2067,6 +2147,8 @@ remove_bb (basic_block bb)
block is unreachable. We walk statements backwards in the
loop above, so the last statement we process is the first statement
in the block. */
+/* FIXME tuples. */
+#if 0
#ifdef USE_MAPPED_LOCATION
if (loc > BUILTINS_LOCATION)
warning (OPT_Wunreachable_code, "%Hwill never be executed", &loc);
@@ -2074,6 +2156,7 @@ remove_bb (basic_block bb)
if (loc)
warning (OPT_Wunreachable_code, "%Hwill never be executed", loc);
#endif
+#endif
remove_phi_nodes_and_edges_for_unreachable_block (bb);
bb->il.gimple = NULL;
@@ -2161,8 +2244,10 @@ find_taken_edge_cond_expr (basic_block b
NULL if any edge may be taken. */
static edge
-find_taken_edge_switch_expr (basic_block bb, tree val)
+find_taken_edge_switch_expr (basic_block bb ATTRIBUTE_UNUSED, tree val ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
tree switch_expr, taken_case;
basic_block dest_bb;
edge e;
@@ -2174,6 +2259,9 @@ find_taken_edge_switch_expr (basic_block
e = find_edge (bb, dest_bb);
gcc_assert (e);
return e;
+#else
+ gcc_unreachable ();
+#endif
}
@@ -2181,6 +2269,8 @@ find_taken_edge_switch_expr (basic_block
We can make optimal use here of the fact that the case labels are
sorted: We can do a binary search for a case matching VAL. */
+/* FIXME tuples. */
+#if 0
static tree
find_case_label_for_value (tree switch_expr, tree val)
{
@@ -2218,6 +2308,7 @@ find_case_label_for_value (tree switch_e
return default_case;
}
+#endif
@@ -2359,6 +2450,8 @@ debug_cfg_stats (void)
/* Dump the flowgraph to a .vcg FILE. */
+/* FIXME tuples. */
+#if 0
static void
tree_cfg2vcg (FILE *file)
{
@@ -2440,6 +2533,7 @@ tree_cfg2vcg (FILE *file)
fputs ("}\n\n", file);
}
+#endif
@@ -2484,8 +2578,13 @@ is_ctrl_altering_stmt (gimple t)
if (OMP_DIRECTIVE_P (t))
return true;
+ /* FIXME tuples. */
+#if 0
/* If a statement can throw, it alters control flow. */
return stmt_can_throw_internal (t);
+#else
+ gcc_unreachable ();
+#endif
}
@@ -2783,8 +2882,13 @@ bsi_remove (block_stmt_iterator *i, bool
mark_stmt_modified (t);
if (remove_eh_info)
{
+ /* FIXME tuples */
+#if 0
remove_stmt_from_eh_region (t);
gimple_remove_stmt_histograms (cfun, t);
+#else
+ gcc_unreachable ();
+#endif
}
}
@@ -2838,7 +2942,10 @@ bsi_move_to_bb_end (block_stmt_iterator
void
bsi_replace (const block_stmt_iterator *bsi, gimple stmt, bool update_eh_info)
{
+ /* FIXME tuples */
+#if 0
int eh_region;
+#endif
gimple orig_stmt = bsi_stmt (*bsi);
if (stmt == orig_stmt)
@@ -2850,20 +2957,30 @@ bsi_replace (const block_stmt_iterator *
requested by the caller. */
if (update_eh_info)
{
+ /* FIXME tuples */
+#if 0
eh_region = lookup_stmt_eh_region (orig_stmt);
if (eh_region >= 0)
{
remove_stmt_from_eh_region (orig_stmt);
add_stmt_to_eh_region (stmt, eh_region);
}
+#else
+ gcc_unreachable ();
+#endif
}
gimple_duplicate_stmt_histograms (cfun, stmt, cfun, orig_stmt);
gimple_remove_stmt_histograms (cfun, orig_stmt);
delink_stmt_imm_use (orig_stmt);
+ /* FIXME tuples. */
+#if 0
*bsi_stmt_ptr (*bsi) = stmt;
mark_stmt_modified (stmt);
update_modified_stmt (stmt);
+#else
+ gcc_unreachable ();
+#endif
}
@@ -2877,6 +2994,8 @@ bsi_replace (const block_stmt_iterator *
or false if it should be done before the location. If new basic block
has to be created, it is stored in *NEW_BB. */
+/* FIXME tuples. */
+#if 0
static bool
tree_find_edge_insert_loc (edge e, block_stmt_iterator *bsi,
basic_block *new_bb)
@@ -2951,6 +3070,7 @@ tree_find_edge_insert_loc (edge e, block
e = single_pred_edge (dest);
goto restart;
}
+#endif
/* This routine will commit all pending edge insertions, creating any new
@@ -2975,8 +3095,10 @@ bsi_commit_edge_inserts (void)
to this block, otherwise set it to NULL. */
void
-bsi_commit_one_edge_insert (edge e, basic_block *new_bb)
+bsi_commit_one_edge_insert (edge e ATTRIBUTE_UNUSED, basic_block *new_bb ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
if (new_bb)
*new_bb = NULL;
if (PENDING_STMT (e))
@@ -2991,6 +3113,9 @@ bsi_commit_one_edge_insert (edge e, basi
else
bsi_insert_before (&bsi, stmt, BSI_NEW_STMT);
}
+#else
+ gcc_unreachable ();
+#endif
}
@@ -3007,8 +3132,10 @@ bsi_insert_on_edge (edge e, tree stmt)
block has to be created, it is returned. */
basic_block
-bsi_insert_on_edge_immediate (edge e, tree stmt)
+bsi_insert_on_edge_immediate (edge e ATTRIBUTE_UNUSED, tree stmt ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
block_stmt_iterator bsi;
basic_block new_bb = NULL;
@@ -3020,6 +3147,9 @@ bsi_insert_on_edge_immediate (edge e, tr
bsi_insert_before (&bsi, stmt, BSI_NEW_STMT);
return new_bb;
+#else
+ gcc_unreachable ();
+#endif
}
/*---------------------------------------------------------------------------
@@ -3029,8 +3159,10 @@ bsi_insert_on_edge_immediate (edge e, tr
/* Reinstall those PHI arguments queued in OLD_EDGE to NEW_EDGE. */
static void
-reinstall_phi_args (edge new_edge, edge old_edge)
+reinstall_phi_args (edge new_edge ATTRIBUTE_UNUSED, edge old_edge ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
tree var, phi;
if (!PENDING_STMT (old_edge))
@@ -3049,6 +3181,9 @@ reinstall_phi_args (edge new_edge, edge
}
PENDING_STMT (old_edge) = NULL;
+#else
+ gcc_unreachable ();
+#endif
}
/* Returns the basic block after which the new basic block created
@@ -3101,6 +3236,8 @@ tree_split_edge (edge edge_in)
properly noticed as such. The DATA is an int* that is 1 if TP was seen
inside a PHI node. */
+/* FIXME tuples. */
+#if 0
static tree
verify_expr (tree *tp, int *walk_subtrees, void *data ATTRIBUTE_UNUSED)
{
@@ -3356,6 +3493,7 @@ verify_expr (tree *tp, int *walk_subtree
#undef CHECK_OP
}
+#endif
/* Verifies if EXPR is a valid GIMPLE unary expression. Returns true
if there is an error, otherwise false. */
@@ -4119,10 +4471,13 @@ verify_stmt (tree stmt, bool last_in_blo
debug_generic_stmt (stmt);
return true;
}
+#endif
/* Return true when the T can be shared. */
+/* FIXME tuples. */
+#if 0
static bool
tree_node_can_be_shared (tree t)
{
@@ -4148,10 +4503,13 @@ tree_node_can_be_shared (tree t)
return false;
}
+#endif
/* Called via walk_trees. Verify tree sharing. */
+/* FIXME tuples. */
+#if 0
static tree
verify_node_sharing (tree * tp, int *walk_subtrees, void *data)
{
@@ -4168,10 +4526,13 @@ verify_node_sharing (tree * tp, int *wal
return NULL;
}
+#endif
/* Helper function for verify_gimple_tuples. */
+/* FIXME tuples. */
+#if 0
static tree
verify_gimple_tuples_1 (tree *tp, int *walk_subtrees ATTRIBUTE_UNUSED,
void *data ATTRIBUTE_UNUSED)
@@ -4188,17 +4549,23 @@ verify_gimple_tuples_1 (tree *tp, int *w
return NULL_TREE;
}
}
+#endif
/* Verify that there are no trees that should have been converted to
gimple tuples. Return true if T contains a node that should have
been converted to a gimple tuple, but hasn't. */
+/* FIXME tuples. */
+#if 0
static bool
verify_gimple_tuples (tree t)
{
return walk_tree (&t, verify_gimple_tuples_1, NULL, NULL) != NULL;
}
+#endif
+/* FIXME tuples. */
+#if 0
static bool eh_error_found;
static int
verify_eh_throw_stmt_node (void **slot, void *data)
@@ -4214,12 +4581,15 @@ verify_eh_throw_stmt_node (void **slot,
}
return 0;
}
+#endif
/* Verify the GIMPLE statement chain. */
void
verify_stmts (void)
{
+ /* FIXME tuples. */
+#if 0
basic_block bb;
block_stmt_iterator bsi;
bool err = false;
@@ -4319,11 +4689,14 @@ verify_stmts (void)
pointer_set_destroy (visited_stmts);
verify_histograms ();
timevar_pop (TV_TREE_STMT_VERIFY);
+#endif
}
/* Verifies that the flow information is OK. */
+/* FIXME tuples. */
+#if 0
static int
tree_verify_flow_info (void)
{
@@ -4617,11 +4990,14 @@ tree_verify_flow_info (void)
return err;
}
+#endif
/* Updates phi nodes after creating a forwarder block joined
by edge FALLTHRU. */
+/* FIXME tuples. */
+#if 0
static void
tree_make_forwarder_block (edge fallthru)
{
@@ -4659,14 +5035,17 @@ tree_make_forwarder_block (edge fallthru
flush_pending_stmts (e);
}
}
+#endif
/* Return a non-special label in the head of basic block BLOCK.
Create one if it doesn't exist. */
tree
-tree_block_label (basic_block bb)
+tree_block_label (basic_block bb ATTRIBUTE_UNUSED)
{
+/* FIXME tuples. */
+#if 0
block_stmt_iterator i, s = bsi_start (bb);
bool first = true;
tree label, stmt;
@@ -4689,6 +5068,9 @@ tree_block_label (basic_block bb)
stmt = build1 (LABEL_EXPR, void_type_node, label);
bsi_insert_before (&s, stmt, BSI_NEW_STMT);
return label;
+#else
+ gcc_unreachable ();
+#endif
}
@@ -4698,6 +5080,8 @@ tree_block_label (basic_block bb)
parameters and return values are equivalent to
redirect_edge_and_branch. */
+/* FIXME tuples. */
+#if 0
static edge
tree_try_redirect_by_replacing_jump (edge e, basic_block target)
{
@@ -4729,11 +5113,14 @@ tree_try_redirect_by_replacing_jump (edg
return NULL;
}
+#endif
/* Redirect E to DEST. Return NULL on failure. Otherwise, return the
edge representing the redirected branch. */
+/* FIXME tuples. */
+#if 0
static edge
tree_redirect_edge_and_branch (edge e, basic_block dest)
{
@@ -4839,6 +5226,7 @@ tree_redirect_edge_and_branch (edge e, b
return e;
}
+#endif
/* Returns true if it is possible to remove edge E by redirecting
it to the destination of the other edge from E->src. */
@@ -4854,6 +5242,8 @@ tree_can_remove_branch_p (const_edge e)
/* Simple wrapper, as we can always redirect fallthru edges. */
+/* FIXME tuples. */
+#if 0
static basic_block
tree_redirect_edge_and_branch_force (edge e, basic_block dest)
{
@@ -4862,11 +5252,14 @@ tree_redirect_edge_and_branch_force (edg
return NULL;
}
+#endif
/* Splits basic block BB after statement STMT (but at least after the
labels). If STMT is NULL, BB is split just after the labels. */
+/* FIXME tuples. */
+#if 0
static basic_block
gimple_split_block (basic_block bb, void *stmt)
{
@@ -4920,6 +5313,7 @@ gimple_split_block (basic_block bb, void
return new_bb;
}
+#endif
/* Moves basic block BB after block AFTER. */
@@ -4949,6 +5343,8 @@ tree_can_duplicate_bb_p (const_basic_blo
/* Create a duplicate of the basic block BB. NOTE: This does not
preserve SSA form. */
+/* FIXME tuples. */
+#if 0
static basic_block
tree_duplicate_bb (basic_block bb)
{
@@ -5000,6 +5396,7 @@ tree_duplicate_bb (basic_block bb)
return new_bb;
}
+#endif
/* Basic block BB_COPY was created by code duplication. Add phi node
@@ -5007,8 +5404,10 @@ tree_duplicate_bb (basic_block bb)
duplicated have BB_DUPLICATED set. */
void
-add_phi_args_after_copy_bb (basic_block bb_copy)
+add_phi_args_after_copy_bb (basic_block bb_copy ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
basic_block bb, dest;
edge e, e_copy;
edge_iterator ei;
@@ -5049,6 +5448,7 @@ add_phi_args_after_copy_bb (basic_block
add_phi_arg (phi_copy, def, e_copy);
}
}
+#endif
}
/* Blocks in REGION_COPY array of length N_REGION were created by
@@ -5137,7 +5537,12 @@ tree_duplicate_sese_region (edge entry,
free_region_copy = true;
}
+ /* FIXME tuples */
+#if 0
gcc_assert (!need_ssa_update_p ());
+#else
+ gcc_unreachable ();
+#endif
/* Record blocks outside the region that are dominated by something
inside. */
@@ -5207,8 +5612,13 @@ tree_duplicate_sese_region (edge entry,
/* Add the other PHI node arguments. */
add_phi_args_after_copy (region_copy, n_region);
+ /* FIXME tuples. */
+#if 0
/* Update the SSA web. */
update_ssa (TODO_update_ssa);
+#else
+ gcc_unreachable ();
+#endif
if (free_region_copy)
free (region_copy);
@@ -5332,6 +5742,8 @@ move_stmt_r (tree *tp, int *walk_subtree
On exit, local variables that need to be removed from
CFUN->UNEXPANDED_VAR_LIST will have been added to VARS_TO_REMOVE. */
+/* FIXME tuples. */
+#if 0
static void
move_block_to_fn (struct function *dest_cfun, basic_block bb,
basic_block after, bool update_edge_count_p,
@@ -5437,10 +5849,13 @@ move_block_to_fn (struct function *dest_
}
}
}
+#endif
/* Examine the statements in BB (which is in SRC_CFUN); find and return
the outermost EH region. Use REGION as the incoming base EH region. */
+/* FIXME tuples. */
+#if 0
static int
find_outermost_region_in_block (struct function *src_cfun,
basic_block bb, int region)
@@ -5493,6 +5908,7 @@ new_label_mapper (tree decl, void *data)
return m->to;
}
+#endif
/* Move a single-entry, single-exit region delimited by ENTRY_BB and
EXIT_BB to function DEST_CFUN. The whole region is replaced by a
@@ -5509,9 +5925,11 @@ new_label_mapper (tree decl, void *data)
associated with DEST_CFUN. */
basic_block
-move_sese_region_to_fn (struct function *dest_cfun, basic_block entry_bb,
- basic_block exit_bb)
+move_sese_region_to_fn (struct function *dest_cfun ATTRIBUTE_UNUSED, basic_block entry_bb ATTRIBUTE_UNUSED,
+ basic_block exit_bb ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
VEC(basic_block,heap) *bbs;
basic_block after, bb, *entry_pred, *exit_succ;
struct function *saved_cfun;
@@ -5676,6 +6094,9 @@ move_sese_region_to_fn (struct function
VEC_free (basic_block, heap, bbs);
return bb;
+#else
+ gcc_unreachable ();
+#endif
}
@@ -5907,17 +6328,22 @@ debug_loop_ir (void)
instructions that must stay with the call. Return false,
otherwise. */
+/* FIXME tuples. */
+#if 0
static bool
tree_block_ends_with_call_p (const_basic_block bb)
{
block_stmt_iterator bsi = bsi_last (bb);
return get_call_expr_in (bsi_stmt (bsi)) != NULL;
}
+#endif
/* Return true if BB ends with a conditional branch. Return false,
otherwise. */
+/* FIXME tuples. */
+#if 0
static bool
tree_block_ends_with_condjump_p (const_basic_block bb)
{
@@ -5952,6 +6378,7 @@ need_fake_edge_p (tree t)
return false;
}
+#endif
/* Add fake edges to the function exit for any non constant and non
@@ -5962,6 +6389,8 @@ need_fake_edge_p (tree t)
The goal is to expose cases in which entering a basic block does
not imply that all subsequent instructions must be executed. */
+/* FIXME tuples. */
+#if 0
static int
tree_flow_call_edges_add (sbitmap blocks)
{
@@ -6070,12 +6499,15 @@ tree_flow_call_edges_add (sbitmap blocks
return blocks_split;
}
+#endif
/* Purge dead abnormal call edges from basic block BB. */
bool
-tree_purge_dead_abnormal_call_edges (basic_block bb)
+tree_purge_dead_abnormal_call_edges (basic_block bb ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
bool changed = tree_purge_dead_eh_edges (bb);
if (current_function_has_nonlocal_label)
@@ -6102,6 +6534,9 @@ tree_purge_dead_abnormal_call_edges (bas
}
return changed;
+#else
+ gcc_unreachable ();
+#endif
}
/* Stores all basic blocks dominated by BB to DOM_BBS. */
@@ -6243,8 +6678,10 @@ remove_edge_and_dominated_blocks (edge e
/* Purge dead EH edges from basic block BB. */
bool
-tree_purge_dead_eh_edges (basic_block bb)
+tree_purge_dead_eh_edges (basic_block bb ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples. */
+#if 0
bool changed = false;
edge e;
edge_iterator ei;
@@ -6265,6 +6702,9 @@ tree_purge_dead_eh_edges (basic_block bb
}
return changed;
+#else
+ gcc_unreachable ();
+#endif
}
bool
@@ -6314,9 +6754,10 @@ tree_execute_on_shrinking_pred (edge e)
on the edge by split_edge(). Later, additional edge 'e' was created to
connect 'new_head' and 'first'. Now this routine adds phi args on this
additional edge 'e' that new_head to second edge received as part of edge
- splitting.
-*/
+ splitting. */
+/* FIXME tuples. */
+#if 0
static void
tree_lv_adjust_loop_header_phi (basic_block first, basic_block second,
basic_block new_head, edge e)
@@ -6343,6 +6784,7 @@ tree_lv_adjust_loop_header_phi (basic_bl
/* Adds a if else statement to COND_BB with condition COND_EXPR.
SECOND_HEAD is the destination of the THEN and FIRST_HEAD is
the destination of the ELSE part. */
+
static void
tree_lv_add_condition_to_bb (basic_block first_head ATTRIBUTE_UNUSED,
basic_block second_head ATTRIBUTE_UNUSED,
@@ -6366,35 +6808,36 @@ tree_lv_add_condition_to_bb (basic_block
e0->flags &= ~EDGE_FALLTHRU;
e0->flags |= EDGE_FALSE_VALUE;
}
+#endif
struct cfg_hooks gimple_cfg_hooks = {
"gimple",
- tree_verify_flow_info,
+ 0 /* FIXME tuples tree_verify_flow_info */,
tree_dump_bb, /* dump_bb */
create_bb, /* create_basic_block */
- tree_redirect_edge_and_branch,/* redirect_edge_and_branch */
- tree_redirect_edge_and_branch_force,/* redirect_edge_and_branch_force */
+ 0 /* FIXME tuples tree_redirect_edge_and_branch */,/* redirect_edge_and_branch */
+ 0 /* FIXME tuples tree_redirect_edge_and_branch_force */,/* redirect_edge_and_branch_force */
tree_can_remove_branch_p, /* can_remove_branch_p */
remove_bb, /* delete_basic_block */
- gimple_split_block, /* split_block */
+ 0 /* FIXME tuples gimple_split_block */, /* split_block */
tree_move_block_after, /* move_block_after */
- tree_can_merge_blocks_p, /* can_merge_blocks_p */
+ 0 /* FIXME tuples tree_can_merge_blocks_p */, /* can_merge_blocks_p */
tree_merge_blocks, /* merge_blocks */
tree_predict_edge, /* predict_edge */
tree_predicted_by_p, /* predicted_by_p */
tree_can_duplicate_bb_p, /* can_duplicate_block_p */
- tree_duplicate_bb, /* duplicate_block */
+ 0 /* FIXME tuples tree_duplicate_bb */, /* duplicate_block */
tree_split_edge, /* split_edge */
- tree_make_forwarder_block, /* make_forward_block */
+ 0 /* FIXME tuples tree_make_forwarder_block */, /* make_forward_block */
NULL, /* tidy_fallthru_edge */
- tree_block_ends_with_call_p, /* block_ends_with_call_p */
- tree_block_ends_with_condjump_p, /* block_ends_with_condjump_p */
- tree_flow_call_edges_add, /* flow_call_edges_add */
+ 0 /* FIXME tuples tree_block_ends_with_call_p */, /* block_ends_with_call_p */
+ 0 /* FIXME tuples tree_block_ends_with_condjump_p */, /* block_ends_with_condjump_p */
+ 0 /* FIXME tuples tree_flow_call_edges_add */, /* flow_call_edges_add */
tree_execute_on_growing_pred, /* execute_on_growing_pred */
tree_execute_on_shrinking_pred, /* execute_on_shrinking_pred */
tree_duplicate_loop_to_header_edge, /* duplicate loop for trees */
- tree_lv_add_condition_to_bb, /* lv_add_condition_to_bb */
- tree_lv_adjust_loop_header_phi, /* lv_adjust_loop_header_phi*/
+ 0 /* FIXME tuples tree_lv_add_condition_to_bb */, /* lv_add_condition_to_bb */
+ 0 /* FIXME tuples tree_lv_adjust_loop_header_phi */, /* lv_adjust_loop_header_phi*/
extract_true_false_edges_from_block, /* extract_cond_bb_edges */
flush_pending_stmts /* flush_pending_stmts */
};
@@ -6450,8 +6893,10 @@ struct tree_opt_pass pass_split_crit_edg
EXP before the current statement in BSI. */
tree
-gimplify_val (block_stmt_iterator *bsi, tree type, tree exp)
+gimplify_val (block_stmt_iterator *bsi ATTRIBUTE_UNUSED, tree type ATTRIBUTE_UNUSED, tree exp ATTRIBUTE_UNUSED)
{
+ /* FIXME tuples */
+#if 0
tree t, new_stmt, orig_stmt;
if (is_gimple_val (exp))
@@ -6469,6 +6914,9 @@ gimplify_val (block_stmt_iterator *bsi,
mark_symbols_for_renaming (new_stmt);
return t;
+#else
+ gcc_unreachable ();
+#endif
}
/* Build a ternary operation and gimplify it. Emit code before BSI.
@@ -6520,6 +6968,8 @@ gimplify_build1 (block_stmt_iterator *bs
/* Emit return warnings. */
+/* FIXME tuples */
+#if 0
static unsigned int
execute_warn_function_return (void)
{
@@ -6595,6 +7045,7 @@ execute_warn_function_return (void)
}
return 0;
}
+#endif
/* Given a basic block B which ends with a conditional and has
@@ -6625,7 +7076,7 @@ struct tree_opt_pass pass_warn_function_
{
NULL, /* name */
NULL, /* gate */
- execute_warn_function_return, /* execute */
+ 0 /* FIXME tuples execute_warn_function_return */, /* execute */
NULL, /* sub */
NULL, /* next */
0, /* static_pass_number */
Index: passes.c
===================================================================
--- passes.c (revision 127911)
+++ passes.c (working copy)
@@ -246,10 +246,15 @@ finish_optimization_passes (void)
timevar_push (TV_DUMP);
if (profile_arc_flag || flag_test_coverage || flag_branch_probabilities)
{
+ /* FIXME tuples. */
+#if 0
dump_file = dump_begin (pass_profile.static_pass_number, NULL);
end_branch_prob ();
if (dump_file)
dump_end (pass_profile.static_pass_number, dump_file);
+#else
+ gcc_unreachable ();
+#endif
}
if (optimize > 0)
@@ -486,7 +491,10 @@ init_optimization_passes (void)
NEXT_PASS (pass_lower_eh);
NEXT_PASS (pass_build_cfg);
NEXT_PASS (pass_lower_complex_O0);
+ /* FIXME tuples. */
+#if 0
NEXT_PASS (pass_lower_vector);
+#endif
NEXT_PASS (pass_warn_function_return);
NEXT_PASS (pass_build_cgraph_edges);
NEXT_PASS (pass_inline_parameters);
@@ -517,31 +525,52 @@ init_optimization_passes (void)
NEXT_PASS (pass_referenced_vars);
NEXT_PASS (pass_reset_cc_flags);
NEXT_PASS (pass_build_ssa);
+ /* FIXME tuples. */
+#if 0
NEXT_PASS (pass_early_warn_uninitialized);
+#endif
NEXT_PASS (pass_rebuild_cgraph_edges);
NEXT_PASS (pass_early_inline);
NEXT_PASS (pass_cleanup_cfg);
+ /* FIXME tuples. */
+#if 0
NEXT_PASS (pass_rename_ssa_copies);
NEXT_PASS (pass_ccp);
NEXT_PASS (pass_forwprop);
+#endif
NEXT_PASS (pass_sra_early);
NEXT_PASS (pass_copy_prop);
NEXT_PASS (pass_merge_phi);
+ /* FIXME tuples. */
+#if 0
NEXT_PASS (pass_dce);
NEXT_PASS (pass_tail_recursion);
+#endif
NEXT_PASS (pass_profile);
+ /* FIXME tuples. */
+#if 0
NEXT_PASS (pass_release_ssa_names);
+#endif
}
NEXT_PASS (pass_rebuild_cgraph_edges);
NEXT_PASS (pass_inline_parameters);
}
+ /* FIXME tuples. */
+#if 0
NEXT_PASS (pass_ipa_increase_alignment);
NEXT_PASS (pass_ipa_matrix_reorg);
+#endif
NEXT_PASS (pass_ipa_cp);
NEXT_PASS (pass_ipa_inline);
+ /* FIXME tuples. */
+#if 0
NEXT_PASS (pass_ipa_reference);
+#endif
NEXT_PASS (pass_ipa_pure_const);
+ /* FIXME tuples. */
+#if 0
NEXT_PASS (pass_ipa_type_escape);
+#endif
NEXT_PASS (pass_ipa_pta);
*p = NULL;
@@ -554,18 +583,27 @@ init_optimization_passes (void)
struct tree_opt_pass **p = &pass_all_optimizations.sub;
NEXT_PASS (pass_create_structure_vars);
NEXT_PASS (pass_return_slot);
+ /* FIXME tuples. */
+#if 0
NEXT_PASS (pass_rename_ssa_copies);
/* Initial scalar cleanups. */
NEXT_PASS (pass_ccp);
NEXT_PASS (pass_phiprop);
+#endif
NEXT_PASS (pass_fre);
+ /* FIXME tuples. */
+#if 0
NEXT_PASS (pass_dce);
NEXT_PASS (pass_forwprop);
+#endif
NEXT_PASS (pass_copy_prop);
NEXT_PASS (pass_merge_phi);
+ /* FIXME tuples. */
+#if 0
NEXT_PASS (pass_vrp);
NEXT_PASS (pass_dce);
+#endif
NEXT_PASS (pass_dominator);
/* The only const/copy propagation opportunities left after
DOM should be due to degenerate PHI nodes. So rather than
@@ -573,14 +611,20 @@ init_optimization_passes (void)
only examines PHIs to discover const/copy propagation
opportunities. */
NEXT_PASS (pass_phi_only_cprop);
+ /* FIXME tuples. */
+#if 0
NEXT_PASS (pass_tree_ifcombine);
NEXT_PASS (pass_phiopt);
NEXT_PASS (pass_tail_recursion);
NEXT_PASS (pass_ch);
NEXT_PASS (pass_stdarg);
+#endif
NEXT_PASS (pass_lower_complex);
NEXT_PASS (pass_sra);
+ /* FIXME tuples. */
+#if 0
NEXT_PASS (pass_rename_ssa_copies);
+#endif
NEXT_PASS (pass_dominator);
/* The only const/copy propagation opportunities left after
@@ -590,25 +634,40 @@ init_optimization_passes (void)
opportunities. */
NEXT_PASS (pass_phi_only_cprop);
+ /* FIXME tuples. */
+#if 0
NEXT_PASS (pass_reassoc);
NEXT_PASS (pass_dce);
NEXT_PASS (pass_dse);
NEXT_PASS (pass_forwprop);
NEXT_PASS (pass_phiopt);
+#endif
NEXT_PASS (pass_object_sizes);
+ /* FIXME tuples. */
+#if 0
NEXT_PASS (pass_store_ccp);
+#endif
NEXT_PASS (pass_store_copy_prop);
+ /* FIXME tuples. */
+#if 0
NEXT_PASS (pass_fold_builtins);
NEXT_PASS (pass_cse_sincos);
+#endif
NEXT_PASS (pass_split_crit_edges);
NEXT_PASS (pass_pre);
+ /* FIXME tuples. */
+#if 0
NEXT_PASS (pass_sink_code);
+#endif
NEXT_PASS (pass_tree_loop);
{
struct tree_opt_pass **p = &pass_tree_loop.sub;
NEXT_PASS (pass_tree_loop_init);
NEXT_PASS (pass_copy_prop);
+ /* FIXME tuples. */
+#if 0
NEXT_PASS (pass_dce_loop);
+#endif
NEXT_PASS (pass_lim);
NEXT_PASS (pass_predcom);
NEXT_PASS (pass_tree_unswitch);
@@ -621,19 +680,25 @@ init_optimization_passes (void)
NEXT_PASS (pass_if_conversion);
NEXT_PASS (pass_vectorize);
{
+ /* FIXME tuples. */
+#if 0
struct tree_opt_pass **p = &pass_vectorize.sub;
NEXT_PASS (pass_lower_vector_ssa);
NEXT_PASS (pass_dce_loop);
+#endif
}
NEXT_PASS (pass_complete_unroll);
NEXT_PASS (pass_loop_prefetch);
NEXT_PASS (pass_iv_optimize);
NEXT_PASS (pass_tree_loop_done);
}
+ /* FIXME tuples. */
+#if 0
NEXT_PASS (pass_cse_reciprocals);
NEXT_PASS (pass_convert_to_rsqrt);
NEXT_PASS (pass_reassoc);
NEXT_PASS (pass_vrp);
+#endif
NEXT_PASS (pass_dominator);
/* The only const/copy propagation opportunities left after
@@ -643,7 +708,10 @@ init_optimization_passes (void)
opportunities. */
NEXT_PASS (pass_phi_only_cprop);
+ /* FIXME tuples. */
+#if 0
NEXT_PASS (pass_cd_dce);
+#endif
/* FIXME: If DCE is not run before checking for uninitialized uses,
we may get false warnings (e.g., testsuite/gcc.dg/uninit-5.c).
@@ -654,6 +722,8 @@ init_optimization_passes (void)
account for the predicates protecting the set and the use of each
variable. Using a representation like Gated Single Assignment
may help. */
+ /* FIXME tuples. */
+#if 0
NEXT_PASS (pass_late_warn_uninitialized);
NEXT_PASS (pass_dse);
NEXT_PASS (pass_forwprop);
@@ -661,6 +731,7 @@ init_optimization_passes (void)
NEXT_PASS (pass_tail_calls);
NEXT_PASS (pass_rename_ssa_copies);
NEXT_PASS (pass_uncprop);
+#endif
NEXT_PASS (pass_del_ssa);
NEXT_PASS (pass_nrv);
NEXT_PASS (pass_mark_used_blocks);
@@ -876,6 +947,8 @@ execute_function_todo (void *data)
/* Always cleanup the CFG before trying to update SSA. */
if (flags & TODO_cleanup_cfg)
{
+ /* FIXME tuples */
+#if 0
bool cleanup = cleanup_tree_cfg ();
if (cleanup && (cfun->curr_properties & PROP_ssa))
@@ -889,13 +962,21 @@ execute_function_todo (void *data)
still need to do one. */
if (!(flags & TODO_update_ssa_any) && need_ssa_update_p ())
flags |= TODO_update_ssa;
+#else
+ gcc_unreachable ();
+#endif
}
if (flags & TODO_update_ssa_any)
{
+ /* FIXME tuples */
+#if 0
unsigned update_flags = flags & TODO_update_ssa_any;
update_ssa (update_flags);
cfun->last_verified &= ~TODO_verify_ssa;
+#else
+ gcc_unreachable ();
+#endif
}
if (flags & TODO_rebuild_alias)
@@ -970,10 +1051,13 @@ execute_function_todo (void *data)
static void
execute_todo (unsigned int flags)
{
+ /* FIXME tuples */
+#if 0
#if defined ENABLE_CHECKING
if (need_ssa_update_p ())
gcc_assert (flags & TODO_update_ssa_any);
#endif
+#endif
/* Inform the pass whether it is the first time it is run. */
first_pass_instance = (flags & TODO_mark_first_instance) != 0;
Index: tree-ssa-reassoc.c
===================================================================
--- tree-ssa-reassoc.c (revision 127911)
+++ tree-ssa-reassoc.c (working copy)
@@ -39,6 +39,8 @@ along with GCC; see the file COPYING3.
#include "langhooks.h"
#include "pointer-set.h"
+/* FIXME tuples. */
+#if 0
/* This is a simple global reassociation pass. It is, in part, based
on the LLVM pass of the same name (They do some things more/less
than we do, in different orders, etc).
@@ -1504,3 +1506,4 @@ struct tree_opt_pass pass_reassoc =
0 /* letter */
,0 /* works_with_tuples_p */
};
+#endif
Index: tree-ssanames.c
===================================================================
--- tree-ssanames.c (revision 127911)
+++ tree-ssanames.c (working copy)
@@ -27,6 +27,8 @@ along with GCC; see the file COPYING3.
#include "tree-flow.h"
#include "tree-pass.h"
+/* FIXME tuples. */
+#if 0
/* Rewriting a function into SSA form can create a huge number of SSA_NAMEs,
many of which may be thrown away shortly after their creation if jumps
were threaded through PHI nodes.
@@ -360,3 +362,4 @@ struct tree_opt_pass pass_release_ssa_na
0 /* letter */
,0 /* works_with_tuples_p */
};
+#endif
Index: tree-ssa-threadedge.c
===================================================================
--- tree-ssa-threadedge.c (revision 127911)
+++ tree-ssa-threadedge.c (working copy)
@@ -43,6 +43,8 @@ along with GCC; see the file COPYING3.
#include "langhooks.h"
#include "params.h"
+/* FIXME tuples. */
+#if 0
/* To avoid code explosion due to jump threading, we limit the
number of statements we are going to copy. This variable
holds the number of statements currently seen that we'll have
@@ -570,3 +572,4 @@ thread_across_edge (tree dummy_cond,
fail:
remove_temporary_equivalences (stack);
}
+#endif
Index: tree-ssa-operands.c
===================================================================
--- tree-ssa-operands.c (revision 127911)
+++ tree-ssa-operands.c (working copy)
@@ -74,6 +74,8 @@ along with GCC; see the file COPYING3.
vector for VUSE, then the new vector will also be modified such that
it contains 'a_5' rather than 'a'. */
+/* FIXME tuples. */
+#if 0
/* Structure storing statistics on how many call clobbers we have, and
how many where avoided. */
@@ -2963,3 +2965,4 @@ stmt_references_memory_p (gimple stmt)
return gimple_has_mem_ops (stmt);
}
+#endif