From patchwork Mon Aug 20 13:26:21 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alon Levy X-Patchwork-Id: 178848 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 5E49E2C0099 for ; Tue, 21 Aug 2012 00:32:48 +1000 (EST) Received: from localhost ([::1]:50349 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3S1M-0006xH-Li for incoming@patchwork.ozlabs.org; Mon, 20 Aug 2012 09:27:56 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48475) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3S0j-0005pM-QI for qemu-devel@nongnu.org; Mon, 20 Aug 2012 09:27:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3S0e-0004ir-KZ for qemu-devel@nongnu.org; Mon, 20 Aug 2012 09:27:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44029) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3S0e-0004iZ-Cm for qemu-devel@nongnu.org; Mon, 20 Aug 2012 09:27:12 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q7KDRBJ0032167 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 20 Aug 2012 09:27:11 -0400 Received: from garlic.tlv.redhat.com (spice-ovirt.tlv.redhat.com [10.35.4.71]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q7KDR45Z011954; Mon, 20 Aug 2012 09:27:10 -0400 From: Alon Levy To: qemu-devel@nongnu.org, kraxel@redhat.com Date: Mon, 20 Aug 2012 16:26:21 +0300 Message-Id: <1345469181-1708-5-git-send-email-alevy@redhat.com> In-Reply-To: <1345469181-1708-1-git-send-email-alevy@redhat.com> References: <1345469181-1708-1-git-send-email-alevy@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v9 5/5] (temp) FORTIFY_SOURCES hack X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org --- .gitmodules | 3 +++ compiler.h | 7 +++++++ spice-protocol | 1 + 3 files changed, 11 insertions(+) create mode 160000 spice-protocol diff --git a/.gitmodules b/.gitmodules index eca876f..ba6844b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -19,3 +19,6 @@ [submodule "roms/sgabios"] path = roms/sgabios url = git://git.qemu.org/sgabios.git +[submodule "spice-protocol"] + path = spice-protocol + url = git://git.freedesktop.org/git/spice/spice-protocol diff --git a/compiler.h b/compiler.h index 07ba1f8..622aeda 100644 --- a/compiler.h +++ b/compiler.h @@ -57,4 +57,11 @@ #define GCC_FMT_ATTR(n, m) #endif +/* Enable compile-time and run-time bounds-checking, and some warnings. */ +#ifdef __OPTIMIZE__ +#if __OPTIMIZE__ +# define _FORTIFY_SOURCE 2 +#endif +#endif + #endif /* COMPILER_H */ diff --git a/spice-protocol b/spice-protocol new file mode 160000 index 0000000..26cd194 --- /dev/null +++ b/spice-protocol @@ -0,0 +1 @@ +Subproject commit 26cd1946a5c959a53c78fa16f1b3e84a9682121b