Remove the str(n)cmp inlines from string/bits/string2.h. The strncmp
authorWilco Dijkstra <wdijkstr@arm.com>
Wed, 15 Feb 2017 15:23:52 +0000 (15:23 +0000)
committerWilco Dijkstra <wdijkstr@arm.com>
Wed, 15 Feb 2017 15:23:52 +0000 (15:23 +0000)
commitf7db120f67d853e0cfa272fa39c8b9be67c0a935
tree90dee57467c79f59aeb095bbc16a9589dfe05656
parent3172b27b2b3b0033e85ddf3566c7533a8f3b4bda
Remove the str(n)cmp inlines from string/bits/string2.h.  The strncmp
optimization seems unlikely to ever be useful, but if it occurs in
real code it should be added to GCC.  Expanding strcmp of small strings
does appear useful (benchmarking shows it is 2-3x faster), so this would
be useful to implement in GCC (PR 78809).

* string/bits/string2.h (strcmp): Remove define.
(__strcmp_cg): Likewise.
(strncmp): Likewise.
ChangeLog
string/bits/string2.h