raiden00pl commented on code in PR #17444: URL: https://github.com/apache/nuttx/pull/17444#discussion_r2637239846
########## include/string.h: ########## @@ -100,10 +100,10 @@ FAR void *memrchr(FAR const void *s, int c, size_t n); FAR void *rawmemchr(FAR const void *s, int c); FAR void *memccpy(FAR void *s1, FAR const void *s2, int c, size_t n); int memcmp(FAR const void *s1, FAR const void *s2, size_t n); -FAR void *memcpy(FAR void *dest, FAR const void *src, size_t n); +FAR void *memcpy(FAR void *dest, FAR const void *src, size_t n) used_code; Review Comment: I'm not sure about this. I have tested several other string functions and they don't cause any errors, but I don't know whether this will change in the future. How LTO works inside is a bit of black magic for me. The simplest way is to disable LTO for libc, but then we lose a lot of optimization, so it's not worth it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
