This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: build error from trunk sources


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]