Received: from eggs.gnu.org ([2001:4830:134:3::10]:60523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bF0Yk-0008Vl-Kf for qemu-devel@nongnu.org; Mon, 20 Jun 2016 10:52:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bF0Yf-0008Bl-FD for qemu-devel@nongnu.org; Mon, 20 Jun 2016 10:52:17 -0400 Received: from mail-qk0-x236.google.com ([2607:f8b0:400d:c09::236]:34276) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bF0Yf-0008Bf-BE for qemu-devel@nongnu.org; Mon, 20 Jun 2016 10:52:13 -0400 Received: by mail-qk0-x236.google.com with SMTP id t127so43196482qkf.1 for ; Mon, 20 Jun 2016 07:52:13 -0700 (PDT) Sender: Richard Henderson References: <1466232432-27513-1-git-send-email-rth@twiddle.net> From: Richard Henderson Message-ID: <7512f461-7f05-90fc-ae21-01c2d89437cb@twiddle.net> Date: Mon, 20 Jun 2016 07:52:09 -0700 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] build: Use $(CC) for compiling .S files List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers On 06/20/2016 06:43 AM, Peter Maydell wrote: > On 18 June 2016 at 07:47, Richard Henderson wrote: >> We fail to pass to AS all of the different flags that >> may be required for a given set of CFLAGS. Rather than >> figuring out the host-specific mapping, it's better to >> allow the compiler driver to do that. >> >> This fixes e.g. ../configure --cpu=i686, but would also >> be required for ppc and sparc. >> >> Signed-off-by: Richard Henderson > > This is basically reverting commit 3dd46c78525a30e98c68 from > 2013, which explicitly switched to using separate CPP and > AS steps "because the C compiler could be unsuitable", by > which I think it means the failure described here: > https://lists.gnu.org/archive/html/qemu-devel/2013-01/msg00558.html > where if the compiler is clang it might not be able to > handle some of the code we use in the optionrom assembly > even though 'as' can. > > Does that no longer apply ? Ah, well, no. But that report is for building ROMs, where AS plus all of the options are easily controllable. Whereas this current problem is where we are linking assembly (safe-syscall.S) into the qemu executable. These are two completely different usages, and ought to be treated as such. r~