} Hi,
} 
} > How?  If you compile with egcs-2.91.66 without frame pointers on ix86 then
} > __builtin_return_address() yields garbage.  Does anybody have a generic
} > solution to this problem, other than "compile with frame pointers"?  Or is
} > it fixed in newer versions of gcc?
} 
} Are you sure? I just I tried it 2.91.66 and it works. With 
} -fomit-frame-pointer only __builtin_return_address(0) works, but that is
} true for any version.

I've found, with several versions of gcc, that leaf functions will give
bad results (sometimes resulting in a bad access fault) with calls to
__builtin_return_address(0).  The workaround in the kernel and RTLinux is
making a call do your function isn't a leaf.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/

Reply via email to