This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: serious inline math pb i386
- To: egcs-bugs at cygnus dot com
- Subject: Re: serious inline math pb i386
- From: timmons at eskimo dot com (Bonard B. Timmons III)
- Date: 15 Jul 1998 04:10:40 -0400
Here's another code sample that SIGSEGVs when pow is inlined:
#include <math.h>
int main() {
char c[3];
double x = pow(3.0,2.0);
return 0;
}
Here, we find that it can only work for arrays of size 1, 2, or 4
bytes; anything else segfaults. Also, reversing the order of the char
and double lines works around the bug.
I cannot test HJL's patch right now -- has it NOT worked for anyone?
Thanks,
Bake