Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 95306 invoked from network); 17 Aug 2007 21:00:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Aug 2007 21:00:26 -0000 Received: (qmail 57498 invoked by uid 500); 17 Aug 2007 21:00:24 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 57482 invoked by uid 500); 17 Aug 2007 21:00:24 -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 57471 invoked by uid 99); 17 Aug 2007 21:00:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Aug 2007 14:00:23 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.30.140.160] (HELO moroha.quovadx.com) (208.30.140.160) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Aug 2007 21:00:22 +0000 Received: from qxvcexch01.ad.quovadx.com ([192.168.170.59]) by moroha.quovadx.com (8.13.6/8.13.6) with ESMTP id l7HL003h008464 for ; Fri, 17 Aug 2007 21:00:00 GMT Received: from [10.70.3.113] ([10.70.3.113]) by qxvcexch01.ad.quovadx.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 17 Aug 2007 14:59:09 -0600 Message-ID: <46C60C50.2080301@roguewave.com> Date: Fri, 17 Aug 2007 15:00:00 -0600 From: Martin Sebor Organization: Rogue Wave Software, Inc. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070802 SeaMonkey/1.1.4 MIME-Version: 1.0 To: stdcxx-dev@incubator.apache.org Subject: Re: svn commit: r565959 - /incubator/stdcxx/trunk/etc/config/src/EXTERN_C_EXCEPTIONS.cpp References: <20070814224803.62DC81A981D@eris.apache.org> <46C25484.3040604@roguewave.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 17 Aug 2007 20:59:10.0018 (UTC) FILETIME=[7530E220:01C7E111] X-Virus-Checked: Checked by ClamAV on apache.org Travis Vitek wrote: > > >> Martin Sebor wrote: >> >> Travis Vitek wrote: >>> Martin, >>> >>> I'm not sure if you're aware, but I don't believe that the >>> destructors for stack objects inside the C functions will >>> be called. I know that this is the case for MSVC7/8. This >>> isn't an issue for your testcase, but it may be an issue >>> for the functions invoked by __rw_once. >> Interesting! I didn't know about this limitation. It's something >> we need to keep in mind when writing the initialization functions. >> Perhaps the solution will be to require the initialization function >> to have the empty exception specification. That way we could rely >> on the compiler to detect initialization functions that can throw. >> > > I just found out that the /Ehc flag enables the nothrow default > for C linkage functions. So changing the /EHsc flag to /EHs will > fix this for both VC7 and 8. Do you happen to know if there's a #pragma that will let us select the mode we need for just the one function? Martin