Received: from eggs.gnu.org ([2001:4830:134:3::10]:60315) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cxdAW-0008P9-8R for qemu-devel@nongnu.org; Mon, 10 Apr 2017 13:32:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cxdAV-00069K-8g for qemu-devel@nongnu.org; Mon, 10 Apr 2017 13:32:00 -0400 Received: from mail-pg0-x22e.google.com ([2607:f8b0:400e:c05::22e]:33674) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cxdAV-000693-3i for qemu-devel@nongnu.org; Mon, 10 Apr 2017 13:31:59 -0400 Received: by mail-pg0-x22e.google.com with SMTP id x125so109225433pgb.0 for ; Mon, 10 Apr 2017 10:31:59 -0700 (PDT) Sender: Richard Henderson References: <20170410060655.32289-1-nikunj@linux.vnet.ibm.com> From: Richard Henderson Message-ID: Date: Mon, 10 Apr 2017 10:31:54 -0700 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH fix for-2.9] cpus: fix wrong define name List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Nikunj A Dadhania , QEMU Developers , Paolo Bonzini , Peter Crosthwaite , David Gibson , =?UTF-8?Q?Alex_Benn=c3=a9e?= On 04/10/2017 10:29 AM, Peter Maydell wrote: > On 10 April 2017 at 18:26, Richard Henderson wrote: >> On 04/09/2017 11:06 PM, Nikunj A Dadhania wrote: >>> --- a/cpus.c >>> +++ b/cpus.c >>> @@ -202,7 +202,7 @@ void qemu_tcg_configure(QemuOpts *opts, Error **errp) >>> } else if (use_icount) { >>> error_setg(errp, "No MTTCG when icount is enabled"); >>> } else { >>> -#ifndef TARGET_SUPPORT_MTTCG >>> +#ifndef TARGET_SUPPORTS_MTTCG >> >> >> This sort of thing is why glibc moved to using -Wundef. >> >> It would be a huge amount of work to convert our existing sources, but it >> would probably pay off in the long run. > > We already build with -Wundef... Ah, but then you also have to stop using #ifdef and #ifndef, and use only #if. Thus my incomplete comment above about conversion. r~