From: Andrey Belevantsev Date: Mon, 1 Sep 2008 12:40:32 +0000 (+0400) Subject: sel-sched-ir.c (cmp_v_in_regset_pool): Surround with #ifdef ENABLE_CHECKING. X-Git-Tag: releases/gcc-4.4.0~2725 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=68ad446f149f501726ac386f64add454ac37e342;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fa1f937d349d..078acdbc1693 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-09-01 Andrey Belevantsev + + * sel-sched-ir.c (cmp_v_in_regset_pool): Surround with + #ifdef ENABLE_CHECKING. + 2008-09-01 Andrey Belevantsev * sel-sched-dump.c: Surround with #ifdef INSN_SCHEDULING. diff --git a/gcc/sel-sched-ir.c b/gcc/sel-sched-ir.c index 856fb4259c75..84a2725b8eb3 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