aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Belevantsev <abel@ispras.ru>2008-09-01 16:40:32 +0400
committerAndrey Belevantsev <abel@gcc.gnu.org>2008-09-01 16:40:32 +0400
commit68ad446f149f501726ac386f64add454ac37e342 (patch)
tree98af3b39f6429d6be90720f999217fa493a3444f
parentdfb0e60d22af8a61eb38e2b7c351e9fa516fef00 (diff)
downloadgcc-68ad446f149f501726ac386f64add454ac37e342.zip
gcc-68ad446f149f501726ac386f64add454ac37e342.tar.gz
gcc-68ad446f149f501726ac386f64add454ac37e342.tar.bz2
sel-sched-ir.c (cmp_v_in_regset_pool): Surround with #ifdef ENABLE_CHECKING.
* sel-sched-ir.c (cmp_v_in_regset_pool): Surround with #ifdef ENABLE_CHECKING. From-SVN: r139863
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/sel-sched-ir.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index fa1f937..078acdb 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,4 +1,9 @@
2008-09-01 Andrey Belevantsev <abel@ispras.ru>
+
+ * sel-sched-ir.c (cmp_v_in_regset_pool): Surround with
+ #ifdef ENABLE_CHECKING.
+
+2008-09-01 Andrey Belevantsev <abel@ispras.ru>
* sel-sched-dump.c: Surround with #ifdef INSN_SCHEDULING.
* sched-int.h (print_insn, print_pattern, print_value): Declare also
diff --git a/gcc/sel-sched-ir.c b/gcc/sel-sched-ir.c
index 856fb42..84a2725 100644
--- a/gcc/sel-sched-ir.c
+++ b/gcc/sel-sched-ir.c
@@ -939,6 +939,7 @@ return_regset_to_pool (regset rs)
regset_pool.v[regset_pool.n++] = rs;
}
+#ifdef ENABLE_CHECKING
/* This is used as a qsort callback for sorting regset pool stacks.
X and XX are addresses of two regsets. They are never equal. */
static int
@@ -946,6 +947,7 @@ cmp_v_in_regset_pool (const void *x, const void *xx)
{
return *((const regset *) x) - *((const regset *) xx);
}
+#endif
/* Free the regset pool possibly checking for memory leaks. */
void