Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760705AbYGRXhl (ORCPT ); Fri, 18 Jul 2008 19:37:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756122AbYGRXhb (ORCPT ); Fri, 18 Jul 2008 19:37:31 -0400 Received: from terminus.zytor.com ([198.137.202.10]:36371 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756735AbYGRXha (ORCPT ); Fri, 18 Jul 2008 19:37:30 -0400 Message-ID: <48812902.5070003@zytor.com> Date: Fri, 18 Jul 2008 16:36:34 -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> <4880F410.3090804@zytor.com> <20080718211205.GA5423@Krystal> In-Reply-To: <20080718211205.GA5423@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: 796 Lines: 19 Mathieu Desnoyers wrote: > > Hrm, I thought that by following the execution flow to both branches and > by looking at the code pattern found (load immediate, test, branch) and > by placing a constraint on the eax register to detect the liveliness > region of that variable we would be guaranteed that the compiler could > not re-use this variable outside of the pattern scope. > Nope, and you *cannot* allow such registers to be live *anywhere* the C compiler is generating code, even between two asm() statements with nothing in between. -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/