delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2008/07/13/02:46:26

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: CBFalconer <cbfalconer AT yahoo DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: libstdc++ writev/2.04/patches upstream?
Date: Sun, 13 Jul 2008 02:40:05 -0400
Organization: Ched Research http://cbfalconer.home.att.net
Lines: 53
Message-ID: <4879A345.9B80CDC4@yahoo.com>
References: <200807070405 DOT m67451dZ010910 AT delorie DOT com> <BAY139-W19808358F507B7930E7F6EE6940 AT phx DOT gbl> <200807071920 DOT m67JKA4v032518 AT envy DOT delorie DOT com> <487290E2 DOT 86197C00 AT yahoo DOT com> <200807072300 DOT m67N0t0Y005696 AT envy DOT delorie DOT com> <4872DFDB DOT 3E4BE7C1 AT yahoo DOT com> <200807080501 DOT m6851VZ8015818 AT envy DOT delorie DOT com> <4873E90E DOT B2B957F9 AT yahoo DOT com> <48742FD3 DOT 4080701 AT iki DOT fi>
Mime-Version: 1.0
X-Trace: feeder.motzarella.org U2FsdGVkX1+bUiCXdTeGIfgR6G2D/yaijtMZIs71nUxsk4y6th90JSt7XbzJ+zXH0OOd3t+LZQ7KTtU0tQXhlGv5IcuoQ7WFOIqdLbOdANIXTPWIR1seFrqI4MAMFep51x5QxwBshOnri4ediZXezg==
X-Complaints-To: Please send complaints to abuse AT motzarella DOT org with full headers
NNTP-Posting-Date: Sun, 13 Jul 2008 06:42:09 +0000 (UTC)
X-Mailer: Mozilla 4.75 [en] (Win98; U)
X-Accept-Language: en
X-Auth-Sender: U2FsdGVkX18/e/lpZdWkQl8QQEpXPJtY1N3PqolXqkpRM9O2Rx3P3Q==
Cancel-Lock: sha1:B/wVEUPClxPQEgpNjzh9zMCdTHM=
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Andris Pavenis wrote:
> 
... snip ...
> 
> The first message of the thread is
> http://www.delorie.com/djgpp/mail-archives/browse.cgi?p=djgpp-workers/2007/12/05/17:54:46
> 
> I included there the source of my initial test program used for
> profiling. Remove shuffling addresses and freeing memory, link it
> with nmalloc and You will get what I use for testing when large
> enough number of allocations were specified (like more that
> 1000000, You should have plenty of memory for that). This test
> program randomly crashed when linked with nmalloc and never for
> me if with DJGPP v2.04 own malloc (for this test slowness of
> free() does not matter of course).
> 
> I do not know whether it is possible to reproduce the problem on
> system different from WinXP.

I attempted to compile that test, and got:

[1] c:\c\malloc>cc malltst.cpp
In file included from malltst.cpp:1644:
c:/djgpp/lang/cxx/3.21/bits/stl_algo.h: In function `_Distance
   std::__random_number(_Distance) [with _Distance = int]':
c:/djgpp/lang/cxx/3.21/bits/stlalgobase.h:94:   instantiated from
`void std::ite
r_swap(_ForwardIter1, _ForwardIter2) [with _ForwardIter1 = unsigned
char**, _For
wardIter2 = unsigned char**]'
malltst.cpp:1644:   instantiated from `void
std::random_shuffle(_RandomAccessIte
r, _RandomAccessIter) [with _RandomAccessIter = unsigned char**]'
malltst.cpp:24:   instantiated from here
c:/djgpp/lang/cxx/3.21/bits/stl_algo.h:1617: `lrand48' undeclared
(first use
   this function)
c:/djgpp/lang/cxx/3.21/bits/stl_algo.h:1617: (Each undeclared
identifier is
   reported only once for each function it appears in.)

I have absolutely no experience with C++.  cc is an alias for gcc,
which sets up -W -Wall -ansi -pedantic -Wwrite-strings
-Wfloat-equal -gstabs+.

I have forced large numbers of assignments without problems.  See
the C source for testing hashlib on my page.

-- 
 [mail]: Chuck F (cbfalconer at maineline dot net) 
 [page]: <http://cbfalconer.home.att.net>
            Try the download section.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019