[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 4/7] compiler: add macro for GCC weak symbols
From: |
Anthony Liguori |
Subject: |
[Qemu-devel] [PATCH 4/7] compiler: add macro for GCC weak symbols |
Date: |
Fri, 10 Aug 2012 11:04:12 -0500 |
This lets us provide a default implementation of a symbol which targets can
override.
Signed-off-by: Anthony Liguori <address@hidden>
---
compiler.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/compiler.h b/compiler.h
index 736e770..f76921e 100644
--- 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)
--
1.7.5.4
- [Qemu-devel] [PATCH 0/7] qapi: add commands to remove the need (v2), Anthony Liguori, 2012/08/10
- [Qemu-devel] [PATCH 4/7] compiler: add macro for GCC weak symbols,
Anthony Liguori <=
- [Qemu-devel] [PATCH 6/7] target-i386: add implementation of query-cpu-definitions (v2), Anthony Liguori, 2012/08/10
- [Qemu-devel] [PATCH 7/7] target-ppc: add implementation of query-cpu-definitions (v2), Anthony Liguori, 2012/08/10
- [Qemu-devel] [PATCH 2/7] qapi: mark QOM commands stable, Anthony Liguori, 2012/08/10
- [Qemu-devel] [PATCH 5/7] qapi: add query-cpu-definitions command (v2), Anthony Liguori, 2012/08/10
- [Qemu-devel] [PATCH 1/7] qmp: introduce device-list-properties command, Anthony Liguori, 2012/08/10
- [Qemu-devel] [PATCH 3/7] qapi: add query-machines command, Anthony Liguori, 2012/08/10