From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22515 invoked by alias); 10 Jun 2008 03:22:17 -0000 Received: (qmail 22507 invoked by uid 22791); 10 Jun 2008 03:22:16 -0000 X-Spam-Check-By: sourceware.org Received: from slate.cs.rochester.edu (HELO slate.cs.rochester.edu) (192.5.53.101) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 10 Jun 2008 03:21:51 +0000 Received: from core2.local (cycle1.cs.rochester.edu [128.151.67.99]) by slate.cs.rochester.edu (8.13.8/8.13.8) with ESMTP id m5A3LmLh025002 for ; Mon, 9 Jun 2008 23:21:49 -0400 Message-ID: <484DF34C.5040005@cs.rochester.edu> Date: Tue, 10 Jun 2008 03:22:00 -0000 From: Luke Dalessandro User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 To: gcc@gcc.gnu.org Subject: Using __sync_* builtins within libgcc code Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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: 2008-06/txt/msg00210.txt.bz2 I'm making some modifications to exception handling inside of unwind-dw2-fde.c that I'd like to use __sync_bool_compare_and_swap for, unfortunately I can't seem to figure out how to correctly use builtins in the context of libgcc. I've tried a bunch of different things, but I consistently get the error bin/../lib/gcc/i686-pc-linux-gnu/4.3.1/../../../libgcc_s.so: undefined reference to `__sync_bool_compare_and_swap_4' so clearly I'm not getting this symbol included correctly when I build. Any advice would be appreciated. Luke