From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29118 invoked by alias); 28 Nov 2007 01:56:17 -0000 Received: (qmail 28640 invoked by uid 48); 28 Nov 2007 01:56:02 -0000 Date: Wed, 28 Nov 2007 01:56:00 -0000 Message-ID: <20071128015602.28639.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/34115] atomic builtins not supported on i686? In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "scovich at gmail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-11/txt/msg02738.txt.bz2 ------- Comment #7 from scovich at gmail dot com 2007-11-28 01:56 ------- (In reply to comment #2) > I think this is essentially invalid. Note that now we also have the various > __GCC_HAVE_SYNC_COMPARE_AND_SWAP_* macros: > > http://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html > Too bad they aren't defined for any machine I've tried so far... ia64-linux-gnu (4.1.2 Debian) x86_64-unknown-linux-gnu (4.2.0) sparc-sun-solaris2.10 (4.1.1) powerpc64-unknown-linux-gnu (4.1.2 Gentoo) i686-pc-cygwin (4.2.2) All these actually *do* support CAS, and emit perfectly respectable .asm... as long as you don't wrap them in any #ifdef's. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34115