Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 31839 invoked from network); 25 Sep 2006 14:50:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Sep 2006 14:50:28 -0000 Received: (qmail 65512 invoked by uid 500); 25 Sep 2006 14:50:21 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 65459 invoked by uid 500); 25 Sep 2006 14:50:20 -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 65417 invoked by uid 99); 25 Sep 2006 14:50:20 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Sep 2006 07:50:20 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=sebor@roguewave.com; spf=permerror X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=UPPERCASE_25_50 Received-SPF: error (idunn.apache.osuosl.org: domain roguewave.com from 208.30.140.160 cause and error) Received: from [208.30.140.160] ([208.30.140.160:12605] helo=moroha.quovadx.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id FA/B9-13750-C9CE7154 for ; Mon, 25 Sep 2006 07:50:07 -0700 Received: from qxvcexch01.ad.quovadx.com (qxvcexch01.ad.quovadx.com [192.168.170.59]) by moroha.quovadx.com (8.13.6/8.13.6) with ESMTP id k8PEmdUJ013247 for ; Mon, 25 Sep 2006 14:48:39 GMT Received: from [10.70.3.113] ([10.70.3.113]) by qxvcexch01.ad.quovadx.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 25 Sep 2006 08:49:31 -0600 Message-ID: <4517EC7E.6030203@roguewave.com> Date: Mon, 25 Sep 2006 08:49:34 -0600 From: Martin Sebor Organization: Rogue Wave Software User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060417 X-Accept-Language: en-us, en MIME-Version: 1.0 To: stdcxx-dev@incubator.apache.org Subject: Re: [PATCH] etc/config/src References: <4517DF2B.5090708@kyiv.vdiweb.com> In-Reply-To: <4517DF2B.5090708@kyiv.vdiweb.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 25 Sep 2006 14:49:31.0092 (UTC) FILETIME=[CEDAD940:01C6E0B1] X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Farid Zaripov wrote: > 1. The files in etc/config/src which are includes the > file BAD_ALLOC_ASSIGNMENT.cpp should be compiled after the > RUNTIME_IN_STD.cpp. The BAD_ALLOC_ASSIGNMENT.cpp itself > compiled after RUNTIME_IN_STD.cpp due to > "#ifndef _RWSTD_NO_RUNTIME_IN_STD" line. Good catch! Should we do the same for _RWSTD_NO_HONOR_STD since it's being used in the same config tests as well? (You can commit your change separately if you want.) > > 2. The file TLS.cpp uses __thread modifier, but with MSVC (and > ICC/Windows as well) should used __declspec (thread) modifier. > > I have been fixed it (the diff file is attached). Great! We will also need to make a corresponding change to rw/_defs.h or change the test to print out the #definition of the macro. These two should be committed simultaneously otherwise just fixing the TLS test might break the library. > > ChangeLog: > * BAD_ALLOC_COPY_CTOR.cpp: Added dependency on RUNTIME_IN_STD.cpp > * BAD_ALLOC_DEFAULT_CTOR.cpp: Ditto > * BAD_ALLOC_DTOR.cpp: Ditto > * BAD_ALLOC_WHAT.cpp: Ditto > * BAD_CAST_ASSIGNMENT.cpp: Ditto > * BAD_CAST_COPY_CTOR.cpp: Ditto > * BAD_CAST_DEFAULT_CTOR.cpp: Ditto > * BAD_CAST_DTOR.cpp: Ditto > * BAD_CAST_WHAT.cpp: Ditto > * BAD_EXCEPTION_ASSIGNMENT.cpp: Ditto > * BAD_EXCEPTION_COPY_CTOR.cpp: Ditto > * BAD_EXCEPTION_DEFAULT_CTOR.cpp: Ditto > * BAD_EXCEPTION_DTOR.cpp: Ditto > * BAD_EXCEPTION_WHAT.cpp: Ditto > * BAD_TYPEID_ASSIGNMENT.cpp: Ditto > * BAD_TYPEID_COPY_CTOR.cpp: Ditto > * BAD_TYPEID_DEFAULT_CTOR.cpp: Ditto > * BAD_TYPEID_DTOR.cpp: Ditto > * BAD_TYPEID_WHAT.cpp: Ditto > * EXCEPTION_ASSIGNMENT.cpp: Ditto > * EXCEPTION_COPY_CTOR.cpp: Ditto > * EXCEPTION_DEFAULT_CTOR.cpp: Ditto > * EXCEPTION_DTOR.cpp: Ditto > * EXCEPTION_WHAT.cpp: Ditto > * TLS.cpp [_MSC_VER]: Used modifier __declspec (thread) instead of > __thread > > > Also I see that THREAD_SAFE_ERRNO.cpp and THREAD_SAFE_EXCEPTIONS.cpp > are platform dependent and cannot be used on Windows. You mean because the tests use pthreads? Yes, but we should port them to Windows. If you don't, could you please open an issue in Jira as a reminder? > I not ported it > because I not found using of the _RWSTD_NO_THREAD_SAFE_ERRNO nor > _RWSTD_NO_THREAD_SAFE_EXCEPTIONS macros in the source files. They're not being used yet but they should be. The only place where we look at errno right now that I know of is the num_get facet. Thanks! Martin