mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
include/sys/cdefs.h: Add __attribute_optimization_barrier__
Add __attribute_optimization_barrier__ to disable inlining and cloning on a function. For Clang, expand it to __attribute__ ((optnone)) Otherwise, expand it to __attribute__ ((noinline, clone)) Co-Authored-By: H.J. Lu <hjl.tools@gmail.com> Reviewed-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
H.J. Lu
parent
3fb895ac88
commit
a2b0ff98a0
@@ -54,7 +54,7 @@ f1 (int a0, int a1, int a2, int a3)
|
||||
}
|
||||
|
||||
static void
|
||||
__attribute__ ((noinline, noclone))
|
||||
__attribute_optimization_barrier__
|
||||
call_longjmp (void)
|
||||
{
|
||||
longjmp_called = 1;
|
||||
|
||||
Reference in New Issue
Block a user