From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26864 invoked by alias); 20 Jun 2010 15:30:51 -0000 Received: (qmail 26628 invoked by uid 22791); 20 Jun 2010 15:30:49 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 20 Jun 2010 15:30:44 +0000 Received: from kpbe16.cbf.corp.google.com (kpbe16.cbf.corp.google.com [172.25.105.80]) by smtp-out.google.com with ESMTP id o5KFUfj2006794 for ; Sun, 20 Jun 2010 08:30:41 -0700 Received: from vws9 (vws9.prod.google.com [10.241.21.137]) by kpbe16.cbf.corp.google.com with ESMTP id o5KFUbLn001332 for ; Sun, 20 Jun 2010 08:30:40 -0700 Received: by vws9 with SMTP id 9so175210vws.19 for ; Sun, 20 Jun 2010 08:30:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.63.135 with SMTP id b7mr1279743vci.262.1277047840550; Sun, 20 Jun 2010 08:30:40 -0700 (PDT) Received: by 10.220.189.201 with HTTP; Sun, 20 Jun 2010 08:30:40 -0700 (PDT) In-Reply-To: <-3945058798826177264@unknownmsgid> References: <201006071700.28706.pedro@codesourcery.com> <4C19222C.2000208@codesourcery.com> <201006162016.18181.pedro@codesourcery.com> <4C19265B.7090502@codesourcery.com> <4C1A6362.3020306@vmware.com> <-3945058798826177264@unknownmsgid> Date: Sun, 20 Jun 2010 15:30:00 -0000 Message-ID: Subject: Re: [RFA-new version][gdbserver] x86 agent expression bytecode compiler (speed up conditional tracepoints) From: Doug Evans To: Pierre Muller Cc: Hui Zhu , gdb-patches@sourceware.org, Pedro Alves , Stan Shebs , Eli Zaretskii , tromey@redhat.com, Michael Snyder Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-06/txt/msg00440.txt.bz2 On Sun, Jun 20, 2010 at 2:29 AM, Pierre Muller wrote: > =A0As I said in a previous email, Ian's patch didn't work for me. > http://sourceware.org/ml/gdb-patches/2010-06/msg00424.html That's weird. Ian's approach involves removing the "if-always-true" test completely leaving just an asm. Can you send me the patch of Ian's that you tried? > =A0I propose here another small patch that fixes the linking failure. > Using a volatile variable, it explicitly forbids the compiler > to optimize out code by forbidding the assumption that this value will > never change. > > =A0This works on gcc16, an the approach seems reasonable. That's my patch. :-) http://sourceware.org/ml/gdb-patches/2010-06/msg00374.html