This is the mail archive of the gcc-bugs@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]

Re: egcs, possible conditional logic think-o in regclass.c



  In message <199807121654.MAA01542@caip.rutgers.edu>you write:
  >  > void
  >  > allocate_reg_info (num_regs, new_p, renumber_p)
  >  >      size_t num_regs;
  >  >      int new_p;
  >  >      int renumber_p;
  >  > {
  >  > 
  >  > [...]
  >  > 
  >  >   /* Free up all storage allocated */
  >  >   if (num_regs < 0)
  >  >     {
  > 
  > 
  > 
  > 	Since `num_regs' is indeed unsigned, the comparison does look
  > to be always false.  What was the intention here?
I believe the intention was probably to pass "-1" in to cause memory
to be free'd.

But I can't find a call to do that.  And even if such a call existed
I think the comparison would still return false.

Michael -- you were in the code last, what's going on?

jeff


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