projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8a7379
)
core: id_equal should forward
author
Nathan Sidwell
<nathan@acm.org>
Mon, 2 Nov 2020 16:43:17 +0000
(08:43 -0800)
committer
Nathan Sidwell
<nathan@acm.org>
Mon, 2 Nov 2020 16:56:39 +0000
(08:56 -0800)
I noticed the two id_equal functions directly called strcmp. This
changes one of them to call the other with args swapped.
gcc/
* tree.h (id_equal): Call the symetric predicate with swapped
arguments.
gcc/tree.h
patch
|
blob
|
history
diff --git
a/gcc/tree.h
b/gcc/tree.h
index 04e564c979898f1c5141ec3255b74afafa4e5e36..caf6287f90969ecaa07b5931536f7d16bd98c776 100644
(file)
--- a/
gcc/tree.h
+++ b/
gcc/tree.h
@@
-3859,7
+3859,7
@@
id_equal (const_tree id, const char *str)
inline bool
id_equal (const char *str, const_tree id)
{
- return
!strcmp (str, IDENTIFIER_POINTER (id)
);
+ return
id_equal (id, str
);
}
/* Return the number of elements in the VECTOR_TYPE given by NODE. */