aboutsummaryrefslogtreecommitdiff
path: root/gcc/genautomata.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2002-08-10 12:30:34 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2002-08-10 12:30:34 +0000
commitd950dee3a50e04e4bdf03cc061f7f2b858a84657 (patch)
treee3ee20c06e269902b68b2a5e3e336d2a0081cd5f /gcc/genautomata.c
parentfac37dc49748835a2264f9a53b485b89aceb5718 (diff)
downloadgcc-d950dee3a50e04e4bdf03cc061f7f2b858a84657.zip
gcc-d950dee3a50e04e4bdf03cc061f7f2b858a84657.tar.gz
gcc-d950dee3a50e04e4bdf03cc061f7f2b858a84657.tar.bz2
emit-rtl.c (emit_jump_insn_before, [...]): Fix uninitialized variable.
* 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. From-SVN: r56182
Diffstat (limited to 'gcc/genautomata.c')
-rw-r--r--gcc/genautomata.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/gcc/genautomata.c b/gcc/genautomata.c
index 08f8173..9fd1e83 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)