glibc/glibc-2.26-no-attribute-leaf-for-clang.patch
Andrey Bondrov 2bb20c2d90 New version 2.28
Sync patches with OpenMandriva
2019-04-12 16:38:20 +10:00

11 lines
497 B
Diff

--- glibc-2.26/misc/sys/cdefs.h.omv~ 2018-01-24 11:32:15.276543892 +0100
+++ glibc-2.26/misc/sys/cdefs.h 2018-01-24 11:32:47.208618287 +0100
@@ -38,7 +38,7 @@
/* All functions, except those with callbacks or those that
synchronize memory, are leaf functions. */
-# if __GNUC_PREREQ (4, 6) && !defined _LIBC
+# if __GNUC_PREREQ (4, 6) && !defined _LIBC && (!defined(__clang__) || __has_attribute(leaf))
# define __LEAF , __leaf__
# define __LEAF_ATTR __attribute__ ((__leaf__))
# else