>>>> "VK" == Valdis Kletnieks
<Valdis.Kletnieks(a)vt.edu> writes:
VK> On Thu, 24 Feb 2000 14:59:11 +0100, Hrvoje Niksic said:
> Yeah, we discussed it in Japan. Linus acted a loser because his
code
> bogusly _depended_ on inlining, meaning that it actually broke if the
> functions were not inlined. We're not in the same situation here, not
> even in the same ballpark.
VK> OK.. I'll bite.. How *do* you write code that breaks if it's not inlined?
VK> Only thing I can think of is if when not inlined on a multiprocessor,
VK> hitting a race condition on updating a local variable that was optimized
VK> away into a register when inlined?
Using `asm'. Or using `builtin-return-address'.
`__builtin_return_address (LEVEL)'
This function returns the return address of the current function,
or of one of its callers. The LEVEL argument is number of frames
to scan up the call stack. A value of `0' yields the return
address of the current function, a value of `1' yields the return
address of the caller of the current function, and so forth.