diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2003-01-15 01:21:46 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2003-01-15 01:21:46 +0000 |
commit | dd1b7476b15731af50e306410e72d5d307236e67 (patch) | |
tree | 3ad64b3477d3a7f104bf10206c07949e3b39a226 /gcc/genautomata.c | |
parent | 8cb5ee71923f70805d8b67418e9d098d640ff6c4 (diff) | |
download | gcc-dd1b7476b15731af50e306410e72d5d307236e67.zip gcc-dd1b7476b15731af50e306410e72d5d307236e67.tar.gz gcc-dd1b7476b15731af50e306410e72d5d307236e67.tar.bz2 |
decl2.c (check_classfn): Fix uninitialized warning.
cp:
* decl2.c (check_classfn): Fix uninitialized warning.
(build_anon_union_vars): Likewise.
* pt.c (tsubst_copy): Likewise.
gcc:
* genattr.c (main): Rearrange output to avoid prototype warning.
* genautomata.c (transform_3): Fix ambiguous-else warning.
* local-alloc.c (requires_inout): Add parentheses around
assignment used as truth-value.
* timevar.c: Move system includes above local includes. Include
toplev.h
* Makefile.in (timevar.o): Depend on toplev.h.
From-SVN: r61308
Diffstat (limited to 'gcc/genautomata.c')
-rw-r--r-- | gcc/genautomata.c | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/gcc/genautomata.c b/gcc/genautomata.c index 308c189..8ee2c22 100644 --- a/gcc/genautomata.c +++ b/gcc/genautomata.c @@ -5275,18 +5275,20 @@ transform_3 (regexp) max_seq_length = 0; if (regexp->mode == rm_allof) for (i = 0; i < REGEXP_ALLOF (regexp)->regexps_num; i++) - if (REGEXP_ALLOF (regexp)->regexps [i]->mode == rm_sequence) - { - seq = REGEXP_ALLOF (regexp)->regexps [i]; - if (max_seq_length < REGEXP_SEQUENCE (seq)->regexps_num) - max_seq_length = REGEXP_SEQUENCE (seq)->regexps_num; - } - else if (REGEXP_ALLOF (regexp)->regexps [i]->mode != rm_unit - && REGEXP_ALLOF (regexp)->regexps [i]->mode != rm_nothing) - { - max_seq_length = 0; - break; - } + { + if (REGEXP_ALLOF (regexp)->regexps [i]->mode == rm_sequence) + { + seq = REGEXP_ALLOF (regexp)->regexps [i]; + if (max_seq_length < REGEXP_SEQUENCE (seq)->regexps_num) + max_seq_length = REGEXP_SEQUENCE (seq)->regexps_num; + } + else if (REGEXP_ALLOF (regexp)->regexps [i]->mode != rm_unit + && REGEXP_ALLOF (regexp)->regexps [i]->mode != rm_nothing) + { + max_seq_length = 0; + break; + } + } if (max_seq_length != 0) { if (max_seq_length == 1 || REGEXP_ALLOF (regexp)->regexps_num <= 1) |