PERFORCE change 1191164 for review
Khilan Gudka
novazeta at FreeBSD.org
Wed Feb 19 14:47:59 UTC 2014
http://p4web.freebsd.org/@@1191164?ac=10
Change 1191164 by novazeta at novazeta_zenith on 2014/02/19 14:47:02
Change definition of __weak_reference (when using clang) to use attributes
rather than inline assembly. This enables the IR to understand weak references.
Submitted by: Khilan Gudka (novazeta)
Affected files ...
.. //depot/projects/ctsrd/tesla/src/sys/sys/cdefs.h#3 edit
Differences ...
==== //depot/projects/ctsrd/tesla/src/sys/sys/cdefs.h#3 (text+ko) ====
@@ -508,6 +508,10 @@
extern __typeof (sym) aliassym __attribute__ ((__alias__ (#sym)))
#endif
#ifdef __STDC__
+#ifdef __clang__
+#define __weak_reference(sym,alias) \
+ extern __typeof (sym) alias __attribute__ ((weak, __alias__ (#sym)))
+#endif /* __clang__ */
#define __weak_reference(sym,alias) \
__asm__(".weak " #alias); \
__asm__(".equ " #alias ", " #sym)
More information about the p4-projects
mailing list