Message-ID: <3EABADC6.1E45F2C1@yahoo.com> Date: Sun, 27 Apr 2003 06:15:34 -0400 From: CBFalconer Organization: Ched Research X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: djgpp-workers AT delorie DOT com Subject: Re: Bug 00314 -- div() still broken References: <3e9c6920$0$21928$afc38c87@> <3EA5477F DOT 2020901 AT cyberoptics DOT com> <3ea85d95$0$12489$4c41069e AT reader1 DOT ash DOT ops DOT us DOT uu DOT net> <3ea97d4c$0$19415$4c41069e AT reader1 DOT ash DOT ops DOT us DOT uu DOT net> <3EAB995F DOT 273750D6 AT phekda DOT freeserve DOT co DOT uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Richard Dawe wrote: > Ben Peddell wrote: > > [snip] > > GCC 3.2.1 has -fpcc-struct-return by default in DJGPP, whilst > > GCC 3.2.2 has -freg-struct-return by default in DJGPP. > > GCC 3.2.2 may need to be configured to make -fpcc-struct-return > > the default, to maintain compatibility with the DJGPP 2.03 > > libraries. Or, the libraries may need to be re-compiled for GCC > > 3.2.2, and marked as such. > > > > These options are in `info gcc "Invoking GCC" "Code Gen Options"' > ... snip ... > > I think we should add -fpcc-struct-return to the default compiler > options for DJGPP libc's sources. Some people are probably still > using gcc 2.95.x. I can't really blame them, given gcc 3.x's > guess-which-ABI-we're-using-now problems. We should remain > binarily compatible across several gcc versions > > 2.04 alpha 1 was compiled with gcc 3.2.2, so I'll mention that it > probably only works with 3.2.2 in the announcement. WARNING - the nmalloc/malldbg interface depends on returning a struct from a function, as does the mallinfo/user interface. However they are too large to be returned in a register, which may be a good thing. -- Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT worldnet DOT att DOT net) Available for consulting/temporary embedded and systems. USE worldnet address!