Re: [jira] Commented: (STDCXX-761) [HP aCC 6.16] Out of bound access in new.cpp

2008-04-03 Thread Martin Sebor
Martin Sebor wrote: Travis Vitek wrote: Martin Sebor wrote: Eric Lemings wrote: Travis, If you could, give the following patch a whirl (or quick review at least). Is there an easier way to silence the warning than by adding all these loops? E.g., by assigning the address of the first me

Re: [jira] Commented: (STDCXX-761) [HP aCC 6.16] Out of bound access in new.cpp

2008-04-03 Thread Martin Sebor
Travis Vitek wrote: Martin Sebor wrote: Eric Lemings wrote: Travis, If you could, give the following patch a whirl (or quick review at least). Is there an easier way to silence the warning than by adding all these loops? E.g., by assigning the address of the first member to a local point

RE: [jira] Commented: (STDCXX-761) [HP aCC 6.16] Out of bound access in new.cpp

2008-04-03 Thread Travis Vitek
>Martin Sebor wrote: > >Eric Lemings wrote: >> >> Travis, >> >> If you could, give the following patch a whirl (or quick review >> at least). > >Is there an easier way to silence the warning than by adding >all these loops? E.g., by assigning the address of the first >member to a local pointe

Re: spaces in rw_xxx_expand()

2008-04-03 Thread Martin Sebor
Travis Vitek wrote: Martin Sebor wrote: PING? Should I open an issue for this or is it something you're already working on or planning to? Well if we want 100% compatibility with the shell, then it should be implemented. I don't expect rw_shell_expand() to necessarily behave exactly the

Re: [jira] Commented: (STDCXX-761) [HP aCC 6.16] Out of bound access in new.cpp

2008-04-03 Thread Martin Sebor
Eric Lemings wrote: Travis, If you could, give the following patch a whirl (or quick review at least). Is there an easier way to silence the warning than by adding all these loops? E.g., by assigning the address of the first member to a local pointer? (Or is the compiler too smart for that?)

Re: svn commit: r644364 - in /stdcxx/trunk: src/locale_global.cpp tests/localization/22.locale.statics.mt.cpp

