Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 47223 invoked from network); 18 Oct 2007 15:22:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Oct 2007 15:22:49 -0000 Received: (qmail 82327 invoked by uid 500); 18 Oct 2007 15:22:37 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 82316 invoked by uid 500); 18 Oct 2007 15:22:37 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 82305 invoked by uid 99); 18 Oct 2007 15:22:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Oct 2007 08:22:37 -0700 X-ASF-Spam-Status: No, hits=-99.8 required=10.0 tests=ALL_TRUSTED,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Oct 2007 15:22:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DA53371422B for ; Thu, 18 Oct 2007 08:21:50 -0700 (PDT) Message-ID: <15704944.1192720910891.JavaMail.jira@brutus> Date: Thu, 18 Oct 2007 08:21:50 -0700 (PDT) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Commented: (STDCXX-162) [x86_64] atomic operations disabled In-Reply-To: <804168073.1141676067464.JavaMail.jira@ajax> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STDCXX-162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12535937 ] Martin Sebor commented on STDCXX-162: ------------------------------------- As noted in the following thread: http://www.nabble.com/stdcxx-4.2.0-4.1.3-binary-incompatibility-on-Linux-tf4642037.html the fix for this issue (http://svn.apache.org/viewcvs?view=rev&rev=383659) introduces a binary incompatibility on Linux/x86_64. > [x86_64] atomic operations disabled > ----------------------------------- > > Key: STDCXX-162 > URL: https://issues.apache.org/jira/browse/STDCXX-162 > Project: C++ Standard Library > Issue Type: Improvement > Components: Configuration > Affects Versions: 4.1.3 > Environment: x86_64 > Reporter: Martin Sebor > Priority: Critical > Fix For: 4.2 > > > Atomic operations are disabled on AMD64 and EM64T. > $ uname -srp && cat t.cpp && make t && LD_LIBRARY_PATH=../lib:$LD_LIBRARY_PATH ./t > Linux 2.6.9-22.ELsmp x86_64 > #include > #include > #include > int main () > { > typedef std::char_traits Traits; > typedef std::allocator Allocator; > typedef __rw::__string_ref strref; > struct SmallRef { > int ref_count; > std::string::size_type capacity; > std::string::size_type size; > }; > struct LargeRef { > pthread_mutex_t mutex; > int ref_count; > std::string::size_type capacity; > std::string::size_type size; > }; > assert (sizeof (strref) <= sizeof (SmallRef)); > assert (sizeof (strref) < sizeof (LargeRef)); > } > gcc -c -I/build/sebor/dev/stdlib/include/ansi -D_RWSTDDEBUG -pthread -D_RWSTD_USE_CONFIG -I/build/sebor/gcc-3.4.4-15D/include -I/build/sebor/dev/stdlib/include -I/build/sebor/dev/stdlib/../rwtest -I/build/sebor/dev/stdlib/../rwtest/include -I/build/sebor/dev/stdlib/tests/include -pedantic -nostdinc++ -g -Wall -W -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align t.cpp > gcc t.o -o t -L/build/sebor/gcc-3.4.4-15D/rwtest -lrwtest15d -pthread -L/build/sebor/gcc-3.4.4-15D/lib -lstd15d -lsupc++ -lm > t: t.cpp:24: int main(): Assertion `sizeof (strref) <= sizeof (SmallRef)' failed. > Aborted -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.