diff options
author | vmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-29 22:46:54 +0000 |
---|---|---|
committer | vmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-29 22:46:54 +0000 |
commit | c9407b733caacb8c93d3df7709bb42e8b923bf17 (patch) | |
tree | b4d89e04d4670d1736b23b0b5d57a80b5b663b9f | |
parent | e9b19591088589374967ef476d096c9a7235c5eb (diff) | |
download | gcc-c9407b733caacb8c93d3df7709bb42e8b923bf17.tar.gz |
2003-04-29 Vladimir Makarov <vmakarov@redhat.com>
* genautomata.c (add_vect): Check undefined value for range type
too.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66266 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/genautomata.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 04789712e7e..46b4555e0fb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-04-29 Vladimir Makarov <vmakarov@redhat.com> + + * genautomata.c (add_vect): Check undefined value for range type + too. + 2003-04-29 Phil Edwards <pme@gcc.gnu.org> * configure.in: More general test for cmp --ignore-initial. diff --git a/gcc/genautomata.c b/gcc/genautomata.c index 438bdefaa27..7b2f05b9e1f 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) |