Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754833AbXLCLvb (ORCPT ); Mon, 3 Dec 2007 06:51:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752444AbXLCLvY (ORCPT ); Mon, 3 Dec 2007 06:51:24 -0500 Received: from mx1.redhat.com ([66.187.233.31]:41910 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752298AbXLCLvX (ORCPT ); Mon, 3 Dec 2007 06:51:23 -0500 Date: Mon, 3 Dec 2007 06:51:12 -0500 From: Jakub Jelinek To: Thomas Gleixner Cc: Thomas Gleixner , Pierre Ossman , LKML Subject: Re: Fedora's latest gcc produces unbootable kernels Message-ID: <20071203115112.GT16835@devserv.devel.redhat.com> Reply-To: Jakub Jelinek References: <20071201154223.1b052d39@poseidon.drzeus.cx> <20071201184752.33536d09@poseidon.drzeus.cx> <20071201212054.2377c8be@poseidon.drzeus.cx> <23803.203.197.163.97.1196669842.squirrel@www.tglx.de> <20071203085817.GQ16835@devserv.devel.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1009 Lines: 21 On Mon, Dec 03, 2007 at 12:34:17PM +0100, Thomas Gleixner wrote: > Of course just to annoy you :) It doesn't matter whether I'm annoyed about this or not, but whether gcc is able to generate decent code with it or not. And especially with union it is not, at least through all the tree ssa passes. You already have a lot of the details hidden in ktime.h accessor inlines, so I don't think it would be hard to add further one or two. Anyway, even just using typedef struct ktime { s64 tv64; } ktime_t; could make things better in case you have just one field. Unlike unions, structs can be (and in this case most likely will be) scalarized by SRA, so half of tree SSA passes will see it as integral var and will be able to perform optimizations on it. Jakub -- 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/