Original Post
I'm using gcc 4.6.1 under linux.
I've tried both the sdk from angelcode.com (2.22.0) and the latest revision (1080).
Without optimizations everything runs fine.
With optimizations (O1,2,3 doesn't matter) I recieve a segmentation fault from
CallCDeclFunction() in as_callfunc_x86.cpp
and this specific line :
(looking up the registers, both ebp and eax are 0)
The only solution I have (besides no optimization at all) is to build every file with -O2
and build as_callfunc_x86.cpp without optimizations, then link.
This way everything seems to work fine.
Other suggestions ?
I've tried both the sdk from angelcode.com (2.22.0) and the latest revision (1080).
Without optimizations everything runs fine.
With optimizations (O1,2,3 doesn't matter) I recieve a segmentation fault from
CallCDeclFunction() in as_callfunc_x86.cpp
and this specific line :
"movl 12(%ebp), %eax \n" (looking up the registers, both ebp and eax are 0)
The only solution I have (besides no optimization at all) is to build every file with -O2
and build as_callfunc_x86.cpp without optimizations, then link.
This way everything seems to work fine.
Other suggestions ?