Received: from eggs.gnu.org ([208.118.235.92]:38724) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T10e2-00029r-U0 for qemu-devel@nongnu.org; Mon, 13 Aug 2012 15:49:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T10e0-0003z0-Sq for qemu-devel@nongnu.org; Mon, 13 Aug 2012 15:49:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:11633) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T10e0-0003yu-LG for qemu-devel@nongnu.org; Mon, 13 Aug 2012 15:49:44 -0400 From: Luiz Capitulino Date: Mon, 13 Aug 2012 16:49:06 -0300 Message-Id: <1344887349-13041-46-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1344887349-13041-1-git-send-email-lcapitulino@redhat.com> References: <1344887349-13041-1-git-send-email-lcapitulino@redhat.com> Subject: [Qemu-devel] [PATCH 45/48] compiler: add macro for GCC weak symbols List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: aliguori@us.ibm.com Cc: qemu-devel@nongnu.org From: Anthony Liguori This lets us provide a default implementation of a symbol which targets can override. Signed-off-by: Anthony Liguori Signed-off-by: Luiz Capitulino --- compiler.h | 1 + 1 file changed, 1 insertion(+) 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.11.2.249.g31c7954.dirty