mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-19 22:41:28 +08:00
read-rtl.c (join_c_conditions): Return the first string if the two strings are equal.
gcc/ * read-rtl.c (join_c_conditions): Return the first string if the two strings are equal. From-SVN: r135091
This commit is contained in:
parent
e663da80d4
commit
96c92f4763
@ -1,3 +1,8 @@
|
||||
2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
|
||||
|
||||
* read-rtl.c (join_c_conditions): Return the first string if the
|
||||
two strings are equal.
|
||||
|
||||
2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
|
||||
|
||||
* gensupport.h (pred_data): Add a "num_codes" field.
|
||||
|
@ -787,6 +787,9 @@ join_c_conditions (const char *cond1, const char *cond2)
|
||||
if (cond2 == 0 || cond2[0] == 0)
|
||||
return cond1;
|
||||
|
||||
if (strcmp (cond1, cond2) == 0)
|
||||
return cond1;
|
||||
|
||||
result = concat ("(", cond1, ") && (", cond2, ")", NULL);
|
||||
obstack_ptr_grow (&joined_conditions_obstack, result);
|
||||
obstack_ptr_grow (&joined_conditions_obstack, cond1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user