diff options
author | Siddhesh Poyarekar <siddhesh@gotplt.org> | 2023-01-07 19:30:32 -0500 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2023-01-08 16:26:39 +0100 |
commit | 4f79f545b3c46c358666c9f5f2b384fe50aac4b4 (patch) | |
tree | d97ae762c3e22c11bc2551616d1c103c564e9df5 /src/fundamental/macro-fundamental.h | |
parent | 9907a7e00b7c57f56020eeec3247e0f75799435d (diff) | |
download | systemd-4f79f545b3c46c358666c9f5f2b384fe50aac4b4.tar.gz |
alloc-util: Disallow inlining of expand_to_usable
Explicitly set __attribute__ ((noinline)) so that the compiler does not
attempt to inline expand_to_usable, even with LTO.
Diffstat (limited to 'src/fundamental/macro-fundamental.h')
-rw-r--r-- | src/fundamental/macro-fundamental.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fundamental/macro-fundamental.h b/src/fundamental/macro-fundamental.h index 9400c389ca..10ee46b9c1 100644 --- a/src/fundamental/macro-fundamental.h +++ b/src/fundamental/macro-fundamental.h @@ -20,6 +20,7 @@ #define _hidden_ __attribute__((__visibility__("hidden"))) #define _likely_(x) (__builtin_expect(!!(x), 1)) #define _malloc_ __attribute__((__malloc__)) +#define _noinline_ __attribute__((noinline)) #define _noreturn_ _Noreturn #define _packed_ __attribute__((__packed__)) #define _printf_(a, b) __attribute__((__format__(printf, a, b))) |