X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Message-ID: <3C664587.5FB6F91E@yahoo.com> From: CBFalconer Organization: Ched Research X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: Alignment problem References: <3C650C18 DOT B45F67D4 AT yahoo DOT com> <4331-Sat09Feb2002145741+0200-eliz AT is DOT elta DOT co DOT il> <3C655E12 DOT 6F8D351E AT yahoo DOT com> <200202091859 DOT g19Ixam19704 AT envy DOT delorie DOT com> <3C6586A1 DOT C3AE5AC3 AT yahoo DOT com> <3c661d28 DOT sandmann AT clio DOT rice DOT edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 34 Date: Sun, 10 Feb 2002 10:26:55 GMT NNTP-Posting-Host: 12.90.167.180 X-Complaints-To: abuse AT worldnet DOT att DOT net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1013336815 12.90.167.180 (Sun, 10 Feb 2002 10:26:55 GMT) NNTP-Posting-Date: Sun, 10 Feb 2002 10:26:55 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Charles Sandmann wrote: > > > > c:/djgpp/lib/gcc-lib/djgpp/2.953/cc1.exe c:/djgpp/tmp\cc8K2mXk.i -quiet -dumpba > > > se malloc.c -ansi -gstabs+ -gp -W -Wall -pedantic -version -o c:/djgpp/tmp\ccNNo > > > cc1.exe: warning: `-gp' not supported by this configuration of GCC > > .. should be -pg not -gp > > > > malloc.c:61: syntax error before `int' > > > malloc.c:74: syntax error before `int' > > > malloc.c:82: syntax error before `BLOCK' > > > malloc.c: In function `malloc': > > > malloc.c:195: warning: implicit declaration of function `sbrk' > > > malloc.c: At top level: > > > malloc.c:229: syntax error before `BLOCK' > > Errors on line 61, 74, 82, 229 are all due to the "inline" keyword - > I suspect either -ansi or -pedantic is the problem here. You need > to figure out how those became "default" and remove them to compile > this module. This module also requires sbrk() which is not an ansi > function. Thanks. I *did* remove them - see original post. I have an alias set to install them for generic use. As I read the info pages detailed profiling requires debug info on lines, so the biggest question is whether to use -g, -gstabs, or -gstabs+. -- Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT XXXXworldnet DOT att DOT net) Available for consulting/temporary embedded and systems. (Remove "XXXX" from reply address. yahoo works unmodified) mailto:uce AT ftc DOT gov (for spambots to harvest)