aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix
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 /sysdeps/unix
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 'sysdeps/unix')
-rw-r--r--sysdeps/unix/sysv/linux/x86_64/tst-cet-property-2.c2
-rw-r--r--sysdeps/unix/sysv/linux/x86_64/tst-cet-setcontext-1.c2
-rw-r--r--sysdeps/unix/sysv/linux/x86_64/tst-cet-vfork-1.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/x86_64/tst-cet-property-2.c b/sysdeps/unix/sysv/linux/x86_64/tst-cet-property-2.c
index 5274a09..a72ace7 100644
--- a/sysdeps/unix/sysv/linux/x86_64/tst-cet-property-2.c
+++ b/sysdeps/unix/sysv/linux/x86_64/tst-cet-property-2.c
@@ -25,7 +25,7 @@
extern void bar (void);
void
-__attribute__ ((noclone, noinline))
+__attribute__ ((noinline)) __attribute_noclone__
test (void (*func_p) (void))
{
func_p ();
diff --git a/sysdeps/unix/sysv/linux/x86_64/tst-cet-setcontext-1.c b/sysdeps/unix/sysv/linux/x86_64/tst-cet-setcontext-1.c
index 388931f..c0289dc 100644
--- a/sysdeps/unix/sysv/linux/x86_64/tst-cet-setcontext-1.c
+++ b/sysdeps/unix/sysv/linux/x86_64/tst-cet-setcontext-1.c
@@ -30,7 +30,7 @@ static ucontext_t ctx[5];
static atomic_int done;
static void
-__attribute__((noinline, noclone))
+__attribute__((noinline)) __attribute_noclone__
f2 (void)
{
printf ("start f2\n");
diff --git a/sysdeps/unix/sysv/linux/x86_64/tst-cet-vfork-1.c b/sysdeps/unix/sysv/linux/x86_64/tst-cet-vfork-1.c
index 56d7753..3e0061f 100644
--- a/sysdeps/unix/sysv/linux/x86_64/tst-cet-vfork-1.c
+++ b/sysdeps/unix/sysv/linux/x86_64/tst-cet-vfork-1.c
@@ -25,7 +25,7 @@
#include <x86intrin.h>
#include <support/test-driver.h>
-__attribute__ ((noclone, noinline))
+__attribute__ ((noinline)) __attribute_noclone__
static void
do_test_1 (void)
{