delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/05/09/15:44:00

Message-ID: <3EBBF6E4.CF2893B9@yahoo.com>
Date: Fri, 09 May 2003 14:43:48 -0400
From: CBFalconer <cbfalconer AT yahoo DOT com>
Organization: Ched Research
X-Mailer: Mozilla 4.75 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: djgpp-workers <djgpp-workers AT delorie DOT com>
Subject: Re: Reducing sbrk test on nmalloc]
Reply-To: djgpp-workers AT delorie DOT com

*** Posted and mailed ***

> From:    "Gisle Vanem" <giva AT bgnett DOT no> 
> To:      cbfalconer AT yahoo DOT com
> Subject: Re: Reducing sbrk test on nmalloc
> Date:    Wed, 7 May 2003 08:21:51 +0200
> 
> Here is what I get:
> 
> e:\djgpp\contrib\nmalloc>make all
> gcc -W -Wall -gstabs+ -Dinline=    -c -o nmalloc.o nmalloc.c
> gcc -W -Wall -gstabs+ -Dinline=    -c -o cokusmt.o cokusmt.c
> gcc -W -Wall -gstabs+ -Dinline=    -c -o tnmalloc.o tnmalloc.c
> tnmalloc.c: In function `test09':
> tnmalloc.c:524: warning: unused parameter `n'
> gcc -o tnmalloc.exe tnmalloc.o nmalloc.o cokusmt.o
> gcc -W -Wall -DNDEBUG -gstabs+ -O2 -o malloc.o \
>     -c nmalloc.c
> nmalloc.c: In function `badcallabort':
> nmalloc.c:357: warning: unused parameter `m'
> gcc -W -Wall -DNDEBUG -pg -gstabs+ -O2 -o mallocp.o \
>     -c nmalloc.c
> nmalloc.c: In function `badcallabort':
> nmalloc.c:357: warning: unused parameter `m'
> gcc -W -Wall -DNDEBUG -pg -gstabs+ -O2 -o tmallocp.o \
>     -c tnmalloc.c
> tnmalloc.c: In function `inject':
> tnmalloc.c:232: warning: unused variable `buf'
> tnmalloc.c:230: warning: unused parameter `i'
> tnmalloc.c: In function `showijk':
> tnmalloc.c:309: warning: unused variable `buf'
> tnmalloc.c:307: warning: unused parameter `i'
> tnmalloc.c:307: warning: unused parameter `j'
> tnmalloc.c:307: warning: unused parameter `k'
> tnmalloc.c: In function `test09':
> tnmalloc.c:524: warning: unused parameter `n'
> gcc -pg -o tmallocp.exe tmallocp.o cokusmt.o mallocp.o
> gcc -W -Wall -DNDEBUG -gstabs+ -O1 -c tmalldbg.c
> In file included from tmalldbg.c:14:
> malldbg.h:28: redefinition of `struct mallinfo'
> make.exe: *** [tmalldbg.o] Error 1

You gave me all sorts of trouble by sending this to my sp**am
trap. 
Note the reply-to address please.  This also did not appear on the
mailing list so far.

I unzipped the distribution to a fresh folder and cannot reproduce
your result.  I got:

[1] c:\c\malloc\retry>make all
gcc -W -Wall -gstabs+ -Dinline=    -c -o nmalloc.o nmalloc.c
gcc -W -Wall -gstabs+ -Dinline=    -c -o cokusmt.o cokusmt.c
gcc -W -Wall -gstabs+ -Dinline=    -c -o tnmalloc.o tnmalloc.c
tnmalloc.c: In function `test09':
tnmalloc.c:524: warning: unused parameter `n'
gcc -o tnmalloc.exe tnmalloc.o nmalloc.o cokusmt.o
gcc -W -Wall -DNDEBUG -gstabs+ -O2 -o malloc.o \
    -c nmalloc.c
nmalloc.c: In function `badcallabort':
nmalloc.c:357: warning: unused parameter `m'
gcc -W -Wall -DNDEBUG -pg -gstabs+ -O2 -o mallocp.o \
    -c nmalloc.c
nmalloc.c: In function `badcallabort':
nmalloc.c:357: warning: unused parameter `m'
gcc -W -Wall -DNDEBUG -pg -gstabs+ -O2 -o tmallocp.o \
    -c tnmalloc.c
tnmalloc.c: In function `inject':
tnmalloc.c:232: warning: unused variable `buf'
tnmalloc.c:230: warning: unused parameter `i'
tnmalloc.c: In function `showijk':
tnmalloc.c:309: warning: unused variable `buf'
tnmalloc.c:307: warning: unused parameter `i'
tnmalloc.c:307: warning: unused parameter `j'
tnmalloc.c:307: warning: unused parameter `k'
tnmalloc.c: In function `test09':
tnmalloc.c:524: warning: unused parameter `n'
gcc -pg -o tmallocp.exe tmallocp.o cokusmt.o mallocp.o
gcc -W -Wall -DNDEBUG -gstabs+ -O1 -c tmalldbg.c
gcc -W -Wall -DNDEBUG -gstabs+ -O1 -c malldbg.c
gcc -o tmalldbg.exe tmalldbg.o malldbg.o malloc.o

The unused warnings are expected, because various things are
disabled with DNDEBUG, and I also left some early code in as
examples.  Have you got the release dated 2003-05-07?  Even if
not, I see no reason for this.  Please try again.

I am using gcc 3.21 here, under W98, with the refreshed
DJGPP2.03.  Make 3.79.1.  I believe there was a refresh of
binutils earlier too.

The following are the dates on my manifest files:

12-24-00   2:03             173  bc106b.mft
 8-15-02  11:48           1,521  bnu213b.mft
 8-12-02  16:39             806  bnu213d.mft
12-01-00  16:37             423  bsh204b.mft
 3-28-02  23:08             299  bsn135b.mft
 8-04-98  17:54             140  cdecl25b.mft
 8-04-98  17:52             259  cdecl25s.mft
 8-25-02   6:47             206  csc154b.mft
10-08-00  19:39             151  CSDPMI5B.MFT
 3-28-02  14:41             251  dif28b.mft
12-04-01  20:57           2,957  djdev203.mft
 5-22-00   1:19             138  ed-02b.mft
 6-02-97  18:11             384  ed-02d.mft
 1-21-00  18:28             135  faq230b.mft
 6-12-02   2:23           1,181  fil41b.mft
 6-12-02   1:24             669  fil41d.mft
 5-22-00   1:23             211  flx254b.mft
11-27-02  11:36           1,944  gcc321b.mft
11-28-02  14:56             524  gcc321d.mft
12-27-02  16:16             472  gdb53b.mft
 1-03-03  17:55             488  gmp412b.mft
 1-03-03  16:48             583  gmp412d.mft
12-05-02  16:19          10,623  gpc321b.mft
11-27-02  18:37           8,529  gpp321b.mft
 6-03-00  17:39           8,155  gro116b.mft
 8-14-00  17:07             585  gwk306b.mft
 4-25-00  19:38             497  ind225b.mft
11-17-00   0:45           2,386  ls080b.mft
11-16-00  20:16             232  ls080d.mft
 4-05-02  17:35             182  lss374b.mft
 2-23-97  16:13             127  m4-14b.mft
 7-14-00  15:24             305  mak3791b.mft
 2-19-00  13:07             113  man13b.mft
 6-13-02  10:54             763  misc13b.mft
10-16-02  19:15           7,184  pakk022b.mft
 2-19-00  13:00             673  pdcur24b.mft
12-30-02  18:05          28,257  perl561b.mft
10-26-98   5:12             413  pmcom10.mft
 8-29-02  11:44           1,315  rhide15b.mft
 9-10-01  18:10             502  sed3028b.mft
 8-04-01  12:51             419  sed3028d.mft
 4-03-02  12:03           1,163  txi42b.mft
 1-15-00  15:04             932  txt20b.mft
 7-10-02  23:43             254  unit180b.mft
 7-10-02  23:34             825  unit180s.mft

and the update to djdev is:

12-24-01  21:26       1,529,901  djdev203.zip
 6-10-02  23:49          11,899  djdev203_u2.zip

-- 
Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT worldnet DOT att DOT net)
   Available for consulting/temporary embedded and systems.
   <http://cbfalconer.home.att.net>  USE worldnet address!


- Raw text -


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