about summary refs log tree commit diff
path: root/string
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-03-24 15:02:20 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-04-17 16:12:40 -0300
commit96f8c9eefa06c2795aa3cfc689bfe801116d6221 (patch)
tree520b8447f5ed351419944dec1c14bf8e65826d8f /string
parent942eea75573c400fb9d9c51f7cbcbdf38b603fe2 (diff)
downloadglibc-96f8c9eefa06c2795aa3cfc689bfe801116d6221.tar.gz
glibc-96f8c9eefa06c2795aa3cfc689bfe801116d6221.tar.xz
glibc-96f8c9eefa06c2795aa3cfc689bfe801116d6221.zip
And defines to __attribute__ (__noclone__) iff compiler supports it.
Diffstat (limited to 'string')
-rw-r--r--string/tst-xbzero-opt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/string/tst-xbzero-opt.c b/string/tst-xbzero-opt.c
index 2392eaa2c1..954fc61f89 100644
--- a/string/tst-xbzero-opt.c
+++ b/string/tst-xbzero-opt.c
@@ -97,7 +97,8 @@ static const unsigned char test_pattern[16] =
 
 static ucontext_t uc_main, uc_co;
 
-static __attribute__ ((noinline, noclone)) int
+static __attribute__ ((noinline)) __attribute_noclone__
+int
 use_test_buffer (unsigned char *buf)
 {
   unsigned int sum = 0;