This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: other/3051: Internal compiler error compiling Asmutils
- From: Craig Rodrigues <rodrigc at mediaone dot net>
- To: dl at gazeta dot ru, c dot williams at swflug dot org, gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: Sat, 02 Mar 2002 21:43:27 -0500
- Subject: Re: other/3051: Internal compiler error compiling Asmutils
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3051
I have submitted this patch to the asmutils maintainer which
allows asmutils to compile under gcc 3.0.4 and gcc 3.1 (prerelease)
--
Craig Rodrigues
http://www.gis.net/~craigr
rodrigc@attbi.com
Index: libm.c
===================================================================
RCS file: /cvsroot/asm/asmutils/lib/libm.c,v
retrieving revision 1.5
diff -u -r1.5 libm.c
--- libm.c 2 Mar 2002 20:23:14 -0000 1.5
+++ libm.c 3 Mar 2002 02:36:31 -0000
@@ -719,7 +719,7 @@
"=t"(ret):\
"u"(y),\
"0"(x):\
- "eax","st")
+ "eax","st(1)")
float (fmodf)(float x,float y)
{
@@ -1642,7 +1642,7 @@
"=t"(ret) :\
"0"(x),\
"u"(n):\
- "st")
+ "st(1)")
float (scalbnf)(float x,int n)
{
@@ -1716,7 +1716,7 @@
#define __SINCOS(x,cosptr,sinptr)\
{\
register long double sv,cv;\
- asm("fsincos":"=t"(cv),"=u"(sv):"0"(x):"st","st(1)");\
+ asm("fsincos":"=t"(cv),"=u"(sv):"0"(x):"st(2)","st(3)");\
*cosptr = cv;\
*sinptr = sv;\
}