Mail Archives: djgpp/1996/06/09/17:18:47
a920101 AT zipi DOT fi DOT upm DOT es wrote:
>I've debugged the generated code, and I've found that the problem is GCC
>not passing the correct arguments to some functions. I call the function
>with the correct parameter (made sure of this), but it gets a wild one!
Maybe this will help somehow...
Some day I've compiled a program containing
movedata(_my_ds(), ...);
without any optimization. _my_ds() is inline function; the compiler
did not expand it properly and the linker did not report any error,
using some garbage for _my_ds symbol value. The result was
catastrophic (of course): the progam jumped in the middle of some
function and crashed instead of pushing %ds on the stack. Maybe this
happened because I had not put some nesessary switches on the command
line. But everything went OK when using -O.
Best wishes,
V. Myskin
- Raw text -