From patchwork Fri Jul 4 11:46:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 4480941 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6D8B2BEEAA for ; Fri, 4 Jul 2014 11:47:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B737E20414 for ; Fri, 4 Jul 2014 11:47:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 891CF20412 for ; Fri, 4 Jul 2014 11:47:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753007AbaGDLrD (ORCPT ); Fri, 4 Jul 2014 07:47:03 -0400 Received: from david.siemens.de ([192.35.17.14]:53233 "EHLO david.siemens.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750714AbaGDLrC (ORCPT ); Fri, 4 Jul 2014 07:47:02 -0400 Received: from mail1.siemens.de (localhost [127.0.0.1]) by david.siemens.de (8.14.3/8.14.3) with ESMTP id s64BkwEY021248; Fri, 4 Jul 2014 13:46:58 +0200 Received: from mchn199C.mchp.siemens.de ([139.25.40.156]) by mail1.siemens.de (8.14.3/8.14.3) with ESMTP id s64BkvVL004000; Fri, 4 Jul 2014 13:46:58 +0200 Message-ID: <53B6942F.3040404@siemens.com> Date: Fri, 04 Jul 2014 13:46:55 +0200 From: Jan Kiszka User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Paolo Bonzini , Bandan Das CC: kvm@vger.kernel.org Subject: [PATCH] Add -mno-red-zone to CFLAGS for x86-64 References: <1404284054-51863-1-git-send-email-wanpeng.li@linux.intel.com> <53B3CA6A.4050902@siemens.com> <20140703065955.GA4236@kernel> <20140704025250.GA2849@kernel> <53B63EF2.6000800@siemens.com> <53B674CD.2090906@siemens.com> <53B67602.4040604@redhat.com> <53B68781.9080200@siemens.com> <53B68B07.8020509@siemens.com> <53B68FE2.9070700@redhat.com> In-Reply-To: <53B68FE2.9070700@redhat.com> X-Enigmail-Version: 1.6 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This is required in order to use the stack in inline assembly (like pushf; pop reg) without clashing with the compiler's stack assignment. Signed-off-by: Jan Kiszka --- Seen with old gcc 4.5.1. config/config-x86_64.mak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config-x86_64.mak b/config/config-x86_64.mak index d69252f..06b2581 100644 --- a/config/config-x86_64.mak +++ b/config/config-x86_64.mak @@ -1,7 +1,7 @@ cstart.o = $(TEST_DIR)/cstart64.o bits = 64 ldarch = elf64-x86-64 -CFLAGS += -D__x86_64__ +CFLAGS += -D__x86_64__ -mno-red-zone tests = $(TEST_DIR)/access.flat $(TEST_DIR)/apic.flat \ $(TEST_DIR)/emulator.flat $(TEST_DIR)/idt_test.flat \