From patchwork Tue Mar 25 16:55:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 27057 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f199.google.com (mail-ig0-f199.google.com [209.85.213.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8C24E2057C for ; Tue, 25 Mar 2014 16:57:40 +0000 (UTC) Received: by mail-ig0-f199.google.com with SMTP id uy17sf3846279igb.2 for ; Tue, 25 Mar 2014 09:57:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:cc:subject:precedence:list-id:list-unsubscribe:list-post :list-help:list-subscribe:mime-version:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :list-archive:content-type:content-transfer-encoding; bh=nq/iZqRHejDMQ6nc9f++oLRGCO0+DDv6TiT3VfJEbHI=; b=m0Sh3F3HxcwsbJGTcq81KF1MJSDHQ4EpeCecYgpBYa1mKHiOtznkHiKkUyPLf2PPVd ckNzJpgY6zTJ2c8pKgVFBj7knHCTuE+DLp+ebCYAbBzbf4XUcwsFybx1Dbk/09CSSUIi UBbas/HsY2LH+gJQDPWvvMMK0q3CA2TXy/wA2GHb/xy7F8v67buyxi6aTBIdP6QUBL0O DhTFkE80yFxV+22oGtDOIrYSFv3ebRApqBPI6+48vLTK4YYQs6Ab3XC1F63iE6bsl3YS 4RaXz3fCi3sJR4SyxNKJaEVEHGIyhtzUyaZWAJdjN8MIgXvzREFeIJSdYhUYjZ4C3Ure 22hQ== X-Gm-Message-State: ALoCoQlDZxclXAKRxwWiG64T5ZUy7vIfl9BgrlEJiBBEBOHLZ4NbQUvqaRySlNlwHebT1TAxPpAa X-Received: by 10.182.51.200 with SMTP id m8mr15547090obo.16.1395766660009; Tue, 25 Mar 2014 09:57:40 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.47.239 with SMTP id m102ls296372qga.8.gmail; Tue, 25 Mar 2014 09:57:39 -0700 (PDT) X-Received: by 10.221.22.71 with SMTP id qv7mr822723vcb.34.1395766659937; Tue, 25 Mar 2014 09:57:39 -0700 (PDT) Received: from mail-ve0-f169.google.com (mail-ve0-f169.google.com [209.85.128.169]) by mx.google.com with ESMTPS id ph6si3867949veb.53.2014.03.25.09.57.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Mar 2014 09:57:39 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.169; Received: by mail-ve0-f169.google.com with SMTP id pa12so922931veb.28 for ; Tue, 25 Mar 2014 09:57:39 -0700 (PDT) X-Received: by 10.58.111.163 with SMTP id ij3mr1988715veb.26.1395766659862; Tue, 25 Mar 2014 09:57:39 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp320340vck; Tue, 25 Mar 2014 09:57:39 -0700 (PDT) X-Received: by 10.42.204.197 with SMTP id fn5mr306323icb.95.1395766658332; Tue, 25 Mar 2014 09:57:38 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id u10si28344761igh.22.2014.03.25.09.57.35 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 25 Mar 2014 09:57:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xen.org designates 50.57.142.19 as permitted sender) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WSUdi-0008A1-Gs; Tue, 25 Mar 2014 16:55:50 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WSUdh-00089c-FL for xen-devel@lists.xenproject.org; Tue, 25 Mar 2014 16:55:49 +0000 Received: from [193.109.254.147:64655] by server-7.bemta-14.messagelabs.com id 99/5D-17726-415B1335; Tue, 25 Mar 2014 16:55:48 +0000 X-Env-Sender: julien.grall@linaro.org X-Msg-Ref: server-2.tower-27.messagelabs.com!1395766547!4091053!1 X-Originating-IP: [74.125.83.41] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.11.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 28134 invoked from network); 25 Mar 2014 16:55:48 -0000 Received: from mail-ee0-f41.google.com (HELO mail-ee0-f41.google.com) (74.125.83.41) by server-2.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 25 Mar 2014 16:55:48 -0000 Received: by mail-ee0-f41.google.com with SMTP id t10so697923eei.28 for ; Tue, 25 Mar 2014 09:55:47 -0700 (PDT) X-Received: by 10.14.205.137 with SMTP id j9mr51283889eeo.14.1395766547862; Tue, 25 Mar 2014 09:55:47 -0700 (PDT) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id h47sm33377501eey.13.2014.03.25.09.55.46 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Mar 2014 09:55:47 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Tue, 25 Mar 2014 16:55:09 +0000 Message-Id: <1395766541-23979-3-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1395766541-23979-1-git-send-email-julien.grall@linaro.org> References: <1395766541-23979-1-git-send-email-julien.grall@linaro.org> Cc: stefano.stabellini@citrix.com, Keir Fraser , Julien Grall , tim@xen.org, ian.campbell@citrix.com Subject: [Xen-devel] [PATCH 02/34] xen: clang: Disable built-in assembler X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: Clang 3.5 is trying to parse every assembly line in C file. The files asm-offsets.c are taking advantage of the inline assembly but doesn't produce valid assembly. x86_64/asm-offsets.c:26:5: error: unexpected token at start of statement OFFSET(UREGS_r15, struct cpu_user_regs, r15); ^ x86_64/asm-offsets.c:22:5: note: expanded from macro 'OFFSET' DEFINE(_sym, offsetof(_str, _mem)); ^ x86_64/asm-offsets.c:18:31: note: expanded from macro 'DEFINE' __asm__ __volatile__ ( "\n->" #_sym " %0 " #_val : : "i" (_val) ) ^ :2:1: note: instantiated into assembly here ->UREGS_r15 $0 offsetof(struct cpu_user_regs, r15) Signed-off-by: Julien Grall Cc: Keir Fraser Acked-by: Ian Campbell Acked-by: Jan Beulich --- xen/Rules.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/Rules.mk b/xen/Rules.mk index 18fbd62..ce54926 100644 --- a/xen/Rules.mk +++ b/xen/Rules.mk @@ -74,6 +74,7 @@ AFLAGS-y += -D__ASSEMBLY__ -include $(BASEDIR)/include/xen/config # Clang's built-in assembler can't handle .code16/.code32/.code64 yet AFLAGS-$(clang) += -no-integrated-as +CFLAGS-$(clang) += -no-integrated-as ALL_OBJS := $(ALL_OBJS-y)