diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-03-24 15:02:20 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-04-17 16:12:40 -0300 |
commit | 96f8c9eefa06c2795aa3cfc689bfe801116d6221 (patch) | |
tree | 520b8447f5ed351419944dec1c14bf8e65826d8f /sysdeps/unix | |
parent | 942eea75573c400fb9d9c51f7cbcbdf38b603fe2 (diff) | |
download | glibc-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.c | 2 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/x86_64/tst-cet-setcontext-1.c | 2 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/x86_64/tst-cet-vfork-1.c | 2 |
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) { |