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: On purpose ???



  In message <199808101712.TAA18081@mururoa.inria.fr>you write:
  > 
  > 	While browsing the warning reports of two different builds (
  > sparc-sun-solaris2.6 and ) I noticed the following message:
  > 
  >    1 unsigned value < 0 is always 0
  > 
  > This happens in gcc/regclass.c at line 1786 in the allocate_reg_info 
  > function:
  > 
  >   /* Free up all storage allocated */
  >   if (num_regs < 0)                    ----> num_regs is unsigned
  > 
  > This looks wrong. It seems to have been introduced after the change 
  > (Thu Jul  2 14:16:11 1998  Michael Meissner  <meissner@cygnus.com>: 
  > see the full entry at the end of the mail).
I suspect that we are actually missing calls to allocate_reg_info which
are expected to pass in -1 to free the storage.

Meissner is on vacation, so I can't actually ask him when it's supposed
to be safe to free up the reg_info memory.  So we've got a leak, hopefully
Michael will fix it after he returns from vacation.

jeff


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