Date: Mon, 28 Apr 2003 08:44:20 -0500 From: Eric Rudd 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@> <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> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Lines: 38 Message-ID: <3ead3016$0$19039$4c41069e@reader0.ash.ops.us.uu.net> NNTP-Posting-Host: 65.214.98.62 X-Trace: 1051537430 reader0.ash.ops.us.uu.net 19039 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: > GCC 3.2.1 (the gcc I have under DJGPP) does not optimize the div_t > into a long long when given -O3 or -fomit-frame-pointer. > In fact, -fomit-frame-pointer does nothing. You must mean only that gcc 3.2.1 returns the struct in memory in either case; -fomit-frame-pointer has never "done nothing." For instance, if you compile the "do-nothing" subroutine void nothing(void) {} without using -fomit-frame-pointer, you'll get pushl %ebp movl %esp, %ebp popl %ebp ret With -fomit-frame-pointer, you'll get simply ret This has always been the case, as far as I know. > I went to www.delorie.com to get gcc 3.2.2, and had a look at your bug > report whilst I was there. > What command line did you use? I use gcc -O2 -march=pentium -Wall I had been using -fomit-frame-pointer, but I have temporarily removed it because of these problems. -Eric