delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/04/27/05:03:28

Sender: rich AT phekda DOT freeserve DOT co DOT uk
Message-ID: <3EAB995F.273750D6@phekda.freeserve.co.uk>
Date: Sun, 27 Apr 2003 09:48:31 +0100
From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.23 i586)
X-Accept-Language: de,fr
MIME-Version: 1.0
To: DJGPP workers <djgpp-workers AT delorie DOT com>
CC: Ben Peddell <killer DOT lightspeed AT bigpond DOT com>
Subject: Re: Bug 00314 -- div() still broken
References: <3e9c6920$0$21928$afc38c87@> <fA9pa.20115$1s1 DOT 299825 AT newsfeeds DOT bigpond DOT com> <3EA5477F DOT 2020901 AT cyberoptics DOT com> <SzSpa.21592$1s1 DOT 332473 AT newsfeeds DOT bigpond DOT com> <3ea85d95$0$12489$4c41069e AT reader1 DOT ash DOT ops DOT us DOT uu DOT net> <Ah9qa.22112$1s1 DOT 343387 AT newsfeeds DOT bigpond DOT com> <3ea97d4c$0$19415$4c41069e AT reader1 DOT ash DOT ops DOT us DOT uu DOT net> <lzLqa.23283$1s1 DOT 356122 AT newsfeeds DOT bigpond DOT com>
Reply-To: djgpp-workers AT delorie DOT com

Hello.

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"'

Thanks for investigating this, Ben.

I can't believe they changed this in a point release. I thought 3.x was
supposed to have a stable ABI! <sigh>

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.

Bye, Rich =]

-- 
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]

- Raw text -


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