delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/04/25/14:33:34

Date: Fri, 25 Apr 2003 13:24:36 -0500
From: Eric Rudd <rudd AT cyberoptics DOT com>
Organization: CyberOptics
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.3) Gecko/20030312
X-Accept-Language: en,pdf
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
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>
In-Reply-To: <Ah9qa.22112$1s1.343387@newsfeeds.bigpond.com>
Lines: 15
Message-ID: <3ea97d4c$0$19415$4c41069e@reader1.ash.ops.us.uu.net>
NNTP-Posting-Host: 65.214.98.62
X-Trace: 1051295052 reader1.ash.ops.us.uu.net 19415 65.214.98.62
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Ben Peddell wrote:

> Obviously, some sort of optimization puts the div_t structure in 
> %edx:%eax instead of 16(%ebp). It would be a good optimization if it 
> didn't break the libraries. 

Yes, indeed.  So, it looks as if there is a gcc bug here.  Where are the 
calling conventions documented?  I couldn't find them in the gcc.ixx 
docs.  I think I ought to isolate this and submit a bug report, if gcc 
is indeed at fault.  I suppose a workaround would be to recompile libc, 
but then one wonders whether all the other libraries are also broken.

-Eric Rudd
rudd AT cyberoptics DOT com

- Raw text -


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