2.90.8, ifstream, results of purify.

Nathan Myers ncm@nospam.cantrip.org
Sat Apr 1 00:00:00 GMT 2000


On Wed, Mar 29, 2000 at 10:37:07AM -0800, Jason Merrill wrote:
> One possibility would be to statically allocate __classic:
> 
> static unsigned char _S_classic[sizeof (_Impl)] 
>   __attribute__ ((aligned (__alignof (_Impl))));
> 
> ...
> 
> new (_S_classic) _Impl (26u, 2u);

What about things new'd by the constructor?  I think we need 
something more general.  It's entirely permissible for the 
library to create logically-static structures on demand, and 
we can't be trying to hack around Purify every time.

I do like the __attribute__ above, though... We should do that
for the empty-string implementation.

Nathan Myers
ncm@nospam.cantrip.org



More information about the Libstdc++ mailing list