aboutsummaryrefslogtreecommitdiff
path: root/malloc
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 /malloc
parent942eea75573c400fb9d9c51f7cbcbdf38b603fe2 (diff)
downloadglibc-96f8c9eefa06c2795aa3cfc689bfe801116d6221.zip
glibc-96f8c9eefa06c2795aa3cfc689bfe801116d6221.tar.gz
glibc-96f8c9eefa06c2795aa3cfc689bfe801116d6221.tar.bz2
And defines to __attribute__ (__noclone__) iff compiler supports it.
Diffstat (limited to 'malloc')
-rw-r--r--malloc/tst-malloc-thread-exit.c2
-rw-r--r--malloc/tst-malloc-thread-fail.c2
-rw-r--r--malloc/tst-mallocstate.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/malloc/tst-malloc-thread-exit.c b/malloc/tst-malloc-thread-exit.c
index aec3897..d21191a 100644
--- a/malloc/tst-malloc-thread-exit.c
+++ b/malloc/tst-malloc-thread-exit.c
@@ -42,7 +42,7 @@ static int inner_thread_count = 4;
static size_t malloc_size = 32;
static void
-__attribute__ ((noinline, noclone))
+__attribute__ ((noinline)) __attribute_noclone__
unoptimized_free (void *ptr)
{
free (ptr);
diff --git a/malloc/tst-malloc-thread-fail.c b/malloc/tst-malloc-thread-fail.c
index f698871..d5bc343 100644
--- a/malloc/tst-malloc-thread-fail.c
+++ b/malloc/tst-malloc-thread-fail.c
@@ -33,7 +33,7 @@
/* Wrapper for calloc with an optimization barrier. */
static void *
-__attribute__ ((noinline, noclone))
+__attribute__ ((noinline)) __attribute_noclone__
allocate_zeroed (size_t a, size_t b)
{
return calloc (a, b);
diff --git a/malloc/tst-mallocstate.c b/malloc/tst-mallocstate.c
index f72e1a1..25e3e31 100644
--- a/malloc/tst-mallocstate.c
+++ b/malloc/tst-mallocstate.c
@@ -366,7 +366,7 @@ full_heap_check (void)
}
/* Used as an optimization barrier to force a heap allocation. */
-__attribute__ ((noinline, noclone))
+__attribute__ ((noinline)) __attribute_noclone__
static void
my_free (void *ptr)
{