This is the mail archive of the gcc-patches@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: A patch for genautomata.c


Vladimir Makarov wrote:
> 
> Hello,
> 
> I've just committed the patch which fixes minor problems in
> genautomata.c.  The patch has been tested, on i386, alpha, sparc and
> sh.
> 

Sorry, I've missed a typo (actually I used it to test the patch).  Here
the patch to fix it.  I've committed it into the repository.

Vlad

2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>

        * genautomata.c (reserv_sets_hash_value): Fix a typo.

Index: genautomata.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/genautomata.c,v
retrieving revision 1.12
diff -c -p -r1.12 genautomata.c
*** genautomata.c       21 May 2002 23:11:57 -0000      1.12
--- genautomata.c       21 May 2002 23:22:18 -0000
*************** reserv_sets_hash_value (reservs)
*** 3410,3416 ****
        i = 0;
        reserv_ptr++;
      }
!   if (sizeof (set_el_t) < sizeof (unsigned))
      return hash_value;
    result = 0;
    for (i = sizeof (set_el_t); i > 0; i -= sizeof (unsigned))
--- 3410,3416 ----
        i = 0;
        reserv_ptr++;
      }
!   if (sizeof (set_el_t) <= sizeof (unsigned))
      return hash_value;
    result = 0;
    for (i = sizeof (set_el_t); i > 0; i -= sizeof (unsigned))


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