2008-04-03 Thread Martin Sebor
Eric Lemings wrote: -Original Message- From: Martin Sebor [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2008 1:02 PM To: dev@stdcxx.apache.org Subject: Re: svn commit: r644364 - in /stdcxx/trunk: src/locale_global.cpp tests/localization/22.locale.statics.mt.cpp ... __rw_se

RE: [jira] Commented: (STDCXX-761) [HP aCC 6.16] Out of bound access in new.cpp

2008-04-03 Thread Eric Lemings
Travis, If you could, give the following patch a whirl (or quick review at least). - $ svn diff Index: tests/src/new.cpp === --- tests/src/new.cpp (revision 64) +++ tests/src/new.cpp (working copy) @@ -604,6 +604,17 @@

[PATCH] STDCXX-423 LIMITS.cpp assumes integers with no padding bits

2008-04-03 Thread Scott Zhong
Changes made: * fix a bug (not filed) that would potentially access an array using negative index * add function compute_type_bits to calculate the number of bits in the value representation of type T. * add a check that would only define exact width integer type if the system supports two's compl

RE: svn commit: r644364 - in /stdcxx/trunk: src/locale_global.cpp tests/localization/22.locale.statics.mt.cpp

2008-04-03 Thread Eric Lemings
> -Original Message- > From: Martin Sebor [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 03, 2008 1:02 PM > To: dev@stdcxx.apache.org > Subject: Re: svn commit: r644364 - in /stdcxx/trunk: > src/locale_global.cpp tests/localization/22.locale.statics.mt.cpp > ... > __rw_setlocale co

RE: svn commit: r644364 - in /stdcxx/trunk: src/locale_global.cpp tests/localization/22.locale.statics.mt.cpp

2008-04-03 Thread Eric Lemings
> -Original Message- > From: Travis Vitek [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 03, 2008 1:05 PM > To: dev@stdcxx.apache.org > Subject: RE: svn commit: r644364 - in /stdcxx/trunk: > src/locale_global.cpp tests/localization/22.locale.statics.mt.cpp > > > > >Eric Lemings

RE: svn commit: r644364 - in /stdcxx/trunk: src/locale_global.cpp tests/localization/22.locale.statics.mt.cpp

2008-04-03 Thread Travis Vitek
>Eric Lemings wrote: > >Please peer review the following patch at your earliest convenience. > Brad, I don't think that this patch is going to work. The unnecessary changes to the __rw_setlocale ctor and dtor will cause new failures. The __rw_setlocale type is supposed to hold the lock for it

Re: svn commit: r644364 - in /stdcxx/trunk: src/locale_global.cpp tests/localization/22.locale.statics.mt.cpp

2008-04-03 Thread Martin Sebor
Eric Lemings wrote: [...] Please peer review the following patch at your earliest convenience. - $ svn diff Index: src/setlocale.h === --- src/setlocale.h (revision 644426) +++ src/setlocale.h (working copy) @@ -58,6 +58

RE: svn commit: r644364 - in /stdcxx/trunk: src/locale_global.cpp tests/localization/22.locale.statics.mt.cpp

2008-04-03 Thread Eric Lemings
> -Original Message- > From: Eric Lemings > Sent: Thursday, April 03, 2008 11:12 AM > To: 'dev@stdcxx.apache.org' > Subject: RE: svn commit: r644364 - in /stdcxx/trunk: > src/locale_global.cpp tests/localization/22.locale.statics.mt.cpp > > > > > -Original Message- > > From

Re: svn commit: r644364 - in /stdcxx/trunk: src/locale_global.cpp tests/localization/22.locale.statics.mt.cpp

2008-04-03 Thread Martin Sebor
Travis Vitek wrote: Martin Sebor wrote: Travis Vitek wrote: Right. It seems that for this to be mt-safe with respect to other library code that calls setlocale(), we would need to lock the same lock that is used by _RW::__rw_setlocale. If don't use the same lock it would be possible for t

RE: svn commit: r644364 - in /stdcxx/trunk: src/locale_global.cpp tests/localization/22.locale.statics.mt.cpp

2008-04-03 Thread Travis Vitek
Martin Sebor wrote: > >Travis Vitek wrote: >> >> >> Right. It seems that for this to be mt-safe with respect to other >> library code that calls setlocale(), we would need to lock the >> same lock that is used by _RW::__rw_setlocale. If don't use the >> same lock it would be possible for the

RE: svn commit: r644364 - in /stdcxx/trunk: src/locale_global.cpp tests/localization/22.locale.statics.mt.cpp

2008-04-03 Thread Travis Vitek
Eric Lemings wrote: > > >file src/setlocale.cpp: > 83 // acquire global per-process lock > 84 __rw_setlocale_mutex._C_acquire (); > 85 > 86 // retrieve previous locale name and check if it is already set > 87 const char* const curname = ::setlocale (cat, 0); > >The mutex doesn't

RE: svn commit: r644364 - in /stdcxx/trunk: src/locale_global.cpp tests/localization/22.locale.statics.mt.cpp

2008-04-03 Thread Eric Lemings
file src/setlocale.cpp: 83 // acquire global per-process lock 84 __rw_setlocale_mutex._C_acquire (); 85 86 // retrieve previous locale name and check if it is already set 87 const char* const curname = ::setlocale (cat, 0); The mutex doesn't need to be locked just to read the

RE: svn commit: r644364 - in /stdcxx/trunk: src/locale_global.cpp tests/localization/22.locale.statics.mt.cpp

2008-04-03 Thread Eric Lemings
> -Original Message- > From: Martin Sebor [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 03, 2008 11:06 AM > To: dev@stdcxx.apache.org > Subject: Re: svn commit: r644364 - in /stdcxx/trunk: > src/locale_global.cpp tests/localization/22.locale.statics.mt.cpp > > Travis Vitek wrote:

Re: svn commit: r644364 - in /stdcxx/trunk: src/locale_global.cpp tests/localization/22.locale.statics.mt.cpp

2008-04-03 Thread Martin Sebor
Travis Vitek wrote: -Original Message- From: Martin Sebor [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2008 8:55 AM To: dev@stdcxx.apache.org Subject: Re: svn commit: r644364 - in /stdcxx/trunk: src/locale_global.cpp tests/localization/22.locale.statics.mt.cpp [EMAIL PROTEC

RE: svn commit: r644364 - in /stdcxx/trunk: src/locale_global.cpp tests/localization/22.locale.statics.mt.cpp

2008-04-03 Thread Travis Vitek
>-Original Message- >From: Martin Sebor [mailto:[EMAIL PROTECTED] >Sent: Thursday, April 03, 2008 8:55 AM >To: dev@stdcxx.apache.org >Subject: Re: svn commit: r644364 - in /stdcxx/trunk: >src/locale_global.cpp tests/localization/22.locale.statics.mt.cpp > >[EMAIL PROTECTED] wrote: >> A

Re: svn commit: r644364 - in /stdcxx/trunk: src/locale_global.cpp tests/localization/22.locale.statics.mt.cpp

2008-04-03 Thread Martin Sebor
[EMAIL PROTECTED] wrote: Author: elemings Date: Thu Apr 3 08:32:56 2008 New Revision: 644364 URL: http://svn.apache.org/viewvc?rev=644364&view=rev Log: 2008-04-03 Eric Lemings <[EMAIL PROTECTED]> STDCXX-811 * src/locale_global.cpp (std::locale::global): Replace call to