Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261859AbUKUXm3 (ORCPT ); Sun, 21 Nov 2004 18:42:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261847AbUKUXm3 (ORCPT ); Sun, 21 Nov 2004 18:42:29 -0500 Received: from gaz.sfgoth.com ([69.36.241.230]:17150 "EHLO gaz.sfgoth.com") by vger.kernel.org with ESMTP id S261852AbUKUXlY (ORCPT ); Sun, 21 Nov 2004 18:41:24 -0500 Date: Sun, 21 Nov 2004 15:43:30 -0800 From: Mitchell Blank Jr To: Jan Engelhardt Cc: Linux Kernel List Subject: Re: sparse segfaults Message-ID: <20041121234330.GA28381@gaz.sfgoth.com> References: <20041120143755.E13550@flint.arm.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.2.2 (gaz.sfgoth.com [127.0.0.1]); Sun, 21 Nov 2004 15:43:30 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 764 Lines: 19 Jan Engelhardt wrote: > >Actually, this is documented gcc behaviour,[...] > >you can do > > int tickadj = *ptr++ ? : 1; > >and it's well-behaved in that it increments the pointer only once. > > And it's specific to GCC. This kinda ruins some tries to get ICC working on the > kernel tree :) By ICC do you mean the Intel compiler? It's supported the GCC Extension "Conditionals with Omitted Operands" since at least version 5.0.1. See: http://www.intel.com/software/products/compilers/c50/linux/comp501.pdf -Mitch - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/