Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758005AbYGRTvd (ORCPT ); Fri, 18 Jul 2008 15:51:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755080AbYGRTvZ (ORCPT ); Fri, 18 Jul 2008 15:51:25 -0400 Received: from terminus.zytor.com ([198.137.202.10]:50139 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754564AbYGRTvZ (ORCPT ); Fri, 18 Jul 2008 15:51:25 -0400 Message-ID: <4880F410.3090804@zytor.com> Date: Fri, 18 Jul 2008 12:50:40 -0700 From: "H. Peter Anvin" User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: Mathieu Desnoyers CC: Ingo Molnar , Ingo Molnar , Steven Rostedt , linux-kernel@vger.kernel.org Subject: Re: [PATCH ftrace.git] Immedate Values Optimized Jump Fix References: <20080717031721.GA24504@Krystal> <20080718161523.GY6875@elte.hu> <20080718183124.GA31768@Krystal> In-Reply-To: <20080718183124.GA31768@Krystal> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1860 Lines: 43 Mathieu Desnoyers wrote: >> >> $ git-log-line linus.. arch/x86/kernel/immediate.c >> ee563d6: immediate values: jump liveliness >> e26875a: Immediate Values - Jump >> 3fc8d03: Immediate Values - x86 Optimization NMI and MCE support >> >> ... but the topic is stalled right now, due to hpa having had >> objections. Have those concerns been resolved? (Peter Cc:-ed) >> >> i'd have applied this fix, but it does not apply. The first chunk seems >> already be present (in a different form), the second chunk looks much >> different. > > Hrm, I've edited directly the immediate values: jump liveliness patches, > which explains why it does not apply. I'll try to unapply/reapply/fold > the patches and see what it gives. > > Plus, I've noticed that the "Text Edit Lock" patches are not in the > immediates branch, thus it fails to compile. Immediate values depends on > the Text Edit Lock patches. > My previous objection was that flow of control really does need to be understood by the compiler, and I don't see how that could have been resolved without involving gcc. I'm not opposed to static jump optimization in general, far from it, but doing it behind the back of the compiler is fraught with peril, and even if it can be made correct is going to generate bad enough code that I have to question if it is worth the additional complexity. I definitely do not approve of the attempt to truncate liveliness by putting a clobber after the if branch; there is still intervening code generated by the C compiler which is going to cause some extremely hard to debug problems at some point. -hpa -- 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/