This is the mail archive of the gcc-bugs@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]

Re: serious inline math pb i386


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]