From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16741 invoked by alias); 18 Dec 2007 02:02:55 -0000 Received: (qmail 16733 invoked by uid 22791); 18 Dec 2007 02:02:54 -0000 X-Spam-Check-By: sourceware.org Received: from ipmail04.adl2.internode.on.net (HELO ipmail04.adl2.internode.on.net) (203.16.214.57) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 18 Dec 2007 02:02:50 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAACO5Zkd5LNNT/2dsb2JhbAAIqlc X-IronPort-AV: E=Sophos;i="4.24,178,1196602200"; d="scan'208";a="19549688" Received: from ppp121-44-211-83.lns1.hba1.internode.on.net (HELO [192.168.1.1]) ([121.44.211.83]) by ipmail04.adl2.internode.on.net with ESMTP; 18 Dec 2007 12:32:46 +1030 Message-ID: <47672A45.3090006@utas.edu.au> Date: Tue, 18 Dec 2007 02:27:00 -0000 From: Jonathan Adamczewski Reply-To: jadamcze@utas.edu.au User-Agent: Thunderbird 2.0.0.9 (X11/20071118) MIME-Version: 1.0 To: trevor_smigiel@playstation.sony.com CC: gcc , Ulrich Weigand , Russell_Olsen@playstation.sony.com Subject: Re: __builtin_expect for indirect function calls References: <20071218000552.GV3656@playstation.sony.com> In-Reply-To: <20071218000552.GV3656@playstation.sony.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2007-12/txt/msg00503.txt.bz2 trevor_smigiel@playstation.sony.com wrote: > Are there any comments about the name, semantics, or usefulness of this > extension? > Sounds very useful for SPU code. I look forward to trying it out. Toying with the idea, the following seems like a potentially useful C++ form of the proposed extension : struct A { virtual void foo(); }; struct B : public A { virtual void foo(); }; A* a; ... __builtin_expect_call (a->foo, B::foo)(); jonathan.