aboutsummaryrefslogtreecommitdiff
path: root/libiberty/regex.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2009-10-02 18:23:01 +0000
committerDJ Delorie <dj@redhat.com>2009-10-02 18:23:01 +0000
commit664aa91f58967c26edf02ae198ec2410db78699f (patch)
treee43249594b9350cfff352a32918a0438ad043f82 /libiberty/regex.c
parentca2163eb33ba5572fd2988bda8bb80608e6c36be (diff)
downloadgdb-664aa91f58967c26edf02ae198ec2410db78699f.zip
gdb-664aa91f58967c26edf02ae198ec2410db78699f.tar.gz
gdb-664aa91f58967c26edf02ae198ec2410db78699f.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/regex.c')
-rw-r--r--libiberty/regex.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libiberty/regex.c b/libiberty/regex.c
index fa1df19..ad49684 100644
--- a/libiberty/regex.c
+++ b/libiberty/regex.c
@@ -5910,11 +5910,14 @@ byte_re_match_2_internal (struct re_pattern_buffer *bufp,
{
/* 1 if this match ends in the same string (string1 or string2)
as the best previous match. */
- boolean same_str_p = (FIRST_STRING_P (match_end)
- == MATCHING_IN_FIRST_STRING);
+ boolean same_str_p;
+
/* 1 if this match is the best seen so far. */
boolean best_match_p;
+ same_str_p = (FIRST_STRING_P (match_end)
+ == MATCHING_IN_FIRST_STRING);
+
/* AIX compiler got confused when this was combined
with the previous declaration. */
if (same_str_p)