summaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2009-09-11 16:05:46 +0000
committerDJ Delorie <dj@delorie.com>2009-09-11 16:05:46 +0000
commitc4a2e7b295f44c38dc111145dd6e3a7a63cec23b (patch)
tree1fa6f6ba300d6abed6cf6c2b6c5ddb4483596d97 /libiberty
parent3b3a7d6ec86a43e67d7d05ced40c81c28ac808f0 (diff)
downloadgdb-c4a2e7b295f44c38dc111145dd6e3a7a63cec23b.tar.gz
merge from gcc
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/regex.c26
1 files changed, 12 insertions, 14 deletions
diff --git a/libiberty/regex.c b/libiberty/regex.c
index 56410ff81d4..fa1df197ce9 100644
--- a/libiberty/regex.c
+++ b/libiberty/regex.c
@@ -5908,24 +5908,22 @@ byte_re_match_2_internal (struct re_pattern_buffer *bufp,
longest match, try backtracking. */
if (d != end_match_2)
{
+ /* 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);
/* 1 if this match is the best seen so far. */
boolean best_match_p;
- {
- /* 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);
-
- /* AIX compiler got confused when this was combined
- with the previous declaration. */
- if (same_str_p)
- best_match_p = d > match_end;
- else
- best_match_p = !MATCHING_IN_FIRST_STRING;
+ /* AIX compiler got confused when this was combined
+ with the previous declaration. */
+ if (same_str_p)
+ best_match_p = d > match_end;
+ else
+ best_match_p = !MATCHING_IN_FIRST_STRING;
+
+ DEBUG_PRINT1 ("backtracking.\n");
- DEBUG_PRINT1 ("backtracking.\n");
- }
if (!FAIL_STACK_EMPTY ())
{ /* More failure points to try. */