diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-10 12:30:34 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-10 12:30:34 +0000 |
commit | d90b3d04fca5bcaf406e6e3747b11c8a9295c42b (patch) | |
tree | e3ee20c06e269902b68b2a5e3e336d2a0081cd5f /gcc/genautomata.c | |
parent | 7fe54e4877c20ac320940f73f98e0d4b69f26b2c (diff) | |
download | gcc-d90b3d04fca5bcaf406e6e3747b11c8a9295c42b.tar.gz |
* emit-rtl.c (emit_jump_insn_before, emit_call_insn_before,
emit_jump_insn): Fix uninitialized variable.
* gcov.c (init_line_info): Likewise.
* genautomata.c (transform_3): Add braces around ambiguous
else.
* ifcvt.c (cond_exec_process_insns): Mark parameter with
ATTRIBUTE_UNUSED.
* ra-build.c (parts_to_webs_1): Fix uninitialized variable.
* regrename.c (copyprop_hardreg_forward): Fix uninitialized
variable.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56182 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genautomata.c')
-rw-r--r-- | gcc/genautomata.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/gcc/genautomata.c b/gcc/genautomata.c index 08f81734574..9fd1e836d89 100644 --- a/gcc/genautomata.c +++ b/gcc/genautomata.c @@ -4983,17 +4983,19 @@ 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) - { - 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) + { + max_seq_length = 0; + break; + } + } if (max_seq_length != 0) { if (max_seq_length == 1 || REGEXP_ALLOF (regexp)->regexps_num <= 1) |