aboutsummaryrefslogtreecommitdiff
path: root/stdlib/tst-swapcontext2.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/tst-swapcontext2.c')
-rw-r--r--stdlib/tst-swapcontext2.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/stdlib/tst-swapcontext2.c b/stdlib/tst-swapcontext2.c
index a9c1dc8..e3f972f 100644
--- a/stdlib/tst-swapcontext2.c
+++ b/stdlib/tst-swapcontext2.c
@@ -1,5 +1,5 @@
/* Check setjmp/longjmp between user contexts.
- Copyright (C) 2023 Free Software Foundation, Inc.
+ Copyright (C) 2023-2025 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -32,7 +32,7 @@ static jmp_buf jmpbuf;
#define handle_error(msg) \
do { perror(msg); exit(EXIT_FAILURE); } while (0)
-__attribute__((noinline, noclone))
+__attribute_optimization_barrier__
static void
func4(ucontext_t *uocp, ucontext_t *ucp, const char *str, const char *fmt)
{
@@ -42,7 +42,7 @@ func4(ucontext_t *uocp, ucontext_t *ucp, const char *str, const char *fmt)
printf(" %sfunc4: returning\e[0m\n", fmt);
}
-__attribute__((noinline, noclone))
+__attribute_optimization_barrier__
static void
func3(ucontext_t *uocp, ucontext_t *ucp, const char *str, const char *fmt)
{
@@ -51,7 +51,7 @@ func3(ucontext_t *uocp, ucontext_t *ucp, const char *str, const char *fmt)
printf(" %sfunc3: returning\e[0m\n", fmt);
}
-__attribute__((noinline, noclone))
+__attribute_optimization_barrier__
static void
func1(void)
{
@@ -67,7 +67,7 @@ func1(void)
}
}
-__attribute__((noinline, noclone))
+__attribute_optimization_barrier__
static void
func2(void)
{