This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: build error from trunk sources
- From: Andrey Belevantsev <abel at ispras dot ru>
- To: Janus Weil <jaydub66 at googlemail dot com>
- Cc: M R Swami Reddy <MR dot Swami dot Reddy at nsc dot com>, gcc mailing list <gcc at gcc dot gnu dot org>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 01 Sep 2008 16:32:42 +0400
- Subject: Re: build error from trunk sources
- References: <48BBCD5B.7000500@nsc.com> <854832d40809010514p2ed4654aq5a73f3390985cdf5@mail.gmail.com>
Janus Weil wrote:
Building trunk rev. 139857 on linux/x86_64, I get the following failure:
...
cc1: warnings being treated as errors
/home/local/jweil/gcc44/trunk/gcc/sel-sched-ir.c:946: error:
'cmp_v_in_regset_pool' defined but not used
I will commit the following as obvious once bootstrap finishes. Sorry
for the breakage.
Andrey
2008-09-01 Andrey Belevantsev <abel@ispras.ru>
* sel-sched-ir.c (cmp_v_in_regset_pool): Surround with
#ifdef ENABLE_CHECKING.
Index: gcc/sel-sched-ir.c
===================================================================
*** gcc/sel-sched-ir.c (revision 139859)
--- gcc/sel-sched-ir.c (working copy)
*************** return_regset_to_pool (regset rs)
*** 939,944 ****
--- 939,945 ----
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
*************** cmp_v_in_regset_pool (const void *x, con
*** 946,951 ****
--- 947,953 ----
{
return *((const regset *) x) - *((const regset *) xx);
}
+ #endif
/* Free the regset pool possibly checking for memory leaks. */
void