diff options
author | bernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-08-27 22:08:37 +0000 |
---|---|---|
committer | bernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-08-27 22:08:37 +0000 |
commit | 7f7aff44a8f83d72197cba2393aced46d1c3f494 (patch) | |
tree | a64de73bb34c3b98eb0d169ec43550d3c838e07f /gcc/genautomata.c | |
parent | a670b2ec67342f14f222d0f14c5f68de8f175ebd (diff) | |
download | gcc-7f7aff44a8f83d72197cba2393aced46d1c3f494.tar.gz |
* genautomata.c (gen_regexp_repeat, gen_regexp_allof,
gen_regexp_oneof, gen_regexp_sequence): Use the string found
in vector element 0 rather than the original string when there's
only one element.
(gen_regexp): Remove extra semicolon.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163600 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genautomata.c')
-rw-r--r-- | gcc/genautomata.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/genautomata.c b/gcc/genautomata.c index 88d358cb86f..ff024b64ff8 100644 --- a/gcc/genautomata.c +++ b/gcc/genautomata.c @@ -1603,7 +1603,7 @@ gen_regexp_repeat (const char *str) return regexp; } else - return gen_regexp_el (str); + return gen_regexp_el (repeat_vect[0]); } /* Parse reservation STR which possibly contains separator '+'. */ @@ -1629,7 +1629,7 @@ gen_regexp_allof (const char *str) return allof; } else - return gen_regexp_repeat (str); + return gen_regexp_repeat (allof_vect[0]); } /* Parse reservation STR which possibly contains separator '|'. */ @@ -1655,7 +1655,7 @@ gen_regexp_oneof (const char *str) return oneof; } else - return gen_regexp_allof (str); + return gen_regexp_allof (oneof_vect[0]); } /* Parse reservation STR which possibly contains separator ','. */ @@ -1680,7 +1680,7 @@ gen_regexp_sequence (const char *str) return sequence; } else - return gen_regexp_oneof (str); + return gen_regexp_oneof (sequence_vect[0]); } /* Parse construction reservation STR. */ @@ -1688,7 +1688,7 @@ static regexp_t gen_regexp (const char *str) { reserv_str = str; - return gen_regexp_sequence (str);; + return gen_regexp_sequence (str); } /* Process a DEFINE_RESERVATION. |