cvs.gedasymbols.org/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
From: | Rugxulo <rugxulo AT gmail DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: GCC 2.6.3 and Cygnus' -mfpflaw patch |
Date: | Thu, 31 Dec 2009 10:39:59 -0800 (PST) |
Organization: | http://groups.google.com |
Lines: | 82 |
Message-ID: | <96d9f9dc-6071-4823-bf35-ba87e319f2c0@j5g2000yqm.googlegroups.com> |
References: | <5e20634c-445c-4b94-8083-aaf32ad4c2ba AT 26g2000yqo DOT googlegroups DOT com> |
NNTP-Posting-Host: | 65.13.115.246 |
Mime-Version: | 1.0 |
X-Trace: | posting.google.com 1262284799 6518 127.0.0.1 (31 Dec 2009 18:39:59 GMT) |
X-Complaints-To: | groups-abuse AT google DOT com |
NNTP-Posting-Date: | Thu, 31 Dec 2009 18:39:59 +0000 (UTC) |
Complaints-To: | groups-abuse AT google DOT com |
Injection-Info: | j5g2000yqm.googlegroups.com; posting-host=65.13.115.246; |
posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO | |
User-Agent: | G2/1.0 |
X-HTTP-UserAgent: | Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) |
AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.38 Safari/532.0,gzip(gfe),gzip(gfe) | |
Bytes: | 4052 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Hi, On Dec 28, 11:04=A0pm, Rugxulo <rugx DOT DOT DOT AT gmail DOT com> wrote: > > Does anyone know anything about the Cygnus patch to GCC 2.6.3 to deal > with the FDIV bug? No responses? Bah. I know there's one guy around here with a buggy Pentium (not counting CWS), but I forget his name. Didn't DJ used to work for Cygnus? So he don't know nuthin'? :-/ Long story short, I recompiled GCC 2.6.3, but the compiled .EXE for my silly example seems to be the same whether using -mfpflaw or not. Perhaps the changes were in libgcc.a (which BTW wasn't recompiled, dunno why)?? Anyways, here's my stupid example .BAT just for testing (couldn't figure out how to write a makefile using "ifeq" to test MAKE_VERSION to use specific things for v1 ["3.71"] or v2). Here's a download for ya: http://rapidshare.com/files/328509374/586fdiv.zip.html MD5: 70B3BCFAA011062D3490CC437586E327 (that .ZIP contains v1 and v2 .EXEs as well as the .BAT below) I'm open to suggestions!! I don't have the hardware to test this myself!! Is the Cygnus patch good for anything?? =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D @echo off if "%DJGPP%"=3D=3D"" goto end set FDIV=3D586fdiv set FDIVEXE=3D%FDIV%.exe set MYGO32=3D\armslurp\djgpp.v1\bin\go32.exe set GCCFLAGS=3D-s -O %1 %2 %3 if not "%1"=3D=3D"clean" goto begin for %%a in (%FDIV% %FDIVEXE%) do if exist %%a del %%a goto end :begin if exist %FDIV%.c goto compile echo #include "stdio.h" >%FDIV%.c echo int main() { >>%FDIV%.c echo printf("\nCompiled by GCC %%d.%%d.x\n" >>%FDIV%.c echo "\n4195835.0/3145727.0 =3D %%le\n" >>%FDIV%.c echo "(Wrong would say 1.3337...)\n",__GNUC__,__GNUC_MINOR__, >>%FDIV %.c echo 4195835.0/3145727.0); >>%FDIV%.c echo return 0;} >>%FDIV%.c :compile REM ************************************************** ls /dev/env/DJDIR/bin/djsplit.exe cls if errorlevel 1 set GCCFLAGS=3D%GCCFLAGS% -mfpflaw REM ************************************************** if not exist %FDIV%.c goto end echo on gcc %GCCFLAGS% %FDIV%.c -o %FDIV% @echo off if not exist go32.exe if not exist %FDIVEXE% copy /b %MYGO32% . >NUL if exist go32.e* if not exist %FDIVEXE% copy /b go32.e*+%FDIV% %FDIVEXE % >NUL if exist %FDIVEXE% upx -qqq --best --lzma %FDIVEXE% if not exist go32.exe stubit %FDIVEXE% >NUL if exist go32.exe ren %FDIVEXE% fdiv-dj1.exe if not exist go32.exe ren %FDIVEXE% fdiv-dj2.exe for %%a in (fdiv-dj?.exe) do call %%a :end if exist %MYGO32% if exist go32.exe del go32.exe for %%a in (%FDIV% 586fdiv.c 586fdiv.bak) do if exist %%a del %%a for %%a in (GCCFLAGS FDIV FDIVEXE MYGO32) do set %%a=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |