This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: egcs, possible conditional logic think-o in regclass.c
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: egcs, possible conditional logic think-o in regclass.c
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sun, 12 Jul 1998 22:44:37 -0600
- cc: egcs-bugs at cygnus dot com, meissner at cygnus dot com
- Reply-To: law at cygnus dot com
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