From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25768 invoked by alias); 15 May 2008 16:18:25 -0000 Received: (qmail 25650 invoked by uid 22791); 15 May 2008 16:18:21 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 15 May 2008 16:17:52 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m4FGHoev020654; Thu, 15 May 2008 12:17:50 -0400 Received: from zebedee.pink (vpn-14-4.rdu.redhat.com [10.11.14.4]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m4FGHk1l030746; Thu, 15 May 2008 12:17:50 -0400 Message-ID: <482C622A.6020205@redhat.com> Date: Fri, 16 May 2008 03:41:00 -0000 From: Andrew Haley User-Agent: Thunderbird 2.0.0.14 (X11/20080421) MIME-Version: 1.0 To: "Vardhan, Sundara (GE Infra, Energy)" CC: gcc-help@gcc.gnu.org Subject: Re: atomic builtin routines References: <8E460D1B58F94945A20AA70D4D41430D052DE90A@ALPMLVEM08.e2k.ad.ge.com> In-Reply-To: <8E460D1B58F94945A20AA70D4D41430D052DE90A@ALPMLVEM08.e2k.ad.ge.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-05/txt/msg00166.txt.bz2 Vardhan, Sundara (GE Infra, Energy) wrote: > Hi All > > I have used __sync_lock_test_and_set() routines in gcc 4.1.1 with -march=pentiumpro successfully. > Are there equivalent set of routines or any other functions that I can use for spin locks in gcc 3.4.6? We didn't rename them, if that's what you are asking. Sorry. This is when they were added. Any gcc before that doesn't have them. http://gcc.gnu.org/ml/gcc-patches/2005-04/msg00915.html Andrew.