Return-Path: Delivered-To: apmail-stdcxx-issues-archive@locus.apache.org Received: (qmail 46714 invoked from network); 17 Apr 2008 09:48:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Apr 2008 09:48:40 -0000 Received: (qmail 8104 invoked by uid 500); 17 Apr 2008 09:48:41 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 8092 invoked by uid 500); 17 Apr 2008 09:48:41 -0000 Mailing-List: contact issues-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list issues@stdcxx.apache.org Received: (qmail 8083 invoked by uid 99); 17 Apr 2008 09:48:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Apr 2008 02:48:41 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Apr 2008 09:47:55 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BDB04234C0DA for ; Thu, 17 Apr 2008 02:45:21 -0700 (PDT) Message-ID: <209559713.1208425521775.JavaMail.jira@brutus> Date: Thu, 17 Apr 2008 02:45:21 -0700 (PDT) From: "Farid Zaripov (JIRA)" To: issues@stdcxx.apache.org Subject: [jira] Commented: (STDCXX-687) [gcc] use string __builtins 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-687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589909#action_12589909 ] Farid Zaripov commented on STDCXX-687: -------------------------------------- Merged in 4.2.x branch thus: http://svn.apache.org/viewvc?view=rev&revision=648752 > [gcc] use string __builtins > --------------------------- > > Key: STDCXX-687 > URL: https://issues.apache.org/jira/browse/STDCXX-687 > Project: C++ Standard Library > Issue Type: Sub-task > Components: 21. Strings > Affects Versions: 4.1.2, 4.1.3, 4.1.4, 4.2.0 > Reporter: Martin Sebor > Assignee: Martin Sebor > Fix For: 4.2.1 > > Original Estimate: 2h > Time Spent: 2h > Remaining Estimate: 0h > > The following gcc builtin equivalents of the C string functions would be useful in the implementation of std::char_traits: > __builtin_memcpy: char_traits::copy() > __builtin_memcmp: char_traits::compare() > __builtin_memmove: char_traits::move() > __builtin_memset: char_traits::assign() > __builtin_strlen: char_traits::length() > Unfortunately, as of gcc 4.2.2, there is no builtin equivalent of memchr() which is used in char_traits::find(), so using the builtins won't let us get away from #including the header to bring in the declaration of the function (thus reducing namespace pollution caused by all the other symbols declared in the header). > There also are no builtins for the wide character counterparts of any of these functions (such as wmemcmp or wcslen). > See the following page for more details: > http://gcc.gnu.org/onlinedocs/gcc-4.2.2/gcc/Other-Builtins.html#Other-Builtins -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.