From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Magnani Subject: Re: Why is (2 < 2) true? Is it a gcc bug? Date: Fri, 17 Jan 2014 09:47:05 -0600 Message-ID: <52D95079.1060803@digidescorp.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ig0-f175.google.com ([209.85.213.175]:35939 "EHLO mail-ig0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751973AbaAQPrI (ORCPT ); Fri, 17 Jan 2014 10:47:08 -0500 Received: by mail-ig0-f175.google.com with SMTP id uq10so1896568igb.2 for ; Fri, 17 Jan 2014 07:47:07 -0800 (PST) In-Reply-To: Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: "Dorau, Lukasz" , Richard Weinberger Cc: "linux-scsi@vger.kernel.org" On 01/17/2014 08:55 AM, Dorau, Lukasz wrote: > On Friday, January 17, 2014 2:58 PM Richard Weinberger wrote: >> Can you reproduce this using a standalone test? >> I.e: >> #include >> >> int main() >> { >> assert(2 < 2 != 1); >> >> return 0; >> } >> > No, I can't of course. > The test might need to be more complex in order to prevent the compiler from optimizing away the issue. Or, you could try -O0. ------------------------------------------------------------------------ Steven J. Magnani "I claim this network for MARS! www.digidescorp.com Earthling, return my space modulator!" #include