other/3051: Internal compiler error compiling Asmutils
Craig Rodrigues
rodrigc@mediaone.net
Sat Mar 2 18:42:00 GMT 2002
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
-------------- next part --------------
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;\
}
More information about the Gcc-bugs
mailing list