Return-Path: Delivered-To: apmail-stdcxx-dev-archive@www.apache.org Received: (qmail 45126 invoked from network); 10 Jun 2008 07:50:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jun 2008 07:50:49 -0000 Received: (qmail 76461 invoked by uid 500); 10 Jun 2008 07:50:52 -0000 Delivered-To: apmail-stdcxx-dev-archive@stdcxx.apache.org Received: (qmail 76447 invoked by uid 500); 10 Jun 2008 07:50:52 -0000 Mailing-List: contact dev-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 dev@stdcxx.apache.org Received: (qmail 76436 invoked by uid 99); 10 Jun 2008 07:50:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jun 2008 00:50:52 -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: domain of msebor@gmail.com designates 209.85.134.188 as permitted sender) Received: from [209.85.134.188] (HELO mu-out-0910.google.com) (209.85.134.188) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jun 2008 07:50:02 +0000 Received: by mu-out-0910.google.com with SMTP id i2so1661775mue.3 for ; Tue, 10 Jun 2008 00:50:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding:sender; bh=asgIzz+QXXxMk+lMvP5iSJGmPRhLjWdhAn22S00Fl+M=; b=SDwzjq6y2WTskeu5Rc2NOYdEo/UIEQc1Nn43bgGb75BALWXjOjsHL3IhnIxxF/7Vxw uwlYkerQdi4G32PnmS9dpQ/khkMCyW33IPfxU4IuRmZ7PyorUueeqJsngb5kDrJRavPV tInvlaUX583OIdzX4Ur9R3gjZaeJKvMfN3d/c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding:sender; b=CpYd6gUq1cUbgoLRbetZiKMnLHJpPw/LKowWHyrc25t3g+EfPxjWGk0X6I+7t0gQok jQh3Uu7Tptux7pL2dV4pYvq2mgtV3HKYl9RXMLiHftDm3kQOtK8KUJRsPFRkr5oyH+OC 4o3sZNoL7UvY8pXaq7vXZFItMxQvMezWbDjV0= Received: by 10.103.17.10 with SMTP id u10mr3025192mui.97.1213084218233; Tue, 10 Jun 2008 00:50:18 -0700 (PDT) Received: from ?194.254.174.55? ( [194.254.174.55]) by mx.google.com with ESMTPS id e8sm29483879muf.0.2008.06.10.00.50.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 10 Jun 2008 00:50:17 -0700 (PDT) Message-ID: <484E3235.2070606@roguewave.com> Date: Tue, 10 Jun 2008 00:50:13 -0700 From: Martin Sebor User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: dev@stdcxx.apache.org Subject: Re: svn commit: r665796 - in /stdcxx/branches/4.2.x/src: num_put.cpp once.cpp once.h References: <20080609174136.0B4652388A03@eris.apache.org> In-Reply-To: <20080609174136.0B4652388A03@eris.apache.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: Martin Sebor X-Virus-Checked: Checked by ClamAV on apache.org faridz@apache.org wrote: > Author: faridz > Date: Mon Jun 9 10:41:35 2008 > New Revision: 665796 > > URL: http://svn.apache.org/viewvc?rev=665796&view=rev > Log: > 2008-06-09 Farid Zaripov > > * src/num_put.cpp [__INTEL_COMPILER && _WIN64] (__rw_put_num): Disable icc warning > "conversion may lose significant bits". > * src/once.h [_RWSTD_MSVC] (__rw_once): Add exception specification to avoid MSVC > warning "function assumed not to throw an exception but does". > * src/once.cpp [_RWSTD_MSVC] (__rw_once): Ditto. > > Modified: > stdcxx/branches/4.2.x/src/num_put.cpp > stdcxx/branches/4.2.x/src/once.cpp > stdcxx/branches/4.2.x/src/once.h > > Modified: stdcxx/branches/4.2.x/src/num_put.cpp > URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/src/num_put.cpp?rev=665796&r1=665795&r2=665796&view=diff > ============================================================================== > --- stdcxx/branches/4.2.x/src/num_put.cpp (original) > +++ stdcxx/branches/4.2.x/src/num_put.cpp Mon Jun 9 10:41:35 2008 > @@ -802,7 +802,13 @@ > case __rw_facet::_C_short: > case __rw_facet::_C_int: > case __rw_facet::_C_long: > +#if defined (__INTEL_COMPILER) && defined (_WIN64) I'd like to see a comment here explaining what's being silenced and why, as was done for example, in this change (ditto for all other occurrences of the #pragma): http://svn.apache.org/viewvc?view=rev&revision=658425 > +# pragma warning (disable: 810) > +#endif > len = __rw_itoa (buf, _RWSTD_REINTERPRET_CAST (long, pval), flags); > +#if defined (__INTEL_COMPILER) && defined (_WIN64) > +# pragma warning (default: 810) > +#endif > break; > > case __rw_facet::_C_ushort: > @@ -813,8 +819,14 @@ > // sign is only used in signed conversions; 7.19 6.1, p6 > // of C99: The result of a signed conversion always begins > // with a plus or minus sign.) > +#if defined (__INTEL_COMPILER) && defined (_WIN64) > +# pragma warning (disable: 810) > +#endif > len = __rw_itoa (buf, _RWSTD_REINTERPRET_CAST (unsigned long, pval), > flags & ~_RWSTD_IOS_SHOWPOS); > +#if defined (__INTEL_COMPILER) && defined (_WIN64) > +# pragma warning (default: 810) > +#endif > break; > > #ifdef _RWSTD_LONG_LONG > > Modified: stdcxx/branches/4.2.x/src/once.cpp > URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/src/once.cpp?rev=665796&r1=665795&r2=665796&view=diff > ============================================================================== > --- stdcxx/branches/4.2.x/src/once.cpp (original) > +++ stdcxx/branches/4.2.x/src/once.cpp Mon Jun 9 10:41:35 2008 > @@ -111,8 +111,13 @@ > > > // implementation that uses atomic operations > +#ifndef _RWSTD_MSVC > _RWSTD_EXPORT int > __rw_once (__rw_once_t *once, void (*func)()) > +#else > +_RWSTD_EXPORT int > +__rw_once (__rw_once_t *once, void (*func)() throw (...)) throw (...) > +#endif > { > _RWSTD_ASSERT (0 != once && 0 != func); > > > Modified: stdcxx/branches/4.2.x/src/once.h > URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/src/once.h?rev=665796&r1=665795&r2=665796&view=diff > ============================================================================== > --- stdcxx/branches/4.2.x/src/once.h (original) > +++ stdcxx/branches/4.2.x/src/once.h Mon Jun 9 10:41:35 2008 > @@ -133,9 +133,18 @@ > > extern "C" { > > +#ifndef _RWSTD_MSVC > + > _RWSTD_EXPORT int > __rw_once (__rw_once_t*, void (*)()); > > +#else I'd also like to see a comment explaining the declaration below so that readers don't need to look it up. Thanks Martin > + > +_RWSTD_EXPORT int > +__rw_once (__rw_once_t*, void (*)() throw (...)) throw (...); > + > +#endif > + > } // extern "C" > > > >