This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Hi
I have a compiler error at -O2 that goes away at -O0:
/mnt/disk2/src/mingw/mingw-runtime-3.0/mingwex: PATH=/usr/cross/bin:$PATH i386-mingw32-gcc -c -g -O2 -fomit-frame-pointer -I ./../../w32api/include -I. -I./../include -nostdinc -nostdinc++ -iwithprefixbefore include -da ./math/pow.c -o pow.o
math/pow.c: In function `pow':
../include/math.h:174: error: can't find a register in class `FP_TOP_REG' while reloading `asm'
Here's that part of the header:
#if !defined (__NO_INLINES__)
extern __inline__ __cdecl double fabs (double x)
{
double res;
__asm__ ("fabs;" : "=t" (res) : "0" (x));
return res;
}
#endif
/usr/src/home: cat /mnt/disk2/src/gcc/LAST_UPDATED
Tue May 13 17:39:22 SAST 2003
Tue May 13 15:39:22 UTC 2003
Unfortunately I don't know what do do with all those -da output files.
But I do have a testcase derived from the mingw-runtime and w32-api sources
(attached).
--
bernd.jendrissek@mailbox.co.za is probably better to bookmark than any
employer-specific email address I may have appearing in the headers.
Attachment:
powcrash.c
Description: Text document
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |