aboutsummaryrefslogtreecommitdiff
path: root/gcc/ra-build.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2002-07-22 02:04:25 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2002-07-22 02:04:25 +0000
commit533c4863631a304fb908021829934a6b81fcb24c (patch)
tree3114403bb3070cab9b0afd98aedb05080340f804 /gcc/ra-build.c
parent8943a0b4d855341542bf9b5fe4d29b616078ca9a (diff)
downloadgcc-533c4863631a304fb908021829934a6b81fcb24c.zip
gcc-533c4863631a304fb908021829934a6b81fcb24c.tar.gz
gcc-533c4863631a304fb908021829934a6b81fcb24c.tar.bz2
ra-build.c (check_conflict_numbers): Hide unused function.
* ra-build.c (check_conflict_numbers): Hide unused function. (livethrough_conflicts_bb): Avoid automatic aggregate initialization. (parts_to_webs_1): Avoid `U' integer constant modifier. (conflicts_between_webs): Wrap a variable in the macro controlling its usage. * ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE. (dump_igraph, dump_graph_cost): Avoid string concatenation (dump_static_insn_cost): Avoid automatic aggregate initialization. * ra-rewrite.c (insert_stores): Avoid automatic aggregate initialization. (dump_cost): Avoid string concatenation From-SVN: r55637
Diffstat (limited to 'gcc/ra-build.c')
-rw-r--r--gcc/ra-build.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/gcc/ra-build.c b/gcc/ra-build.c
index 4518381..a7351f2 100644
--- a/gcc/ra-build.c
+++ b/gcc/ra-build.c
@@ -101,7 +101,9 @@ static unsigned int parts_to_webs_1 PARAMS ((struct df *, struct web_link **,
struct df_link *));
static void parts_to_webs PARAMS ((struct df *));
static void reset_conflicts PARAMS ((void));
+#if 0
static void check_conflict_numbers PARAMS ((void));
+#endif
static void conflicts_between_webs PARAMS ((struct df *));
static void remember_web_was_spilled PARAMS ((struct web *));
static void detect_spill_temps PARAMS ((void));
@@ -1069,8 +1071,10 @@ livethrough_conflicts_bb (bb)
{
if (INSN_P (insn))
{
- struct ra_insn_info info = insn_df[INSN_UID (insn)];
unsigned int n;
+ struct ra_insn_info info;
+
+ info = insn_df[INSN_UID (insn)];
for (n = 0; n < info.num_defs; n++)
bitmap_set_bit (all_defs, DF_REF_ID (info.defs[n]));
if (TEST_BIT (insns_with_deaths, INSN_UID (insn)))
@@ -1826,7 +1830,7 @@ parts_to_webs_1 (df, copy_webs, all_refs)
if (! wp->uplink)
{
/* If we have a web part root, create a new web. */
- unsigned int newid = ~0U;
+ unsigned int newid = ~(unsigned)0;
unsigned int old_web = 0;
/* In the first pass, there are no old webs, so unconditionally
@@ -1871,7 +1875,7 @@ parts_to_webs_1 (df, copy_webs, all_refs)
}
}
/* The id is zeroed in init_one_web(). */
- if (newid == ~0U)
+ if (newid == ~(unsigned)0)
newid = web->id;
if (old_web)
reinit_one_web (web, GET_CODE (reg) == SUBREG
@@ -2188,6 +2192,7 @@ reset_conflicts ()
/* For each web check it's num_conflicts member against that
number, as calculated from scratch from all neighbors. */
+#if 0
static void
check_conflict_numbers ()
{
@@ -2204,6 +2209,7 @@ check_conflict_numbers ()
abort ();
}
}
+#endif
/* Convert the conflicts between web parts to conflicts between full webs.
@@ -2223,7 +2229,9 @@ conflicts_between_webs (df)
struct df *df;
{
unsigned int i;
+#ifdef STACK_REGS
struct dlist *d;
+#endif
bitmap ignore_defs = BITMAP_XMALLOC ();
unsigned int have_ignored;
unsigned int *pass_cache = (unsigned int *) xcalloc (num_webs, sizeof (int));