aboutsummaryrefslogtreecommitdiff
path: root/gcc/genautomata.c
diff options
context:
space:
mode:
authorVladimir Makarov <vmakarov@redhat.com>2003-04-29 22:46:54 +0000
committerVladimir Makarov <vmakarov@gcc.gnu.org>2003-04-29 22:46:54 +0000
commit74719742273fc48198d4d1bbe6aec23413c5d58a (patch)
treeb4d89e04d4670d1736b23b0b5d57a80b5b663b9f /gcc/genautomata.c
parentbaade80b780123865ad05f7cf85254e602c6da0d (diff)
downloadgcc-74719742273fc48198d4d1bbe6aec23413c5d58a.zip
gcc-74719742273fc48198d4d1bbe6aec23413c5d58a.tar.gz
gcc-74719742273fc48198d4d1bbe6aec23413c5d58a.tar.bz2
genautomata.c (add_vect): Check undefined value for range type too.
2003-04-29 Vladimir Makarov <vmakarov@redhat.com> * genautomata.c (add_vect): Check undefined value for range type too. From-SVN: r66266
Diffstat (limited to 'gcc/genautomata.c')
-rw-r--r--gcc/genautomata.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/genautomata.c b/gcc/genautomata.c
index 438bdef..7b2f05b 100644
--- a/gcc/genautomata.c
+++ b/gcc/genautomata.c
@@ -7885,6 +7885,10 @@ add_vect (tab, vect_num, vect, vect_length)
tab->min_comb_vect_el_value = vect [vect_index];
check_vect_start [comb_vect_index + vect_index] = vect_num;
}
+ if (tab->max_comb_vect_el_value < undefined_vect_el_value)
+ tab->max_comb_vect_el_value = undefined_vect_el_value;
+ if (tab->min_comb_vect_el_value > undefined_vect_el_value)
+ tab->min_comb_vect_el_value = undefined_vect_el_value;
if (tab->max_base_vect_el_value < comb_vect_index)
tab->max_base_vect_el_value = comb_vect_index;
if (tab->min_base_vect_el_value > comb_vect_index)