From: Tom Rini Date: Mon, 7 Dec 2015 13:03:05 -0500 Subject: [U-Boot] [PATCH] mkimage: Fix generating multi and script images again In-Reply-To: <20151207174736.69E35383F2E@gemini.denx.de> References: <1449507714-9599-1-git-send-email-marex@denx.de> <20151207174736.69E35383F2E@gemini.denx.de> Message-ID: <20151207180305.GK9551@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Dec 07, 2015 at 06:47:36PM +0100, Wolfgang Denk wrote: > Dear Marek, > > In message <1449507714-9599-1-git-send-email-marex@denx.de> you wrote: > > > > Second is the coding which causes gcc 4.9.x and newer scream gruesome > > death and murder. The expression !x == 0 && !x == 1 is ambiguous and > > should instead be rewritten into (x != 0) && (x != 1) to be correct. ok, part of the problem is that we aren't testing !x == 0 && !x == 1 (and I'm re-wording the commit msg, we had been talking about this on IRC) but "!x == 4 || !x == 6". > But (!x == 0) && (!x == 1) ist not the same as (x != 0) && (x != 1); > assume x=2: ... so this is a different thing to consider too. I'm re-wording things because in sum, what Philippe did is not straight forward, and Marek's version is. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: