projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01d3c80
)
compiler: add macro for GCC weak symbols
author
Anthony Liguori
<aliguori@us.ibm.com>
Fri, 10 Aug 2012 16:04:12 +0000
(11:04 -0500)
committer
Luiz Capitulino
<lcapitulino@redhat.com>
Mon, 13 Aug 2012 19:10:18 +0000
(16:10 -0300)
This lets us provide a default implementation of a symbol which targets can
override.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
compiler.h
patch
|
blob
|
history
diff --git
a/compiler.h
b/compiler.h
index 736e77075ae47d9707946f982478e78d764b0fff..f76921e5b059f16857e3cc136089358c275681be 100644
(file)
--- a/
compiler.h
+++ b/
compiler.h
@@
-45,6
+45,7
@@
# define GCC_ATTR __attribute__((__unused__, format(gnu_printf, 1, 2)))
# define GCC_FMT_ATTR(n, m) __attribute__((format(gnu_printf, n, m)))
# endif
+#define GCC_WEAK __attribute__((weak))
#else
#define GCC_ATTR /**/
#define GCC_FMT_ATTR(n, m)