Hi, On Sat 18 Jun 2011 22:25, "Andrew W. Nosenko" <andrew.w.nose...@gmail.com> writes:
> On Fri, Jun 17, 2011 at 13:21, Andy Wingo <wi...@pobox.com> wrote: >> wingo@badger:/tmp$ cat foo.c >> int >> find_stack_direction () >> { >> static char *addr = 0; > > Try to rewrite this line as > volatile static char *addr = 0; > It should help. It didn't, unfortunately. This issue can be reproduced on a stock Debian unstable system with gcc-4.6, btw. >> I don't know what allows GCC to do this inlining. Could it be a GCC >> bug? Every time I think I have a GCC bug I'm wrong, though :) > > No. It indeed traceable. Just start from main() and you will have > full trace even with pen and paper. Apologies for the ignorant question, but what does "trace" mean? :) Regards, Andy -- http://wingolog.org/