Patch fixing a typo in genautomata.c

Vladimir Makarov vmakarov@redhat.com
Mon Apr 14 15:55:00 GMT 2003


Vladimir Makarov wrote:
> 
>   The following patch fixes a typo which might result in genautomata
> crash.
> 
> The patch has been tested on regression tests and bootstrap for x86
> and ia64.  I did not find a degradation.  I've commited the patch into
> the main trunk.
> 
> Vlad
> 
> 2003-04-14  Vladimir Makarov  <vmakarov@redhat.com>
> 
>         * genautomata.c (output_translate_vect): Fix a typo in loop
>         condition.
> 

Acidently, another patch has been sent.  This is a correct patch.

Vlad
-------------- next part --------------
Index: genautomata.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/genautomata.c,v
retrieving revision 1.39
diff -c -p -r1.39 genautomata.c
*** genautomata.c	13 Mar 2003 03:48:27 -0000	1.39
--- genautomata.c	14 Apr 2003 15:40:33 -0000
*************** output_translate_vect (automaton)
*** 7670,7676 ****
  
    VLA_HWINT_CREATE (translate_vect, 250, "translate vector");
    VLA_HWINT_EXPAND (translate_vect, description->insns_num);
!   for (insn_value = 0; insn_value <= description->insns_num; insn_value++)
      /* Undefined value */
      VLA_HWINT (translate_vect, insn_value) = automaton->insn_equiv_classes_num;
    for (ainsn = automaton->ainsn_list; ainsn != NULL; ainsn = ainsn->next_ainsn)
--- 7670,7676 ----
  
    VLA_HWINT_CREATE (translate_vect, 250, "translate vector");
    VLA_HWINT_EXPAND (translate_vect, description->insns_num);
!   for (insn_value = 0; insn_value < description->insns_num; insn_value++)
      /* Undefined value */
      VLA_HWINT (translate_vect, insn_value) = automaton->insn_equiv_classes_num;
    for (ainsn = automaton->ainsn_list; ainsn != NULL; ainsn = ainsn->next_ainsn)


More information about the Gcc-patches mailing list